mod_wsgi -apache configuration file
Posted
by
Kevin
on Server Fault
See other posts from Server Fault
or by Kevin
Published on 2012-11-23T03:56:42Z
Indexed on
2012/11/23
5:00 UTC
Read the original article
Hit count: 185
guys sorry I'm a newbie to this but I've been following the mod_wsgi configuration tutorial and it's very spotty. In my httpd.conf file I add the virtual host like so:
'Main' server configuration
#
The directives in this section set up the values used by the 'main'
server, which responds to any requests that aren't handled by a
definition. These values also provide defaults for
any containers you may define later in the file.
#
All of these directives may appear inside containers,
in which case these default settings will be overridden for the
virtual host being defined.
# ServerName wsgihost DocumentRoot "/Library/WebServer/Documents"
<Directory "/Library/WebServer/Documents">
Order allow,deny
Allow from all
</Directory>
WSGIScriptAlias /myapp /Users/KL/modwsgi/env/myapp.wsgi
<Directory "/Users/KL/modwsgi/env">
<Files myapp.wsgi>
Order allow,deny
Allow from all
</Files>
</Directory>
Now, when I also added in my local host the following:
127.0.1.1 wsgihost
but I can't seem to connect. Am I doing something terribly wrong?
© Server Fault or respective owner