Files
zira-etc/nginx/conf.d/inactive/cokeandpopcorn.click.conf_
2021-05-24 22:18:33 +03:00

47 lines
1.0 KiB
Plaintext

server {
listen 192.168.1.2:80;
#Logging
access_log /var/log/nginx/cokeandpopcorn.click.access.log;
error_log /var/log/nginx/cokeandpopcorn.click.error.log;
server_name cokeandpopcorn.click www.cokeandpopcorn.click;
location / {
location ~.*\.(3gp|gif|jpg|jpeg|png|ico|wmv|avi|asf|asx|mpg|mpeg|mp4|pls|mp3|mid|wav|swf|flv|html|htm|txt|js|css|exe|zip|tar|rar|gz|tgz|bz2|uha|7z|doc|docx|xls|xlsx|pdf|iso|woff|ttf|svg|eot)\$ {
expires 7d;#Comment this out if you are using the apache backend cache-control/expires headers.
try_files \$uri \@backend;
}
error_page 405 = \@backend;
error_page 500 = \@custom;
add_header X-Cache "HIT from Backend";
proxy_pass http://10.208.99.26:202;
include proxy.inc;
}
location \@backend {
internal;
proxy_pass http://10.208.99.26:202;
include proxy.inc;
}
location \@custom {
internal;
proxy_pass http://10.208.99.26:202;
include proxy.inc;
}
location ~ .*\.(php|jsp|cgi|pl|py)?\$ {
proxy_pass http://10.208.99.26:202;
include proxy.inc;
}
location ~ /\.ht {
deny all;
}
}