Skip to content

Instantly share code, notes, and snippets.

@hersonls
Created September 11, 2012 02:22
Show Gist options
  • Save hersonls/3695466 to your computer and use it in GitHub Desktop.
Save hersonls/3695466 to your computer and use it in GitHub Desktop.
Nginx and Apache configuration for sub-domains
# Nginx
server {
# [...]
server_name *.yourdomain.com;
# [...]
}
# Apache
<VirtualHost *:8080>
ServerName yourdomain.com
ServerAlias *.yourdomain.com
# [...]
WSGIScriptAlias / /www/yourdomain.com/project/django.wsgi
# [...]
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment