Hi,
I'm currently trying to get the same Django app running twice under different URLs on the same server.
App 1 ran last year under https://www.sample.com/2013/app and should stay there for reference purposes.
App 2 should run under https://www.sample.com/2014/app and also should use a different code base and different database than last years version.
I tried the following settings in httpd.conf, but regardless if I use the 2013 or 2014 url, I always get the 2013 version of the application...
I also changed the database setting in the 2014 version in settings.py, but it seems as if this is never executed.
what is the correct way to set this up on Windows/Apache?
#
# WSGI / Django Konfiguration
<IfModule wsgi_module>
WSGIApplicationGroup %{GLOBAL}
WSGIScriptAlias /2013/app "D:/dev/app/app/wsgi.py"
WSGIScriptAlias /2014/app "D:/dev/app.2014/app/wsgi.py"
WSGIPythonPath "D:/dev/app"
<Directory D:/dev/app>
<Files wsgi.py>
Order deny,allow
Allow from all
</Files>
</Directory>
<Directory D:/dev/app.2014>
<Files wsgi.py>
Order deny,allow
Allow from all
</Files>
</Directory>
Alias /static "D:/wwwroot/app/static/"
Alias /static2014 "D:/wwwroot/app.2014/static/"
Header set X-XSS-Protection 0
</IfModule>
-- I'm currently trying to get the same Django app running twice under different URLs on the same server.
App 1 ran last year under https://www.sample.com/2013/app and should stay there for reference purposes.
App 2 should run under https://www.sample.com/2014/app and also should use a different code base and different database than last years version.
I tried the following settings in httpd.conf, but regardless if I use the 2013 or 2014 url, I always get the 2013 version of the application...
I also changed the database setting in the 2014 version in settings.py, but it seems as if this is never executed.
what is the correct way to set this up on Windows/Apache?
#
# WSGI / Django Konfiguration
<IfModule wsgi_module>
WSGIApplicationGroup %{GLOBAL}
WSGIScriptAlias /2013/app "D:/dev/app/app/wsgi.py"
WSGIScriptAlias /2014/app "D:/dev/app.2014/app/wsgi.py"
WSGIPythonPath "D:/dev/app"
<Directory D:/dev/app>
<Files wsgi.py>
Order deny,allow
Allow from all
</Files>
</Directory>
<Directory D:/dev/app.2014>
<Files wsgi.py>
Order deny,allow
Allow from all
</Files>
</Directory>
Alias /static "D:/wwwroot/app/static/"
Alias /static2014 "D:/wwwroot/app.2014/static/"
Header set X-XSS-Protection 0
</IfModule>
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8dd8494e-1714-4867-85bd-b4c669d91ee8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment