rendered paste bodyserver {
server_name website.com;
rewrite ^ $scheme://www.website.com$request_uri? permanent;
}
server {
server_name www.website.com;
root /var/www/website.com/public_html;
include global/wordpress.conf;
}
Here's the content of wordpress.conf
location / {
try_files $uri $uri/ /index.php;
}
...super cache rules...
location ~ \.php$ {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_intercept_errors on;
fastcgi_pass unix:/dev/shm/php-fastcgi.socket;
fastcgi_index index.php;
}
location ~* \.(js|css|pdf|doc|png|jpg|jpeg|gif|ico)$ {
expires 30d;
log_not_found off;
tcp_nodelay off;
}
if (!-e $request_filename) {
rewrite . /index.php last;
}