Board logo

标题: [求助] 【急】新建网站后无法打开HTTP ERROR 500 [打印本页]

作者: bioger    时间: 2016-8-25 16:17     标题: 【急】新建网站后无法打开HTTP ERROR 500

新建网站后无法打开HTTP ERROR 500/www/wdlinux/nginx/conf/vhost/bbxchina.com.conf如下:
  1. server {
  2.         listen       80;
  3.         root /www/web/bbxchina_com/public_html;
  4.         server_name bbxchina.com bbxchina.com www.bbxchina.com hkvps.bbxchina.com;
  5.         index  index.html index.php index.htm;
  6.         error_page  400 /errpage/400.html;
  7.         error_page  403 /errpage/403.html;
  8.         error_page  404 /errpage/404.html;
  9.         error_page  503 /errpage/503.html;
  10.         location ~ \.php$ {
  11.                 proxy_pass http://127.0.0.1:88;
  12.                 include naproxy.conf;
  13.         }
  14.         location ~ /\.ht {
  15.                 deny  all;
  16.         }
  17.         location / {
  18.                 try_files $uri @apache;
  19.         }
  20.         location @apache {
  21.                  proxy_pass http://127.0.0.1:88;
  22.                  include naproxy.conf;
  23.         }
  24.         error_log  logs/bbxchina.com_error.log;
  25. }

  26.         
复制代码



/www/wdlinux/apache/conf/vhost/bbxchina.com.conf如下:
  1. <VirtualHost *:88>
  2. DocumentRoot /www/web/bbxchina_com/public_html
  3. ServerName bbxchina.com
  4. ServerAlias bbxchina.com www.bbxchina.com hkvps.bbxchina.com
  5. ErrorDocument 400 /errpage/400.html
  6. ErrorDocument 403 /errpage/403.html
  7. ErrorDocument 404 /errpage/404.html
  8. ErrorDocument 503 /errpage/503.html
  9. ErrorLog "logs/bbxchina.com_error_log"
  10. php_admin_value open_basedir /www/web/bbxchina_com:/tmp
  11. <IfModule mod_deflate.c>
  12.     DeflateCompressionLevel 7
  13.     AddOutputFilterByType DEFLATE text/html text/plain text/xml application/x-httpd-php
  14.     AddOutputFilter DEFLATE css js html htm gif jpg png bmp php
  15. </IfModule>
  16. </VirtualHost>
  17. <Directory /www/web/bbxchina_com>
  18.     Options FollowSymLinks
  19.     AllowOverride All
  20.     Require all granted
  21. </Directory>

  22.         
复制代码




网站打开是500错误,用的二级域名hkvps.bbxchina.com测试访问的,thinkPHP程序框架
作者: bioger    时间: 2016-8-25 16:19

本帖最后由 bioger 于 2016-8-25 16:21 编辑

测试发现,里面的静态文件可以打开,php文件就不可以了,不知道咋办@admin
作者: bioger    时间: 2016-8-26 11:48

提示: 该帖被管理员或版主屏蔽




欢迎光临 WDlinux官方论坛 (http://wdlinux.cn/bbs/) Powered by Discuz! 7.2