Skip to content

Instantly share code, notes, and snippets.

@Arcrammer
Last active April 1, 2016 12:15
Show Gist options
  • Save Arcrammer/256ad69a5ccc076fe657de505b83fa8a to your computer and use it in GitHub Desktop.
Save Arcrammer/256ad69a5ccc076fe657de505b83fa8a to your computer and use it in GitHub Desktop.
Second Django site on another subdomain problem
# This is the site I want to see at beta.ialexander.io
# WSGI Stuff
WSGIPythonPath /var/www/Ullmannite-Staging
<VirtualHost *:80>
# WSGI Stuff
WSGIScriptAlias / /var/www/Ullmannite-Staging/Ullmannite/wsgi.py
# Identification
ServerName beta.ialexander.io
ServerAdmin [email protected]
# Public files
Alias /assets /var/www/Ullmannite-Staging/public
# Logs
ErrorLog ${APACHE_LOG_DIR}/iAlexander-Staging-Error.log
CustomLog ${APACHE_LOG_DIR}/iAlexander-Staging-Access.log combined
# Access
DocumentRoot "/var/www/Ullmannite-Staging/public"
<Directory "/var/www/Ullmannite-Staging/Ullmannite">
<Files "wsgi.py">
Require all granted
</Files>
</Directory>
<Directory "/var/www/Ullmannite-Staging/public">
Require all granted
</Directory>
</VirtualHost>
# These are all of the .conf files I have enabled
Apr 1 07:08 000-ialexander-staging.conf*
Jan 10 18:04 dws-italy.conf*
Jan 10 18:03 dws-new-york.conf*
Dec 10 15:42 eximius-in-laravel.conf*
Dec 10 15:23 eximius-in-rails.conf*
Jan 10 16:45 fewf-employee-directory.conf*
Mar 31 17:37 ialexander.conf*
Mar 16 06:52 kjem.conf*
Dec 10 15:26 passenger.3000.pid.lock*
Dec 16 16:35 pwa2-main-project.conf*
Dec 16 16:25 rmo-final-project.conf*
Dec 16 15:02 taracrammerdesigns.conf*
Jan 10 17:58 ullmannite.conf*
Jan 23 08:15 ullmannite-staging.conf*
Dec 16 16:29 uniin.conf*
Dec 16 15:47 wia-the-presentation.conf*
# This is the site I see at beta.ialexander.io
<VirtualHost *:80>
# Identification
ServerName dws-italy.ullmannite.ml
ServerAdmin [email protected]
# Logs
ErrorLog ${APACHE_LOG_DIR}/DWS-Italy-Error.log
CustomLog ${APACHE_LOG_DIR}/DWS-Italy-Access.log combined
# Access
DocumentRoot "/var/www/Full-Sail/DWS-Italy"
<Directory "/var/www/Full-Sail/DWS-Italy">
Require all granted
</Directory>
</VirtualHost>
# This file is probably irrelevant but it's here
# just in case you wanted to check for something.
#
# It's the site at ialexander.io
# WSGI Stuff
WSGIPythonPath /var/www/Ullmannite
<VirtualHost *:80>
# WSGI Stuff
WSGIScriptAlias / /var/www/Ullmannite/Ullmannite/wsgi.py
# Identification
ServerName ialexander.io
ServerAdmin [email protected]
# Public files
Alias /assets /var/www/Ullmannite/public
# Logs
ErrorLog ${APACHE_LOG_DIR}/iAlexander-Error.log
CustomLog ${APACHE_LOG_DIR}/iAlexander-Access.log combined
# Access
DocumentRoot "/var/www/Ullmannite/public"
<Directory "/var/www/Ullmannite/Ullmannite">
<Files "wsgi.py">
Require all granted
</Files>
</Directory>
<Directory "/var/www/Ullmannite/public">
Require all granted
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment