On Thursday, September 30, 2010, nitin chandra <nitinchand...@gmail.com> wrote: > ok ... so i took advice from Carl, and also changed DocumentRoot back > to '/opt/apache2215/htdocs' and in my enthusiasm went a little extra > and changed this also to the original, <Directory > "/opt/apache2215/htdocs"> </Directory>. > > and renamed index.wsgi to myapp.wsgi and > > https://192.168.1.6
You have to use: http://www.healthcare.in and not the IP address as you are using named virtual host which contains WSGIScriptAlias. Way back in time you had trouble getting this to work originally because you weren't doing that and you also didn't have entry in DNS or hosts file either. Graham > > 403 Forbidden > > You don't have permission to access / on this server. > > .... well need more thinking and analysis. But now the config is now > the original what it was working .... > > and in vhost setting of Alias is back to original > > WSGIScriptAlias / /home/dev/wsgi-scripts/myapp.wsgi > > > The following contents have remain the same in both 'index.wsgi' or in > 'myapp.wsgi' > > d...@dev-desktop:~/wsgi-scripts$ cat myapp.wsgi > > def application(environ, start_response): > status = '200 OK' > output = 'Hello World!, This file is in /home/dev/wsgi-scripts directory' > > response_headers = [('Content-type', 'text/html'), > ('Content-Length', str(len(output)))] > start_response(status, response_headers) > > return [output] > > d...@dev-desktop:~/wsgi-scripts$ > > Any suggestion pl? > > Thanks > > Nitin > > > On Wed, Sep 29, 2010 at 9:08 PM, Carl Nobile <carl.nob...@gmail.com> wrote: >> Other than what I mentioned before I see nothing wrong with your >> config Graham may find something I missed. Are you sure you haven't >> changed the contents of the index.wsgi file and broke it? Have you >> checked the paths leading up to and including your wsgi-scripts dir to >> have the execute and read bits set? >> >> ~Carl >> >> On Wed, Sep 29, 2010 at 10:52 AM, nitin chandra <nitinchand...@gmail.com> >> wrote: >>> Thanks Carl, >>> >>> but it did not work ... :( >>> >>> Nitin >>> > > -- > You received this message because you are subscribed to the Google Groups > "modwsgi" group. > To post to this group, send email to modw...@googlegroups.com. > To unsubscribe from this group, send email to > modwsgi+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/modwsgi?hl=en. > > -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To post to this group, send email to modw...@googlegroups.com. To unsubscribe from this group, send email to modwsgi+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en.