Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- root /home/xxx/xxx.com.br/public;
- index index.php index.html index.htm;
- server_name www.xxx.com.br www.xxx.com.br;
- location ^~/blog/ {
- proxy_pass http://blog.xxx.com.br/;
- }
- location / {
- try_files $uri $uri/ /index.php$uri?$args;
- }
- error_page 404 /404.html;
- error_page 500 502 503 504 /50x.html;
- location = /50x.html {
- root /usr/share/nginx/html;
- }
- expires 1h;
- location ^~/lista-de-desejos/* {
- expires off;
- }
- location ~ "^(.+\.php)($|/)" {
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
- fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
- # fastcgi_pass unix:/var/run/hhvm/hhvm.sock;
- fastcgi_index index.php;
- fastcgi_read_timeout 600;
- ....
- ....
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement