Hi All,
The following is my settings in ../extra/httpd-vhost.conf
<VirtualHost *:80>
ServerName www.healthcare.com
ServerAlias healthcare
WSGIDaemonProcess healthcare.com processes=6 threads=60
display-name=%{GROUP}
WSGIProcessGroup healthcare.com
WSGIScriptAlias /wsgi-scripts /home/dev/wsgi-scripts/myapp.wsgi
<Directory /home/dev/wsgi-scripts>
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
********************************
In my ...extra/httpd-ssl.conf ... every thing is same .. except the following :-
<VirtualHost _default_:443>
# General setup for the virtual host
DocumentRoot "/opt/apache2215/htdocs"
ServerName www.healthcare.com:443
ServerAdmin [email protected]
ErrorLog "/opt/apache2215/logs/error_log"
TransferLog "/opt/apache2215/logs/access_log"
# SSL Engine Switch:
# Enable/Disable SSL for this virtual host.
SSLEngine on
# SSL Cipher Suite:
# List the ciphers that the client is permitted to negotiate.
# See the mod_ssl documentation for a complete list.
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
# Server Certificate:
# Point SSLCertificateFile at a PEM encoded certificate. If
# the certificate is encrypted, then you will be prompted for a
# pass phrase. Note that a kill -HUP will prompt again. Keep
# in mind that if you have both an RSA and a DSA certificate you
# can configure both in parallel (to also allow the use of DSA
# ciphers, etc.)
SSLCertificateFile "/etc/cups/ssl/server.crt"
##SSLCertificateFile "/opt/apache2215/conf/server.crt"
#SSLCertificateFile "/opt/apache2215/conf/server-dsa.crt"
# Server Private Key:
# If the key is not combined with the certificate, use this
# directive to point at the key file. Keep in mind that if
# you've both a RSA and a DSA private key you can configure
# both in parallel (to also allow the use of DSA ciphers, etc.)
SSLCertificateKeyFile "/etc/cups/ssl/server.key"
##SSLCertificateKeyFile "/opt/apache2215/conf/server.key"
#SSLCertificateKeyFile "/opt/apache2215/conf/server-dsa.key"
*******************
I also have 'myapp.wsgi' script in my /home/dev/wsgi-scripts directory
def application(environ, start_response):
status = '200 OK'
output = 'Hello World!'
response_headers = [('Content-type', 'text/plain'),
('Content-Length', str(len(output)))]
start_response(status, response_headers)
return [output]
*******************
MAIN Apache httpd.conf
Listen 192.168.1.6:80
ServerAdmin [email protected]
ServerName www.healthcare.com:80
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
# Secure (SSL/TLS) connections
Include conf/extra/httpd-ssl.conf
******************************
This is what I am getting on FF-3.5.9
http://192.168.1.6/
Forbidden
You don't have permission to access / on this server.
***************************
with "vhost" and "ssl" line commneted in MAIN httpd.conf
this is what I see ...
It works!
Therefore apache-2.2.15 is working.
Please guide
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.