> On 24 Sep 2016, at 9:31 AM, Roger Wayne <[email protected]> wrote:
> 
> Thanks for the advice, Graham! But I am still a little bit confused though. 
> If you set your application to run on port 8080, shouldn't there be something 
> there when you try to connect to http:localhost:8080? Well at least able to 
> connect to the application running there? I am able to print "Hello World" 
> out jut fine in my main directory but when I try go to port 8080, I can not 
> connect.

The section in the __main__ is not run under mod_wsgi because your script is 
not being run like a main program on the command line. The code is loaded like 
a module. It is then Apache that is accepting requests, on port 80, processes 
the request and then hands it off to a WSGI application by calling the WSGI 
application entrypoint (function or other callable object) called ‘application’ 
in the WSGI script file.

So port 8080 never comes into the picture as it isn’t using the wsgiref web 
server to do anything.

Graham

-- 
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 https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to