mirror of
https://github.com/gilbN/theme.park.git
synced 2024-11-09 04:32:36 +01:00
31 lines
781 B
Plaintext
31 lines
781 B
Plaintext
|
server {
|
||
|
listen 443 ssl;
|
||
|
listen [::]:443 ssl;
|
||
|
|
||
|
server_name themepark.*;
|
||
|
|
||
|
include /config/nginx/ssl.conf;
|
||
|
|
||
|
index index.html index.htm index.php;
|
||
|
|
||
|
location / {
|
||
|
alias /config/www/themepark/;
|
||
|
try_files $uri $uri/ /index.html;
|
||
|
}
|
||
|
location /themepark {return 302 $scheme://$http_host/themepark/;}
|
||
|
location /themepark/ {
|
||
|
alias /config/www/themepark/;
|
||
|
sub_filter_types *;
|
||
|
sub_filter 'url("/css/' 'url("/themepark/css/';
|
||
|
sub_filter_once off;
|
||
|
try_files $uri $uri/ /index.html;
|
||
|
}
|
||
|
|
||
|
# Don't cache
|
||
|
add_header Last-Modified $date_gmt;
|
||
|
add_header Cache-Control 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
|
||
|
if_modified_since off;
|
||
|
expires -1;
|
||
|
etag off;
|
||
|
}
|