and i was typing https://192.168.1.6:8081 to access the wsgi script (in html)
Nitin On Wed, Sep 29, 2010 at 7:20 PM, nitin chandra <[email protected]> wrote: > Hi Graham, > > my httpd.conf has the following line (abridged) > > ServerRoot "/opt/apache2215" > Listen 192.168.1.6:8081 > LoadModule wsgi_module modules/mod_wsgi.so > ServerName www.healthcare.in > DocumentRoot "/home/dev/wsgi-scripts" > > <Directory /> > Options FollowSymLinks > AllowOverride None > Order deny,allow > Deny from all > </Directory> > > <Directory "/home/dev/wsgi-scripts"> > Options Indexes FollowSymLinks > AllowOverride None > Order allow,deny > Allow from all > </Directory> > > # Virtual hosts > Include conf/extra/httpd-vhosts.conf > > # Secure (SSL/TLS) connections > Include conf/extra/httpd-ssl.conf > > <IfModule ssl_module> > SSLRandomSeed startup builtin > SSLRandomSeed connect builtin > </IfModule> > > > THIS is httpd-vhost.conf > > NameVirtualHost 192.168.1.6:8081 > > <VirtualHost 192.168.1.6:8081> > ServerName www.healthcare.in > ServerAlias healthcare.in > > WSGIDaemonProcess healthcare.in processes=6 threads=15 > display-name=%{GROUP} > WSGIProcessGroup healthcare.in > > WSGIScriptAlias / /home/dev/wsgi-scripts/index.wsgi > > <Directory /home/dev/wsgi-scripts> > Order allow,deny > Allow from all > </Directory> > </VirtualHost> > > > this is the httpd-ssl.conf > > Listen 192.168.1.6:443 > > <VirtualHost _default_:443> > DocumentRoot "/home/dev/wsgi-scripts" > ServerName www.healthcare.in:443 > ServerAdmin [email protected] > ErrorLog "/opt/apache2215/logs/error_log" > TransferLog "/opt/apache2215/logs/access_log" > > SSLEngine on > > SSLCertificateFile "/etc/cups/ssl/server.crt" > SSLCertificateKeyFile "/etc/cups/ssl/server.key" > > ... > ... > </VirtualHost> > > THIS is my /etc/hosts > > 127.0.0.1 localhost > 127.0.1.1 dev-desktop > 192.168.1.6 www.healthcare.in > > The following is the DIR listing of /home/dev/wsgi-scripts > > d...@dev-desktop:~$ ls -alh wsgi-scripts/ > total 24K > drwxr-xrwx 2 dev dev 4.0K 2010-09-28 16:23 . > drwxr-xr-x 46 dev dev 4.0K 2010-09-28 16:58 .. > -rw-r--rwx 1 dev dev 327 2010-09-03 00:46 index.wsgi > -rw-r--r-x 1 dev dev 318 2010-09-02 23:32 myapp.wsgi~ > -rw-r--r-x 1 dev dev 316 2010-09-02 19:20 myapp.wsgi~~ > -rwxr-xr-x 1 dev dev 169 2010-09-02 23:35 myapp.wsgi-3 > d...@dev-desktop:~$ > > That 'index.wsgi' was earlier 'myapp.wsgi' (which was, earlier, working) > > Nitin > > > > On Wed, Sep 29, 2010 at 6:50 PM, Graham Dumpleton > <[email protected]> wrote: >> On Wednesday, September 29, 2010, nitin chandra <[email protected]> >> wrote: >>> Hello All, >>> >>> I renamed the test wsgi script from 'myapp.wsgi. to index.wsgi' for >>> application entry point, it did not load as it did previously, ie. >>> "Hello World" >>> >>> Now it shows the dir listing, in which 'index.wsgi' is one of the file >>> listed. >>> >>> File permissions are the same. >>> >>> And the apache config are same in both the cases. >>> >>> How to resolve this ? >> >> Post the parts of your Apache configuration related to mod_wsgi. >> >> Need this information to be able to help you. >> >> Also indicate for that configuration what URL you are using to access >> the site so can see how that matches against the configuration. >> >> The more information the better, else will need to get out the crystal ball. >> >> Graham >> >>> Thanks >>> >>> Nitin >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "modwsgi" group. >>> To post to this group, send email to [email protected]. >>> To unsubscribe from this group, send email to >>> [email protected]. >>> 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 [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en.
