Missed it.

Don't set:

    --port=443

If you want HTTPS only with redirect from port 80 to 443 use:

    --port 80 --https-port=443 --https-only

Graham

> On 22 Feb 2018, at 2:30 pm, Rafael Karosuo <[email protected]> wrote:
> 
> Ok, the apache instance that where active (for the cpanel/whm I suppose) is 
> already disabled, I used
> WHM >> Home >> Service Configuration >> Service Manager
> Because using:
> /usr/sbin/apachectl stop 
> 
> was temporal, cpanel/whm was looking for that process and if it was stopped, 
> it can be re-started automatically. 
> 
> Anyway, so as far as I know, no other apache instance is running.
> I ran
> lsof -i :443
> nothing comes out.
> Also ran
> sudo netstat -tulpn
> And I can see the :80 port and :8000 port listening and being used by the 
> mod_wsgi that I have as test on those ports, but no 443...
> 
> Actually I ran all the commands I found using netstat and non of them showed 
> the 443 as listening port, could it be that the port is not open and 
> listening? (just wandering)
> 
> Also ran
> traceroute -p 443 mytademex.com
> 
>  And it seems that no difference is detected when mod_wsgi is on or off.
> Always hits
> With mod_wsgi stopped
> traceroute to mytademex.com (127.0.0.1), 30 hops max, 60 byte packets
>  1  localhost (127.0.0.1)  0.078 ms  0.086 ms  0.037 ms
> With mod_wsgi started
> traceroute to mytademex.com (127.0.0.1), 30 hops max, 60 byte packets
>  1  localhost (127.0.0.1)  0.124 ms  0.042 ms  0.052 ms
> 
> I also re-ran 
> telnet mytademex.com 443
>  and it seems that just stop connection, so thinking that no one is listening?
> Trying 127.0.0.1...
> telnet: connect to address 127.0.0.1: Connection refused
> Trying 108.179.223.220...
> telnet: connect to address 108.179.223.220: Connection refused
> 
> Also tested the above telnet command and writing some http request
> Trying 127.0.0.1...
> Connected to mytademex.com.
> Escape character is '^]'.
> GET / HTTP/1.1 ###wrote this request
> Host: mytademex.com ###wrote this request
> HTTP/1.1 302 Found
> Date: Thu, 22 Feb 2018 03:27:46 GMT
> Server: Apache
> Location: https://mytademex.com:None/
> Content-Length: 211
> Connection: close
> Content-Type: text/html; charset=iso-8859-1
> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
> <html><head>
> <title>302 Found</title>
> </head><body>
> <h1>Found</h1>
> <p>The document has moved <a href="https://mytademex.com:None/";>here</a>.</p>
> </body></html>
> Connection closed by foreign host.
>  
> I also tested the above with my mytademex.com:80 HTTPS instance that's 
> running without any visible errors, and I have
> Trying 127.0.0.1...
> Connected to mytademex.com.
> Escape character is '^]'.
> GET / HTTP/1.1 ###My manual request
> Host: mytademex.com ###My manual request
> HTTP/1.1 302 Found
> Date: Thu, 22 Feb 2018 03:27:05 GMT
> Server: Apache
> Content-Length: 0
> Location: /login/
> x-xss-protection: 1; mode=block
> Vary: Cookie
> X-Frame-Options: DENY
> x-content-type-options: nosniff
> Connection: close
> Content-Type: text/html; charset=utf-8
> Connection closed by foreign host.
> 
> In which I can recognize the "location" part as "/login/" one of my urls. 
> 
> -- 
> 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.

Reply via email to