2017-01-23 163 views
0

我想在xampp上设置我的项目。HTTP错误500?

<VirtualHost *:80> 
    ServerAdmin [email protected] 
    DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs/test/public" 
    ServerName testproject.dev 
    ErrorLog "logs/dummy-host2.example.com-error_log" 
    CustomLog "logs/dummy-host2.example.com-access_log" common 
    <Directory "/Applications/XAMPP/xamppfiles/htdocs/test/public"> 
    Options Indexes FollowSymLinks Includes ExecCGI 
    AllowOverride All 
    Require all granted 
</Directory> 
</VirtualHost> 

我在httpd.conf中为虚拟主机取消注释行,但stil即获得错误500.任何建议?我使用MAC OS。

此外,在主机我说:

127.0.0.1 testproject.dev 

回答

1

什么建议吗?

没有检查日志是不可能的。您应该启用Apache HTTP Server的日志记录并检查事件。我想你的情况下的日志是dummy-host2.example.com-error_log。查看事件并找出这个配置有什么问题。

+0

如何启用apache日志记录? – None

+0

@None http://httpd.apache.org/docs/ – bahrep