Note that there are some explanatory texts on larger screens.

plurals
  1. POIs it possible to configure multiple Apache WSGIAlias'es under same VirtualHost?
    primarykey
    data
    text
    <p>I currently have an SSL configuration file in apache to serve my django project. Currently that setup looks something like:</p> <pre><code>&lt;VirtualHost _default_:443&gt; #setup of paths to SSL file, default dirs, etc # # config for main django site # WSGIScriptAlias /v1 "C:/sites/mysite/v1/django.wsgi" WSGIPassAuthorization On &lt;Directory "C:/sites/mysite/v1/myAppName"&gt; AllowOverride None Options None Order allow,deny Allow from all &lt;/Directory&gt; &lt;/VirtualHost&gt; </code></pre> <p>That works. However, I'd like to add a staging/test URL path (but different code directory) to the same server and reuse the existing certificate. However, if I tweak the above code and restart the server, hits to my /demo/ site are throwing an internal server error, although calls to the main django site continue to work:</p> <pre><code>&lt;VirtualHost _default_:443&gt; #setup of paths to SSL file, default dirs, etc # # config for demo django site # WSGIScriptAlias /demo "C:/sites/demo/django.wsgi" WSGIPassAuthorization On &lt;Directory "C:/sites/demo/myAppName"&gt; AllowOverride None Options None Order allow,deny Allow from all &lt;/Directory&gt; # # config for main django site # WSGIScriptAlias /v1 "C:/sites/mysite/v1/django.wsgi" WSGIPassAuthorization On &lt;Directory "C:/sites/mysite/v1/myAppName"&gt; AllowOverride None Options None Order allow,deny Allow from all &lt;/Directory&gt; &lt;/VirtualHost&gt; </code></pre> <p>How can I configure Apache to have two different code directories both respond depending on changes to the WSGIScriptAlias path passed on the URL?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload