1
LazyZhu 2013-12-07 21:58:05 +08:00
情节会如此发展:
楼下:肯定支持。 楼主:我怎么绑定不来哦。 楼下:提示什么错误? 楼主:“xxx error” 楼下:你有没有干什么? 楼主:我xxx ...... 我的答案是:建议楼主去看《提问的艺术》,为大家节约时间。 |
2
xujialiang 2013-12-07 21:59:17 +08:00 via Android
楼上威武←_←
|
3
kstsca OP server {
listen 80; server_name localhost; #charset koi8-r; #access_log logs/host.access.log main; location / { root /usr/local/nginx/html/www/sxx.net; index index.html index.htm index.php; } #error_page 404 /404.html; # redirect server error pages to the static page /50x.html # error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } # proxy the PHP scripts to Apache listening on 127.0.0.1:80 # #location ~ \.php$ { # proxy_pass http://127.0.0.1; #} # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # location ~ \.php$ { root html; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /usr/local/nginx/html/$fastcgi_script_name; include fastcgi_params; } # deny access to .htaccess files, if Apache's document root # concurs with nginx's one # #location ~ /\.ht { # deny all; #} } 提示 File not found. 我把sxx.net 目录 换成 sxxnet 就可以,但文件名sxx.net不支持,感觉是没定位到那个目录。 |
4
richardevs 2013-12-07 22:34:38 +08:00
|
5
icanc 2013-12-08 08:19:50 +08:00
试试 root /usr/local/nginx/html/www/sxx\.net;
|