You are using:

    WSGIScriptAlias / /some/path

for both applications with same mount point. You can't do this as the second 
listed will always win when their is a conflict.

If these are different sites with different hostnames, you should have them in 
separate VirtualHost definitions, where each VirtualHost has different 
ServerName corresponding to the hostname of the site.

Graham

> On 17 Jan 2018, at 2:55 pm, Mahesh Vernekar <[email protected]> wrote:
> 
> Hi,
> 
> I need to run 2 websites on the same host in apache.
> But the issue I am facing is the 2nd website is opening in the same folder as 
> website1.
> If I remove the configuration on website1 the site opens in its own folder 
> (i.e. the correct folder)
> 
> I have configured the conf file as directed in the posts using deamon process.
> 
> My conf file looks like below:
> 
> Alias /static1 /opt/data/app1/knanalytics/knanalytics/static
> <Directory /opt/data/app1/knanalytics/knanalytics/static>
>     Require all granted
> </Directory>
>  
> <Directory //opt/data/app1/knanalytics/knanalytics>
>     <Files wsgi.py>
>         Require all granted
>     </Files>
> </Directory>
>  
> WSGIDaemonProcess pe-xl-dev.knowdl.com 
> python-path=/opt/data/app1/knanalytics/knanalytics:/opt/data/app1/env/lib/python2.7/site-packages
> WSGIProcessGroup pe-xl-dev.knowdl.com
> WSGIScriptAlias / /opt/data/app1/knanalytics/knanalytics/wsgi.py
>  
>  
> Alias /static /opt/data/app1/stage_apps/revel_ilp/revel_ilp/static
> <Directory /opt/data/app1/stage_apps/revel_ilp/revel_ilp/static>
>     Require all granted
> </Directory>
>  
> <Directory //opt/data/app1/stage_apps/revel_ilp/revel_ilp>
>     <Files wsgi.py>
>         Require all granted
>     </Files>
> </Directory>
>  
> WSGIDaemonProcess revel-ilp-stg.knowdl.com 
> python-path=/opt/data/app1/stage_apps/revel_ilp/revel_ilp:/opt/data/app1/env/lib/python2.7/site-packages
> WSGIProcessGroup revel-ilp-stg.knowdl.com
> WSGIScriptAlias / /opt/data/app1/stage_apps/revel_ilp/revel_ilp/wsgi.py
>  
> SSLEngine on
> SSLCertificateKeyFile /opt/data/ssl/knowdl.key
> SSLCertificateFile /opt/data/ssl/STAR_knowdl_com.crt
> SSLCertificateChainFile /opt/data/ssl/STAR_knowdl_com.ca-bundle
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "modwsgi" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/modwsgi 
> <https://groups.google.com/group/modwsgi>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to