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;

#}

}

相关推荐
Justin_1917 小时前
nginx反向代理与缓存功能
运维·nginx
苹果醋318 小时前
数据结构其一 线性表
java·运维·spring boot·mysql·nginx
java干货19 小时前
我用Nginx做了负载均衡,还需要API网关吗?
运维·nginx·负载均衡
東雪蓮☆2 天前
LNMP 环境部署 WordPress
linux·运维·mysql·nginx·php
-dcr2 天前
22.Nginx 服务器 LNMP项目
运维·服务器·nginx·php·lnmp
東雪蓮☆2 天前
Docker 搭建 Nginx 并启用 HTTPS 具体部署流程
运维·nginx·docker
zz-zjx2 天前
Nginx 生产级知识架构树(按流量路径 + 运维维度组织)含生产常见错误
运维·nginx·架构
爱尚你19934 天前
Nginx proxy_pass 末尾斜杠(/)
服务器·网络·nginx
Molesidy5 天前
【Docker】基于Ubuntu的Docker的日常使用方法
nginx·ubuntu·docker
华农第一蒟蒻5 天前
谈谈跨域问题
java·后端·nginx·安全·okhttp·c5全栈