Skip to content

Instantly share code, notes, and snippets.

@urre
Last active March 17, 2016 12:23
Show Gist options
  • Save urre/3982392 to your computer and use it in GitHub Desktop.
Save urre/3982392 to your computer and use it in GitHub Desktop.
Site configuration
# Redirect everything to the main site.
server {
server_name mywebsite.se *.mywebsite.se;
root /var/www/nyttinstrument.se;
if ($http_host != "mywebsite.se") {
rewrite ^ http://mywebsite.se$request_uri permanent;
}
#include global/wordpress-w3-total-cache.conf;
include global/restrictions.conf;
include global/php5-fpm.conf;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment