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;

#}

}

相关推荐
q***55583 小时前
使用 Nginx 搭建代理服务器(正向代理 HTTPS 网站)指南
运维·nginx·https
梁正雄7 小时前
linux服务-Nginx+Tomcat+Redis之Session 共享 - 容器单机版
linux·nginx·tomcat
m0_4887776511 小时前
Web与Nginx网站服务
nginx·web
木童66213 小时前
nginx安装步骤详解
linux·运维·服务器·网络·nginx
yifengyiyufjq14 小时前
基于 CentOS 7 的 Nginx 七层负载均衡架构搭建指南
nginx·centos·负载均衡
云和数据.ChenGuang16 小时前
运维工程师技术教程之nginx ip访问机制
运维·tcp/ip·nginx
岚天start17 小时前
Nginx内置变量详解
运维·nginx
@菜菜_达18 小时前
Nginx错误拦截转发 error_page
运维·nginx
终端行者20 小时前
Nginx 配置Websocket代理 Nginx 代理 Websocket
运维·websocket·nginx
Caster_Z1 天前
WinServer安装NPM(Nginx Proxy Manager),并设置反向代理和开启https
前端·nginx·npm