どういうわけか私のバーチャルホストファイルがまっすぐに私がなぜ言うことができない機能していない機能していませんApacheバーチャルホストを右
0 Nov 21 12:24 000-default -> ../sites-available/default
0 Nov 21 14:52 001-site -> ../sites-available/site
私のバーチャルホストのファイルのようになります:の/ etc/apache2の/ディレクトリなどに利用できるサイトへのシンボリックリンクを介して有効
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」に行くときSITE
<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
私のバーチャルホストファイルは次の場所にあります。 は/ etc/apache2の/サイトで入手可能な およびそれらが /etcにあるリンクを取得/ apache2の/私のapache2.confが は/ etc/apache2の中に位置しています サイト対応/ ときI go to www.example.de の代わりに /var/www/default/ からindex.phpを取得する/ var/www/site/ – Kris