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;

#}

}

相关推荐
IT利刃出鞘1 小时前
Nginx--变量的使用
运维·nginx
G_Cloudpipe3 小时前
Nginx 服务器部署
运维·服务器·nginx
全栈工程师修炼指南3 小时前
Nginx | 负载均衡策略:ip_hash / hash 会话保持实践
运维·tcp/ip·nginx·负载均衡·哈希算法
全栈工程师修炼指南1 天前
Nginx | 负载均衡策略:一致性哈希算法实践
运维·算法·nginx·负载均衡·哈希算法
街灯L1 天前
【Ubuntu】安装配置nginx文件版
服务器·nginx·ubuntu
黛琳ghz1 天前
极速云原生:openEuler之Redis与Nginx部署性能实战
redis·nginx·云原生·操作系统·压力测试·openeuler·服务器部署
凤凰战士芭比Q1 天前
web中间件——(二)Nginx(高级功能、优化)
前端·nginx·中间件
用户6135411460162 天前
nginx-sticky怎么用 Nginx 负载均衡添加 sticky 模块完整步骤
nginx
Debug 熊猫2 天前
Nginx代理快速入门(结合vue3简单项目讲解)
运维·nginx