TUISTERa

Untitled

Jun 5th, 2020
323
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. /home/display/conf/web/replaceddomain.nginx.conf [----] 0 L:[ 1+ 7 8/ 34] *(223 /1288b) 0009 0x009 [*][X]
  2. server {
  3. listen 192.168.21.2:80;
  4. server_name replaceddomain ;
  5. error_log /var/log/apache2/domains/replaceddomain.error.log error;
  6.  
  7. location / {
  8. proxy_pass http://192.168.21.2:8080;
  9. <------>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|
  10. root /home/display/web/replaceddomain/public_html/web;
  11. access_log /var/log/apache2/domains/replaceddomain.log combined;
  12. access_log /var/log/apache2/domains/replaceddomain.bytes bytes;
  13. expires max;
  14. try_files $uri @fallback;
  15. }
  16. }
  17.  
  18. location /error/ {
  19. alias /home/display/web/replaceddomain/document_errors/;
  20. }
  21.  
  22. location @fallback {
  23. proxy_pass http://192.168.21.2:8080;
  24. }
  25.  
  26. location ~ /\.ht {return 404;}
  27. location ~ /\.svn/ {return 404;}
  28. location ~ /\.git/ {return 404;}
  29. location ~ /\.hg/ {return 404;}
  30. location ~ /\.bzr/ {return 404;}
  31.  
  32. include /home/display/conf/web/nginx.replaceddomain.conf*;
  33. }
Add Comment
Please, Sign In to add comment