Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name www.pipocapops.com.br pipocapops.com.br;
- return 301 https://www.pipocapops.com.br$request_uri;
- }
- server{
- listen 443 ssl;
- ssl_certificate /etc/nginx/ssl/pipocapops_com_br/pipocapops_com_br.crt;
- ssl_certificate_key /etc/nginx/ssl/pipocapops_com_br/private-key.pem;
- root /usr/share/nginx/html/loja-00000/lojas/loja-00004;
- index index.php;
- large_client_header_buffers 4 16k;
- server_name pipocapops.com.br www.pipocapops.com.br;
- location / {
- try_files $uri $uri/ /index.html;
- }
- error_page 404 /404.html;
- error_page 500 502 503 504 /50x.html;
- location = /50x.html {
- root /usr/share/nginx/html;
- }
- location /. { ## Disable .htaccess and other hidden files
- return 404;
- }
- location @handler { ## Magento uses a common front handler
- rewrite / /index.php;
- }
- location ~ .php/
- { ## Forward paths like /js/index.php/x.js to relevant handler
- rewrite ^(.*.php)/ $1 last;
- }
- location ~ \.php$ {
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- fastcgi_index index.php;
- include fastcgi_params;
- }
- location ~/\.ht {
- deny all;
- }
- location ~ \.(?:jpg|jpeg|js|css|gif|png|swf|ico|pdf)$ {
- expires 7d;
- access_log off;
- add_header Pragma public;
- add_header Cache-Control "public, must-revalidate, proxy-revalidate";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement