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;

#}

}

相关推荐
wuxinyan1232 小时前
Java面试题47:一文深入了解Nginx
java·nginx·面试题
小敬爱吃饭2 小时前
Ragflow Docker部署及问题解决方案(界面为Welcome to nginx,ragflow上传文件失败,Docker中的ragflow-cpu-1一直重启)
人工智能·python·nginx·docker·语言模型·容器·数据挖掘
龙卷风卷云6 小时前
【BUG】Nginx使用upstream后端接口报 400
运维·nginx·bug
Java面试题总结7 小时前
Nginx 配置笔记
运维·笔记·nginx
cyber_两只龙宝8 小时前
【Nginx】Nginx配置负载均衡详解
linux·运维·nginx·云原生·负载均衡
夜影风9 小时前
Tengine、OpenResty与Nginx三大Web服务中间件对比分析
nginx·openresty·技术架构
海的透彻1 天前
nginx启动进程对文件的权限掌控
运维·chrome·nginx
my_styles2 天前
linux系统下安装 tengine / 宝兰德等国产信创中间件和闭坑
linux·运维·服务器·spring boot·nginx·中间件
NGINX开源社区2 天前
从 F5 NGINX Ingress Controller 迁移到 F5 NGINX Gateway Fabric
nginx
Arvin6272 天前
Nginx 添加账号密码访问验证
运维·服务器·nginx