Advertisement
Guest User

Untitled

a guest
Oct 16th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.93 KB | None | 0 0
  1. server {
  2.         listen 80;
  3.  
  4.         root /home/xxx/xxx.com.br/public;
  5.         index index.php index.html index.htm;
  6.         server_name www.xxx.com.br www.xxx.com.br;
  7.  
  8.         location ^~/blog/ {
  9.                 proxy_pass http://blog.xxx.com.br/;
  10.         }
  11.         location / {
  12.                 try_files $uri $uri/ /index.php$uri?$args;
  13.         }
  14.         error_page 404 /404.html;
  15.         error_page 500 502 503 504 /50x.html;
  16.  
  17.         location = /50x.html {
  18.                 root /usr/share/nginx/html;
  19.         }
  20.  
  21.  
  22.         expires 1h;
  23.  
  24.         location ^~/lista-de-desejos/* {
  25.                 expires off;
  26.         }
  27.  
  28.         location ~ "^(.+\.php)($|/)" {
  29.                 fastcgi_split_path_info ^(.+\.php)(/.+)$;
  30.         fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
  31. #               fastcgi_pass unix:/var/run/hhvm/hhvm.sock;
  32.                 fastcgi_index index.php;
  33.                 fastcgi_read_timeout 600;
  34. ....
  35. ....
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement