AMH 社区首页
AMH社区 - 开放自由有价值的社区
[求助帖] AMH面板打不开,amh nginx时出现错误,详情看下面 |
|
---|---|
scj728 |
scj728 发表于 2015-11-11 08:55:30
昨晚安装SSL,重启后amh面板进不去,输入 amh nginx 是出现nginx: [emerg] unexpected end of file, expecting "}" in /usr/local/nginx/conf/vhost/truepdf.net.conf:39
然后我把truepdf.net.conf中的内容全部删除掉后,nginx启动成功,但是页面出现404错误。谁能帮我看看里面的代码哪里出错了,非常感谢! server { listen 80; server_name truepdf.net www.truepdf.net; #server_name end index index.html index.htm index.php; #index end set $subdomain ''; root /home/wwwroot/truepdf.net/web$subdomain; include rewrite/amh.conf; #rewrite end #error_page error_page 400 /ErrorPages/400.html; error_page 403 /ErrorPages/403.html; error_page 404 /ErrorPages/404.html; error_page 502 /ErrorPages/502.html; location ~ /ErrorPages/(400|401|403|404|405|502|503)\.html$ { root /home/wwwroot/truepdf.net/web; } location ~ .*\.php$ { fastcgi_pass unix:/tmp/php-cgi-truepdf.net.sock; fastcgi_index index.php; include fcgi-host.conf; fastcgi_param DOCUMENT_ROOT /home/wwwroot/truepdf.net/web$subdomain; fastcgi_param SCRIPT_FILENAME /home/wwwroot/truepdf.net/web$subdomain$fastcgi_script_name; } location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|flv|mp3|wma)$ { expires 30d; } location ~ .*\.(js|css)$ { expires 12h; } access_log /home/wwwroot/truepdf.net/log/access.log combined; #access_log end error_log /home/wwwroot/truepdf.net/log/error.log crit; #error_log end
点赞,加油! (0分)
2015-11-11 08:55:30 1
|
scj728 |
终于搞定了,也不知道怎么回事,代码最后少了个大括号
回复
2015-11-11 10:01:35 2
|