Skip to content

Instantly share code, notes, and snippets.

@kjprince
Created March 15, 2014 18:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kjprince/9571919 to your computer and use it in GitHub Desktop.
Save kjprince/9571919 to your computer and use it in GitHub Desktop.
/etc/nginx/sites-available/mysite.com
# Virtual Host File
# Common wordpress configurations included in /etc/nginx/wordpress.conf
# All virtual hosts including this one are symlinked to /etc/nginx/sites-enabled
# Make sure you replace "mysite" with your domain name
server {
listen 80 default_server;
listen 443 ssl;
server_name mysite.com www.mysite.com *.mysite.com;
root /srv/www/mysite.com;
include /etc/nginx/wordpress.conf;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment