Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen ip:80;
- server_name domain.com
- root /home/admin/web/domain.com/public_html;
- location / {
- proxy_pass http://ip:8080;
- location ~* "^/content/.*\.php$" {
- return 404;
- }
- location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|tif|tiff|css|js|htm|html|ttf|otf|webp|woff|txt|csv|rtf|doc|docx|xls|xlsx|ppt|pptx|odf|odp|ods|odt|pdf|psd|ai|eot|eps|ps|zip|tar|tgz|gz|rar|bz2|7z|aac|m4a|mp3|mp4|ogg|wav|wma|3gp|avi|flv|m4v|mkv|mov|mp4|mpeg|mpg|wmv|exe|iso|dmg|swf)$ {
- expires max;
- try_files $uri @fallback;
- }
- }
- location /error/ {
- alias /home/admin/web/domain.com/document_errors/;
- }
- location @fallback {
- proxy_pass http://ip:8080;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement