Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen ip:80;
- server_name suporteline.com.br;
- root /var/www/wordpress;
- index index.php;
- location = /favicon.ico {
- log_not_found off;
- access_log off;
- }
- location = /robots.txt {
- allow all;
- log_not_found off;
- access_log off;
- }
- location ~ ([^/]*)sitemap(.*)\.x(m|s)l$ {
- rewrite ^/sitemap\.xml$ /sitemap_index.xml permanent;
- rewrite ^/([a-z]+)?-?sitemap\.xsl$ /index.php?xsl=$1 last;
- rewrite ^.*/sitemap_index\.xml$ /index.php?sitemap=1 last;
- rewrite ^.*/([^/]+?)-sitemap([0-9]+)?\.xml$ /index.php?sitemap=$1&sitemap_n=$2 last;
- rewrite ^/news_sitemap\.xml$ /index.php?sitemap=wpseo_news last;
- rewrite ^/locations\.kml$ /index.php?sitemap=wpseo_local_kml last;
- rewrite ^/geo_sitemap\.xml$ /index.php?sitemap=wpseo_local last;
- rewrite ^/video-sitemap\.xsl$ /index.php?xsl=video last;
- access_log off;
- }
- location / {
- try_files $uri $uri/ /index.php?$args;
- }
- location ~ \.php$ {
- include fastcgi.conf;
- fastcgi_intercept_errors on;
- fastcgi_pass 127.0.0.1:9000;
- }
- location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
- expires max;
- log_not_found off;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement