0
我遇到了文檔根目錄的問題。我可以通過指定 http://mysite.com/index.html來獲得index.html的方式,是否可以通過http://mysite.com自動將其重定向到index.html?apache2 web服務器index.html問題
的ServerAdmin [email protected]
DocumentRoot /var/www/mysite.com
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/mysite.com>
Options Indexes 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 /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
的偉大工程!謝謝! – user2936194