You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.2 KiB
49 lines
1.2 KiB
2 days ago
|
server {
|
||
|
server_name hbraas.com www.hbraas.com;
|
||
|
|
||
|
listen 80;
|
||
|
|
||
|
root /www/OfficialPageCode/backend/web;
|
||
|
index index.html index.htm index.php;
|
||
|
|
||
|
location /nginx_status {
|
||
|
stub_status on;
|
||
|
access_log off;
|
||
|
allow 127.0.0.1;
|
||
|
deny all;
|
||
|
}
|
||
|
|
||
|
location ~ ^/proxy/(.+)$ {
|
||
|
set $realpath $1;
|
||
|
set $lastpath $realpath$is_args$args;
|
||
|
proxy_set_header Referer '';
|
||
|
proxy_pass http://$lastpath;
|
||
|
}
|
||
|
|
||
|
location ~ ^/(ueditor/php/.*) {
|
||
|
rewrite ^/(ueditor/php/.*) /$1 break;
|
||
|
root /www/OfficialPageCode/admin/web;
|
||
|
}
|
||
|
location ~ .*\.(php|php5)$ {
|
||
|
fastcgi_pass php72:9000;
|
||
|
fastcgi_index index.php;
|
||
|
include fastcgi.conf;
|
||
|
}
|
||
|
|
||
|
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|flv|ico)$ {
|
||
|
root /www/OfficialPageCode/backend/views;
|
||
|
expires 30d;
|
||
|
access_log off;
|
||
|
}
|
||
|
location ~ .*\.(js|css|ttf|woff|woff2)$ {
|
||
|
root /www/OfficialPageCode/backend/views;
|
||
|
expires 7d;
|
||
|
access_log off;
|
||
|
}
|
||
|
location ~ .*\.(html)$ {
|
||
|
root /www/OfficialPageCode/backend/views/webroot;
|
||
|
expires 7d;
|
||
|
access_log off;
|
||
|
}
|
||
|
}
|