Created
September 11, 2012 02:22
-
-
Save hersonls/3695466 to your computer and use it in GitHub Desktop.
Nginx and Apache configuration for sub-domains
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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