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;

#}

}

相关推荐
苹果醋34 小时前
element-ui源码阅读-样式
java·运维·spring boot·mysql·nginx
向上的车轮8 小时前
Actix Web 不是 Nginx:解析 Rust 应用服务器与传统 Web 服务器的本质区别
前端·nginx·rust·tomcat·appche
摇滚侠1 天前
Nginx 与 F5 负载均衡的区别
nginx·负载均衡
huangql5202 天前
Nginx 从零到精通 - 最详细的循序渐进教程
开发语言·网络·nginx
苦逼IT运维2 天前
Kubernetes 双层 Nginx 容器环境下的 CORS 问题及解决方案(极端情况)
运维·nginx·容器·kubernetes·jenkins·运维开发·ci
cqwuliu2 天前
通过nginx+openssl自签名证书部署https应用并解决不安全问题
nginx·安全·https
my一阁3 天前
tomcat web实测
java·前端·nginx·tomcat·负载均衡
念念不忘 必有回响3 天前
Nginx前端配置与服务器部署详解
服务器·前端·nginx
K_i1343 天前
Ansible自动化部署ECS与Nginx全流程
nginx·自动化·ansible
宁&沉沦4 天前
Nginx清除浏览器缓存的三个缓存响应头的关系详解
运维·nginx·缓存