WDlinux官方论坛's Archiver

bioger 发表于 2016-8-25 16:17

【急】新建网站后无法打开HTTP ERROR 500

新建网站后无法打开HTTP ERROR 500[color=#333333][font=微软雅黑][size=12px]/www/wdlinux/nginx/conf/vhost/bbxchina.com.conf如下:[/size][/font][/color]
[code]server {
        listen       80;
        root /www/web/bbxchina_com/public_html;
        server_name bbxchina.com bbxchina.com www.bbxchina.com hkvps.bbxchina.com;
        index  index.html index.php index.htm;
        error_page  400 /errpage/400.html;
        error_page  403 /errpage/403.html;
        error_page  404 /errpage/404.html;
        error_page  503 /errpage/503.html;
        location ~ \.php$ {
                proxy_pass http://127.0.0.1:88;
                include naproxy.conf;
        }
        location ~ /\.ht {
                deny  all;
        }
        location / {
                try_files $uri @apache;
        }
        location @apache {
                 proxy_pass http://127.0.0.1:88;
                 include naproxy.conf;
        }
        error_log  logs/bbxchina.com_error.log;
}

        [/code]


[color=#333333][font=微软雅黑][size=12px]/www/wdlinux/apache/conf/vhost/bbxchina.com.conf如下:[/size][/font][/color]
[color=#333333][font=微软雅黑][size=12px][code]<VirtualHost *:88>
DocumentRoot /www/web/bbxchina_com/public_html
ServerName bbxchina.com
ServerAlias bbxchina.com www.bbxchina.com hkvps.bbxchina.com
ErrorDocument 400 /errpage/400.html
ErrorDocument 403 /errpage/403.html
ErrorDocument 404 /errpage/404.html
ErrorDocument 503 /errpage/503.html
ErrorLog "logs/bbxchina.com_error_log"
php_admin_value open_basedir /www/web/bbxchina_com:/tmp
<IfModule mod_deflate.c>
    DeflateCompressionLevel 7
    AddOutputFilterByType DEFLATE text/html text/plain text/xml application/x-httpd-php
    AddOutputFilter DEFLATE css js html htm gif jpg png bmp php
</IfModule>
</VirtualHost>
<Directory /www/web/bbxchina_com>
    Options FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>

        [/code]
[/size][/font][/color]


[color=#333333][font=微软雅黑][size=12px]网站打开是500错误,用的二级域名hkvps.bbxchina.com测试访问的,thinkPHP程序框架[/size][/font][/color]

bioger 发表于 2016-8-25 16:19

[i=s] 本帖最后由 bioger 于 2016-8-25 16:21 编辑 [/i]

测试发现,里面的静态文件可以打开,php文件就不可以了,不知道咋办@admin

bioger 发表于 2016-8-26 11:48

**** 该帖被屏蔽 ****

页: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.