Are your redirect rules for the hostname inside of a VirtualHost or outside.

Only thing can guess is that you have it outside and when you request 
127.0.0.1, it is redirected to the hostname, but for that hostname it is not 
matching a VirtualHost which listens on port 8000 since no ServerName in that 
VirtualHost.

What are all the headers for request/response when use -v with curl. Does it 
show that it is following a redirect and the connection failure is for the 
redirected request?

> On 8 Nov 2019, at 2:29 am, Robert Kudyba <[email protected]> wrote:
> 
> Hello Graham,
> 
> I managed to get this working outside of an entry in httpd.conf but I'd like 
> to figure out what is stopping me from using it. We do redirect all http to 
> https.
> 
> 1) What I did to make it work was create a file  
> /var/www/flask/upload_pictures.wsgi containing:
> sys.path.insert(0, '/home/students/student-a/public_html')
> from upload_pictures import app as application
> application.root_path = '/home/students/student-a/public_html'
> 
> 2) I run this command:
> mod_wsgi-express-3 setup-server upload_pictures.wsgi --port=8987 --user 
> student-a --group students
> 
> 3) this outputs:
> Control Script     : /tmp/mod_wsgi-localhost:8987:0/apachectl
> 
> 4) Then I run: 
>   /tmp/mod_wsgi-localhost:8987:0/apachectl  start 
> 
> But this won't start up automatically if/when the server reboots. Any other 
> debugging tips? Thanks for your replies.
> 
> -- 
> 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] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/modwsgi/04d68b95-de14-41d3-9f20-3434423ae429%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/modwsgi/04d68b95-de14-41d3-9f20-3434423ae429%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/modwsgi/B3817398-9DAA-4ED0-AB4A-C84D5829861E%40gmail.com.

Reply via email to