Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 443 ssl;
- listen [::]:443 ssl;
- server_name wordpress.*;
- add_header X-Robots-Tag "noindex, nofollow, nosnippet, noarchive";
- include /config/nginx/ssl.conf;
- root /config/www/wordpress;
- client_max_body_size 5m;
- client_body_timeout 60;
- location / {
- try_files $uri $uri/ @rewrite;
- }
- location @rewrite {
- rewrite ^/(.*)$ /index.php?title=$1&$args;
- }
- # location ^~ /maintenance/ {
- # return 403;
- # }
- location ~ \.php$ {
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- include /etc/nginx/fastcgi_params;
- }
- location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
- try_files $uri /index.php;
- expires max;
- log_not_found off;
- }
- location = /_.gif {
- expires max;
- empty_gif;
- }
- location ^~ /cache/ {
- deny all;
- }
- location /dumps {
- root /config/www/wordpress/local;
- autoindex on;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement