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;

#}

}

相关推荐
代码炼金术士17 小时前
linux的nginx版本升级
linux·运维·nginx
CXH72821 小时前
nginx-file-server
运维·数据库·nginx
寺中人1 天前
Nginx安全策略
运维·nginx
橘色的喵1 天前
C语言面向对象范式:Nginx模块化架构的设计分析
c语言·nginx·架构·面向对象
百***67031 天前
Nginx搭建负载均衡
运维·nginx·负载均衡
m0_569531012 天前
Nginx(4)--Nginx与tomcat反向代理和负载均衡
nginx·tomcat·负载均衡
R.lin2 天前
浅谈Nginx
运维·nginx
Crazy________2 天前
37负载均衡介绍和nginx模块编译安装
运维·nginx·负载均衡
百***34132 天前
Nginx实现接口复制
运维·nginx·junit
天黑请闭眼2 天前
华为对象存储:nginx代理临时访问地址后访问报错:Authentication Failed
nginx·华为