On 22/01/2015, at 12:52 AM, nitin chandra <[email protected]> wrote:
> 
>> 
>> Please explain exactly what you expect different URLs to do. That is for:
>> 
>>    /
>>    /index.py
>>    /wsgi-scripts
>>    /wsgi-scripts/
>> 
>> 
> 
> I just want to server my site from /wsgi-scripts/index.py from ONLY one URL.
> 
> /  --> /home/nitin/wsgi-scripts/

Your second line here doesn't really match the explanation of the first.

If that is all you want is for the WSGI application contained in the index.py 
file to be available at the root of the web site, then all you need is:

<VirtualHost 127.0.1.1:80>
 ServerName www.healthcare.in
 ServerAlias healthcare.in
 WSGIDaemonProcess healthcare.in processes=6 threads=15 display-name=%{GROUP}
 WSGIProcessGroup healthcare.in
 WSGIScriptAlias / /home/nitin/wsgi-scripts/index.py
 <Directory /home/nitin/wsgi-scripts>
    Order allow,deny
    Allow from all
 </Directory>
ServerAdmin webmaster@localhost
#DocumentRoot /var/www/html

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>

Note, DO NOT set DocumentRoot to where your source code files are. Allow it to 
default to the empty DocumentRoot directory for the whole server, or if there 
is stuff in that you do not want exposed, then create a new empty directory 
with nothing in it, and set DocumentRoot to refer to is. 

Graham

>>> Also, can I request which version of mod_wsgi is compatible with Apache 
>>> 2.4.x ?
>>> 
>>> I also tried 'pip install mod_wsgi', it downloaded 4.4 but could not find 
>>> apxs.
>> 
>> The PyPi page explains the system requirement of needing to have the Apache 
>> dev package installed for your Apache installation. If you do not then apxs 
>> will not be found.
> 
> I have /etc/apache2/mods-available/
> 
> and
> 
> I have /etc/apache2/mods-enabled/
> 
> both have wsgi.conf, wsgi.load.
> 
> So, is it necessary to install both of them again ? If this compatible
> configuration works ?
> 
>> 
>> Graham
>> 
>>> Thx
> 
> -- 
> 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 http://groups.google.com/group/modwsgi.
> For more options, visit 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 http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to