質問

私はこの追加:

<VirtualHost *:8888>
    ServerName dietron
    DocumentRoot /Users/kieransenior/Development/reformsoft_dietron/trunk/var/www/dietron/htdocs

    <Directory /Users/kieransenior/Development/reformsoft_dietron/trunk/var/www/dietron/htdocs>
        AllowOverride All
        Options All
    </Directory>

    php_value include_path .:/Users/kieransenior/Development/reformsoft_dietron/trunk/var/www/dietron/include:/usr/local/lib/pear
    php_value magic_quotes_gpc off
    php_value register_globals off
</VirtualHost>

私のhttpd.confを希望するmy.htaccessファイルのhtdocsフォルダーでピックアップされると、以下のルール:

RewriteEngine on
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1

する。私の名前変更.htaccess私のMBPによって mv i.htaccess .htaccess 思想は正しいのですか。を使用していMAMPそのためのストします。confには荷重のデフォルトの設定を加えた最初のスニペットの上にあるのです。私はそれを再開するようApacheの起動設定することができます。のindex.php が拾って美しい場合は http://localhost:8888/anythinghere その上で404をなす。

アイデアはどうなっているが悪いのでしょうか。

編集: ここでの私のhttpd.conf

編集:このエラーのApacheのログ:

[Fri Jun 05 16:02:22 2009] [error] [client ::1] File does not exist: /Users/kieransenior/Development/reformsoft_dietron/trunk/var/www/dietron/htdocs/testing
役に立ちましたか?

解決

カップルのご提案します。

まず線461のhttpd.conf:

AccessFileName afn.htaccess

なる。.htaccessファイル?

第二のものを見るのは、サーバの名前を設定:

ServerName dietron

サンジャンデヴィーニアクセスしようとしているのでlocalhost

思い入れますのでエントリに/etc/hostsファイルでdietronを解決し、現地のipアドレスはループバック(127.0.0.1)を呼び出し、サーバー http://dietron:8888

他のヒント

あなたのAllowOverrideディレクティブは、グローバルレベルで適切に設定されていることを確認してください。何のオーバーライドがWebルートで(AllowOverride None)許されていない場合は、お使いのhtaccessファイルは無視されます。

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top