私はこの問題を、apache2を使用して11.10のubuntuで直接修正しました。
私の/ etc/apache2の/サイト利用可能/デフォルトファイル:
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
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
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
私はすべてでは/ var/wwwディレクトリディレクティブにAllowOverrideのなしに変更されません。
/var/www/.htaccessの私の.htaccessファイル:
Options +Includes
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
は最終的に私はinclude.loadが、これはmod_includes.soモジュールをロードすることです改造対応のフォルダにあったことを確認しました。
sudo ln -s /etc/apache2/mods-available/include.load /etc/apache2/mods-enabled/include.load
これにより、mods-availableのinclude.loadへのシンボリックリンクが作成されます。
は最終的に、それは私のために働く作っapacheの
sudo service apache2 restart
を再起動して、あなたはそれが同様に働いてもらう願っています。
- トーマス
あなたは、ファイルSHTMLを命名しましたときにXBitHackは必要ありません。 header.htmlがshtmlのようなディレクトリにある場合は、<! - #include file = "header.html" - > –
try virtual = "/ header.html"としてください。さもないと;エラーは権限エラーを示唆しているようです。 header.htmlを実行可能でないようにchmodしてみてください。 – Gerben
残念ながら、これらの2つの提案は機能しませんでした。 – moey