Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- #listen 80 default_server;
- server_name _;
- access_log /var/log/nginx/access.log;
- error_log /var/log/nginx/error.log;
- #-- change this
- root /var/www/html/wordpress;
- index index.php index.html index.htm;
- location ~ ^/files/(.*)$ {
- try_files /wp-content/blogs.dir/$blogid/$uri /wp-includes/ms-files.php?file=$1;
- access_log off;
- log_not_found off;
- expires max;
- }
- location / {
- try_files $uri $uri/ /index.php?$args;
- }
- location ~ \.php$ {
- try_files $uri /index.php;
- #-- using PHP-FPM socket
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- #-- using CGI
- #fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include fastcgi_params;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement