Advertisement
marcelo1122

Untitled

May 25th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. server {
  2. listen 144.217.31.171:80;
  3. server_name celular.sertaovibe.com.br www.celular.sertaovibe.com.br;
  4. error_log /var/log/apache2/domains/celular.sertaovibe.com.br.error.log error;
  5.  
  6. location / {
  7. proxy_pass http://xxx.xxx.xxx.xx:7778;
  8. 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$
  9. root /home/celular/web/celular.sertaovibe.com.br/public_html;
  10. access_log /var/log/apache2/domains/celular.sertaovibe.com.br.log combined;
  11. access_log /var/log/apache2/domains/celular.sertaovibe.com.br.bytes bytes;
  12. expires max;
  13. try_files $uri @fallback;
  14. }
  15. }
  16.  
  17. location /error/ {
  18. alias /home/celular/web/celular.sertaovibe.com.br/document_errors/;
  19. }
  20.  
  21. location @fallback {
  22. proxy_pass http://xxx.xxx.xxx.xx:7778;
  23. }
  24.  
  25. location ~ /\.ht {return 404;}
  26. location ~ /\.svn/ {return 404;}
  27. location ~ /\.git/ {return 404;}
  28. location ~ /\.hg/ {return 404;}
  29. location ~ /\.bzr/ {return 404;}
  30.  
  31. include /home/celular/conf/web/nginx.celular.sertaovibe.com.br.conf*;
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement