3 Star 4 Fork 2

joesupper / pos

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
default.conf 1.73 KB
一键复制 编辑 原始数据 按行查看 历史
Maurice Yiu 提交于 2019-12-06 18:00 . ces
server {
listen 80;
server_name localhost;
#charset koi8-r;
#access_log /var/log/nginx/host.access.log main;
location ~* \.(?:manifest|appcache|html?|xml|json|css|js)$ {
expires -1;
root /usr/share/nginx/html;
index index.html index.htm;
# if ($http_x_forwarded_proto != "https") {
# rewrite ^(.*)$ https://$host$1 permanent;
# }
}
#
location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ {
expires 1h;
root /usr/share/nginx/html;
access_log off;
add_header Cache-Control "public";
# if ($http_x_forwarded_proto != "https") {
# rewrite ^(.*)$ https://$host$1 permanent;
# }
}
#
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
#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 /usr/share/nginx/html;
}
# 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 html;
# 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;
#}
}
HTML
1
https://gitee.com/joesupper/pos.git
git@gitee.com:joesupper/pos.git
joesupper
pos
pos
master

搜索帮助