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;

#}

}

相关推荐
熊猫钓鱼>_>4 小时前
动态网站发布部署核心问题详解
前端·nginx·容器化·网页开发·云服务器·静态部署
Swift社区6 小时前
Nginx 反向代理配置 React 前端与 Python 后端
前端·nginx·react.js
Dontla7 小时前
Kubernetes流量管理双雄:Ingress与Gateway API解析(Nginx与Ingress与Gateway API的关系)
nginx·kubernetes·gateway
lcx_defender8 小时前
【Docker】Docker部署运行Nginx
nginx·docker·容器
可可嘻嘻大老虎17 小时前
nginx无法访问后端服务问题
运维·nginx
bantinghy21 小时前
Nginx基础加权轮询负载均衡算法
服务器·算法·nginx·负载均衡
Dontla21 小时前
Vite代理 vs Nginx代理(开发环境用Vite,生产环境用Nginx)
运维·nginx
No Silver Bullet1 天前
Nginx 内存不足对Web 应用的影响分析
运维·前端·nginx
Access开发易登软件1 天前
Access 窗体中实现数字滚动动画:Timer + Easing 的技术实现
运维·数据库·nginx·microsoft·access
凌寒111 天前
minio预签名访问地址经过Nginx代理后返回403问题
服务器·网络·nginx