請教大家:我的plog1.0裝在我win2000 pro的 Appserv1.9上(apache1.3.24+php4.3+MySQL3.23)
安裝目錄在
<VirtualHost xx.xx.xx.xx:80>
ServerAdmin xx@xx.xxx.xxx
DocumentRoot C:/AppServ/web/plog/
ServerName plog.kod.homeip.net
</VirtualHost>
httpd.conf中開啟
LoadModule rewrite_module C:/Appserv/apache/modules/mod_rewrite.so
AddModule mod_rewrite.c
.htaccess加上
<Directory "C:/AppServ/web/plog">
Options Multiviews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
AcceptPathInfo On
並修改
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
ErrorDocument 401 /error.php
ErrorDocument 403 /error.php
ErrorDocument 404 /error.php
在全域設定 base_url 設定
http://plog.kod.homeip.net
然後request_format_mode設定成簡潔網址
輸入 http://plog.kod.homeip.net/2
出現HTTP 404 - 找不到檔案
似乎是轉不到 error.php
Apache的 log是 [Wed May 11 14:49:50 2005] [error] [client xx.xx.xx.xx] File does not exist: c:/appserv/web/plog/2
如果把
<Directory "C:/AppServ/web/plog">
Options Multiviews
AllowOverride All
Order allow,deny
Allow from all
</Directory> 這段
直接加到 httpd.conf
輸入 http://plog.kod.homeip.net/2
則會出現 500 Internal Server Error
Apache的log是
[Wed May 11 15:16:48 2005] [alert] [client xx.xx.xx.xx] c:/appserv/web/plog/.htaccess: <Directory not allowed here
還請各位先進幫忙看看到底是什麼問題..非常感謝~~!!!
若有不足的資訊還請告知,謝謝!!