Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- server_name iibs.co;
- return 302 $scheme://www.iibs.co$request_uri;
- }
- server {
- server_name www.iibs.co;
- root /var/www/iibs.co;
- index index.php;
- include global/restrictions.conf;
- client_max_body_size 64M;
- # Additional rules go here.
- location / {
- # This is cool because no php is touched for static content.
- # include the "?$args" part so non-default permalinks doesn't break when using query string
- try_files $uri $uri/ /index.php?$args;
- }
- location ~ .php$ {
- #NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
- include fastcgi.conf;
- fastcgi_intercept_errors on;
- fastcgi_pass php;
- }
- location ~* .(js|css|png|jpg|jpeg|gif|ico)$ {
- expires max;
- log_not_found off;
- }
- # Only include one of the files below.
- # include global/wordpress.conf;
- # include global/wordpress-ms-subdir.conf;
- # include global/wordpress-ms-subdomain.conf;
- }
Add Comment
Please, Sign In to add comment