1 Star 0 Fork 1

hodor/laravel_swoole

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
nginx_swoole.conf 774 Bytes
一键复制 编辑 原始数据 按行查看 历史
upstream web_app {
server 127.0.0.1:9501;
}
server {
listen 80;
server_name localhost;
root /home/www/web_app/public;
#access_log /var/log/nginx/log/host.access.log main;
location / {
proxy_set_header Host $host;
proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://web_app;
}
location ~ ^/js/ {
expires 1y;
add_header Cache-Control public;
add_header ETag "";
break;
}
location ~ ^/css/ {
expires 1y;
add_header Cache-Control public;
add_header ETag "";
break;
}
location ~ /\.ht {
deny all;
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/gnpok/laravel_swoole.git
[email protected]:gnpok/laravel_swoole.git
gnpok
laravel_swoole
laravel_swoole
master

搜索帮助