> On 22 Feb 2018, at 1:37 pm, Rafael Karosuo <[email protected]> wrote:
>
> Stop mod_wsgi-express and do the same thing.
> curl -v https://mytademex.com
> * About to connect() to mytademex.com port 443 (#0)
> * Trying 127.0.0.1... Connection refused
> * Trying 108.179.223.220... Connection refused
> * couldn't connect to host
> * Closing connection #0
> curl: (7) couldn't connect to host
>
> Does it say can't even connect, or does it still connect?
> Does not connect.
> Do you have any environment variables that may be set which is causing a
> proxy to be used?
> I don't know, only env vars that I set are PYTHONPATH, and
> DJANGO_SETTINGS_MODULE
> But the VPS has WHM and CPanel, I don't know if they have something set.
> If you have 'telnet' on the host, what happens if you type 'telnet
> mytademex.com <http://mytademex.com/> 443' and press return
> Before I stoped mod_wsgi
> Trying 127.0.0.1...
> Connected to mytademex.com.
> Escape character is '^]'. ### From top 127... to here is what appeared when I
> ran command
> hola ### I typed this and hit enter again
> HTTP/1.1 400 Bad Request
> Date: Thu, 22 Feb 2018 02:31:02 GMT
> Server: Apache
> Content-Length: 226
> Connection: close
> Content-Type: text/html; charset=iso-8859-1
>
> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
> <html><head>
> <title>400 Bad Request</title>
> </head><body>
> <h1>Bad Request</h1>
> <p>Your browser sent a request that this server could not understand.<br />
> </p>
> </body></html>
> Connection closed by foreign host.
> After I stoped mod_wsgi
> Trying 127.0.0.1...
> Connected to mytademex.com.
> Escape character is '^]'.
> hola
> HTTP/1.1 400 Bad Request
> Date: Thu, 22 Feb 2018 02:31:02 GMT
> Server: Apache
> Content-Length: 226
> Connection: close
> Content-Type: text/html; charset=iso-8859-1
If you are still connecting to something at this point when running:
'telnet mytademex.com <http://mytademex.com/> 443'
then something else is listening on port 443.
Usually if you are using CPanel it would have its own Apache instance.
But then you said curl failed when mod_wsgi-express wasn't running.
Another command you can use to test if something listening on a port and where
traffic is going is:
traceroute -p 443 mytademex.com <http://mytademex.com/>
and you can use lsof and netstat to check what is listening on ports.
Right now it isn't clear whether something else isn't using that port that you
are connecting to.
Graham
>
> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
> <html><head>
> <title>400 Bad Request</title>
> </head><body>
> <h1>Bad Request</h1>
> <p>Your browser sent a request that this server could not understand.<br />
> </p>
> </body></html>
> Connection closed by foreign host.
>
>
> --
> 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 post to this group, send email to [email protected]
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/modwsgi
> <https://groups.google.com/group/modwsgi>.
> For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
--
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.