次のようにさまざまなフォルダにあるWebサイトを提供するように構成されたApache2サーバーがあります。
/var/www/main
ホームページファイルが含まれていますindex.html
/var/www/sub
別のファイルが含まれていますsub.html
私のウェブサイトのホームページにはアクセスできますが、サブパートはアクセスできません。
www.mysite.com
(==www.mysite.com/index.html
)動作しますẁww.mysite.com/sub
動作しませんẁww.mysite.com/sub.html
動作しませんẁww.mysite.com/sub/sub.html
動作しません
エラーメッセージは常にrequested URL ... was not found on this server
/etc/apache2/sites-available/sub
:
<VirtualHost *:80>
ServerName www.mysite.com
DocumentRoot /var/www/sub
<Directory /var/www/sub>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
</VirtualHost>
/etc/apache2/httpd.conf
:
<VirtualHost *:80>
DocumentRoot /var/www/main
<Directory /var/www/main>
AllowOverride all
Options -MultiViews
</Directory>
</VirtualHost>
私の構成の何が問題になっていますか?