Tuesday, February 25, 2014

How to host multiple instances of the same app with Windows Apache & WSGI?

Hi,

currently I'm using the following configuration to host a Django appliaction:

# WSGI Configuration
<IfModule wsgi_module>
    WSGIScriptAlias /2013/spcmanage "D:/dev/spcmanage/spcmanage/wsgi.py"
    WSGIPythonPath "D:/dev/spcmanage"

    <Directory D:/dev/spcmanage>
        <Files wsgi.py>
            Order deny,allow
            Allow from all
        </Files>
    </Directory>

    Alias /static "D:/wwwroot/spcmanage/static/"
</IfModule>

Now I need to host the same application for another project, but with a different database and under a different URL, e.g. htts://www.domain.com/2014/spcmanage

But the application from 2013 should be working as well.

Is it sufficient to just add another WSGIScriptAlias line like below?

    WSGIScriptAlias /2014/spcmanage "D:/dev/2014/spcmanage/spcmanage/wsgi.py"

But what about the alias for the /static directory?

Thomas

--
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/bc15e1ba-efae-4161-ac95-2b570e4430a0%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment