어떻게 든 내 가상 호스트 파일이 바로 내가 왜 말할 수 없다 작동하지 작동하지 않습니다아파치 가상 호스트 바로
0 Nov 21 12:24 000-default -> ../sites-available/default
0 Nov 21 14:52 001-site -> ../sites-available/site
내 가상 호스트 파일과 같이 :/등/아파치/디렉토리와 같은에서 사용할 수있는 사이트에 심볼릭 링크를 통해 사용할 수
DEFAULT
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName (the IP Address from my Server)
ServerAlias (the 2nd IP Address from my Server)
DocumentRoot /var/www/default
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/default>
Options FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
나는 "example.de"에 갈 때
사이트는
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/site/
ServerName jobbörse-köln.de
ServerAlias www.example.de ww.example.de w.example.de
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/site>
Options FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/site-error.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/site-access.log combined
</VirtualHost>
은 어떻게 든 내가 대신 사이트 디렉토리의 기본 디렉토리에 도착. 에도 로그 파일 : 0 바이트에
가site-error.log
site-access.log
숙박 ... 내가 잘못 뭐하는 거지? 나는 바보 같고 쉽게 뭔가 내기 ...
vhost.conf 파일은 어디에 있습니까? 사이트에 액세스 할 때 무엇을 볼 수 있습니까? 당신의 httpd.conf는 어떻습니까? – Keerthivasan
내 가상 호스트 파일은 다음 위치에 있습니다 /등/아파치가/사이트 이용 가능한 그리고 그들은에 연결된 얻을 /등/아파치/사이트 활성화 내 apache2.conf의이 에 위치한 /등/아파치/ 언제 www.example.de을 방문하십시오 대신에 /var/www/default/ 에서 index.php를 얻습니다./var/www/site/ – Kris