Apache无法加载localhost文件,返回错误500

时间:2015-05-11 15:36:29

标签: apache .htaccess

我的服务器没有在html pages的标题上加载直接链接。dev.pauloxavier.com是127.0.0.1的别名。例如:

http://dev.pauloxavier.com/certified/framework/assets/css/custom.css
http://dev.pauloxavier.com/certified/framework/assets/css/bootstrap.css

我也无法直接在浏览器上访问此文件。返回错误500.

在我得到的错误记录中:

[Mon May 11 12:26:28.724782 2015] [cgi:error] [pid 2864:tid 1828] (9)Bad file descriptor: [client 127.0.0.1:51598] AH01222: don't know how to spawn child process: E:/GitHub/certified/framework/assets/img/favicon.png, referer: http://dev.pauloxavier.com/certified/

我的htaccess文件:

RewriteEngine On # Turn on the rewriting engine 
RewriteBase /certified/
RewriteRule  ^user/([a-z]+)/?$ user.php?id=$1 [L]
RewriteRule  ^([0-9a-zA-Z-_]{1,100})/?$ index.php?to=$1 [L]
RewriteRule  ^import/([0-9a-zA-Z-_]{1,100})/?$ index.php?to=import&id_evento=$1 [L]
RewriteRule  ^evento/([0-9a-zA-Z-_]{1,100})/?$ index.php?to=evento&id_evento=$1 [L]
RewriteRule  ^inserir/([0-9a-zA-Z-_]{1,100})/?$ index.php?to=inserir&id_evento=$1 [L]
RewriteRule  ^remover/([0-9a-zA-Z-_]{1,100})/([0-9a-zA-Z-_]{1,100})/?$ index.php?to=remover&id_evento=$1&id_participante=$2 [L]
RewriteRule  ^envio/([0-9a-zA-Z-_]{1,100})/?$ index.php?to=envio&id_evento=$1 [L]
RewriteRule  ^certificado/([0-9a-zA-Z-_]{1,100})/([0-9a-zA-Z-_]{1,100})/?$ index.php?to=certificado&evento=$1&particip=$2 [L]

我在apache上的目录配置为:

<Directory "E:/GitHub/certified">
    AllowOverride All
    Require all granted
    Allow from all
</Directory>

使用别名:

ScriptAlias /certified/ "E:/GitHub/certified/"

最奇怪的是:这个版本正在我的网络服务器上工作,并且曾经在我的本地工作,但我丢失了我的高清,并且不得不从头开始重新安装。我真的认为这是一个apache的问题,就像misconfig一样。

提前致谢!

0 个答案:

没有答案