location / { root D:/rx/dev/trunk/client/game/bin/;

server {

listen 80;

server_name localhost;

#charset koi8-r;

#access_log logs/host.access.log main;

location / {

root D:/rx/dev/trunk/client/game/bin/;

root ../../client;

index index.html index.htm;

autoindex on;

#autoindex_format json;

#autoindex_localtime on;

add_header Access-Control-Allow-Origin *;

}

#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 ..;

}

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 ..;

fastcgi_pass 127.0.0.1:9000;

fastcgi_index index.php;

fastcgi_param SCRIPT_FILENAME /scripts$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;

#}

}

相关推荐
遥夜人间6 小时前
Nginx 纳入 systemd 管理
运维·网络·nginx
qq_1715203516 小时前
nginx访问不同服务器docker部署的java服务上传文件地址
运维·服务器·nginx
zjeweler18 小时前
Nginx 502 Bad Gateway怎么解决?Docker反代与PHP-FPM报错全链路排查
nginx·docker·php-fpm·502 bad gateway·实用建站
取个没有个性的名称1 天前
Nginx服务器配置:客户端大请求头怎样定位限制?
nginx
wno7043 天前
Nginx禁止蜘蛛程序访问
运维·nginx
钱栈up5 天前
现场部署6个服务菜单全挂:根因不在后端,在前端那个环境变量
mysql·nginx
行思理5 天前
Nginx如何检查是否启用“启用 HTTP/2”
运维·nginx·http
Csvn5 天前
Nginx 故障案例库:16 张卡的现象、证据、根因与防复发
后端·nginx
梅雅达编程笔记6 天前
开发机能跑,服务器上跑不起来:MYD 考试系统配置设计与上线清单
mysql·nginx·flask·gunicorn·毕设项目·部署上线
op_qo7 天前
写了几年 OpenResty Lua 网关脚本,聊聊绕不开的 5 个痛点与一种新解法
nginx