Debian GNU/Linux ス ..
809:login:Penguin
09/02/20 09:42:37 P4c4zKRJ
>>788
/etc/conf.d/で設定するならmod_dirを外して、
AddType "application/xhtml+xml; charset=utf-8" .html
<Directory /var/www/>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^$ index.html
RewriteCond %{HTTP_ACCEPT} !application/xhtml\+xml
RewriteCond %{LA-F:REQUEST_FILENAME} \.html
RewriteRule .* - "[L,T=text/html; charset=utf-8]"
</IfModule>
</Directory>
この時、一番最後に適用される/etc/apache2/sites-avaiable/defaultの
<Directory /var/www/>〜</Directory>内ではOptionsからIndexesもMultiViesも外す。
次ページ最新レス表示スレッドの検索類似スレ一覧話題のニュースおまかせリスト▼オプションを表示暇つぶし2ch
5139日前に更新/274 KB
担当:undef