AMH 社区首页
AMH社区 - 开放自由有价值的社区
[求助帖] 求助!AMH突然400连不上了 |
|
---|---|
mryys |
mryys 发表于 2014-09-10 10:21:42
昨天就修改了一下虚拟空间的首页,改成了index2.html 然后面板上显示php没有启动,host倒是启动了。
FTP能上,IP能PING通 测试nginx nginx: [emerg] open() "/usr/local/nginx/conf/rewrite/index.php" failed (2: No such file or directory) in /usr/local/nginx/conf/vhost/developer-china.cn.conf:10nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed 求助,不是要重装的节奏吧
点赞,加油! (0分)
2014-09-10 10:21:42 1
|
amysql |
伪静态出错。找不到文件。
贴出cat /usr/local/nginx/conf/vhost/developer-china.cn.conf 的配置。
回复
2014-09-10 10:24:50 2
AMH面板 - 好用高效低占用、安全可靠极稳定 |
mryys |
停止nginx 显示这些
amh nginx stop ============================================================= [LNMP/Nginx] Amysql Host - AMH 4.2 http://Amysql.com /root/amh/nginx: line 23: kill: (1028) - No such process
回复
2014-09-10 10:25:00 3
|
mryys |
启动nginx 打印这些
amh nginx start ============================================================= [LNMP/Nginx] Amysql Host - AMH 4.2 http://Amysql.com nginx: [emerg] open() "/usr/local/nginx/conf/rewrite/index.php" failed (2: No such file or directory) in /usr/local/nginx/conf/vhost/developer-china.cn.conf:10
回复
2014-09-10 10:26:14 4
|
mryys |
引用: cat /usr/local/nginx/conf/vhost/developer-china.cn.conf server { listen 80; server_name developer-china.cn www.developer-china.cn www.hhgsb.com hhgsb.com; #server_name end index index.php; #index end set $subdomain ''; if ( $host ~* "(?:(\w+\.){0,})(\b(?!www\b)\w+)\.\b(?!(com|org|gov|net|cn)\b)\w+\.[a-zA-Z]+" ) { set $subdomain "/$2"; } root /home/wwwroot/developer-china.cn/web$subdomain; include rewrite/index.php; #rewrite end #error_page location ~ /ErrorPages/(400|401|403|404|405|502|503)\.html$ { root /home/wwwroot/developer-china.cn/web; } location ~ .*\.php$ { fastcgi_pass unix:/tmp/php-cgi-developer-china.cn.sock; fastcgi_index index.php; include fcgi-host.conf; fastcgi_param DOCUMENT_ROOT /web$subdomain; fastcgi_param SCRIPT_FILENAME /web$subdomain$fastcgi_script_name; } location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|flv|mp3|wma)$ { expires 30d; } location ~ .*\.(js|css)$ { expires 12h; } access_log off; #access_log end error_log /dev/null; #error_log end }
回复
2014-09-10 10:39:01 5
|
amysql |
把include rewrite/index.php; 改成include rewrite/amh.conf; 重启 amh nginx restart
回复
2014-09-10 10:49:21 6
|
mryys |
按照您的方法,真的解决了!
回复
2014-09-10 11:11:34 7
|