I have to get rid of all <VirtualHost *>, <VirtualHost *:80>, and
<VirtualHost *:443> before it starts working properly, otherwise I have to
add <VH *:port> to all my wsgi sites Vhosts declarations then it starts
working as well.
When cPanel generates the httpd.conf, it adds the sites as name-based
vhosts that have an IP in the vhost declaration (IP is assigned in
WHM/cPanel). They add the * vhosts as a catch-all.
This is my vhosts configuration output, it should show generally how my
vhosts are setup, pretty much every site on the server is django so they
all use WSGI except for the server hostname (excalibur.hspike.com).
VirtualHost configuration:
[2604:xxx:x:xxx::xxxx:6]:80 is a NameVirtualHost
default server myprojects.site (/etc/apache2/conf/httpd.conf:568)
port 80 namevhost myprojects.site
(/etc/apache2/conf/httpd.conf:568)
alias www.myprojects.site
port 80 namevhost api-sub.myprojects.site
(/etc/apache2/conf/httpd.conf:1050)
alias api.myprojects.site
alias www.api-sub.myprojects.site
alias www.api.myprojects.site
[2604:xxx:x:xxx::xxxx:6]:443 is a NameVirtualHost
default server myprojects.site (/etc/apache2/conf/httpd.conf:1406)
port 443 namevhost myprojects.site
(/etc/apache2/conf/httpd.conf:1406)
alias www.myprojects.site
port 443 namevhost api-sub.myprojects.site
(/etc/apache2/conf/httpd.conf:1946)
alias api.myprojects.site
alias www.api-sub.myprojects.site
alias www.api.myprojects.site
107.xxx.xx.131:80 is a NameVirtualHost
default server 107.xxx.xx.131 (/etc/apache2/conf/httpd.conf:273)
port 80 namevhost 107.xxx.xx.131 (/etc/apache2/conf/httpd.conf:273)
alias excalibur.hspike.com
port 80 namevhost myprojects.site
(/etc/apache2/conf/httpd.conf:568)
alias www.myprojects.site
port 80 namevhost api-sub.myprojects.site
(/etc/apache2/conf/httpd.conf:1050)
alias api.myprojects.site
alias www.api-sub.myprojects.site
alias www.api.myprojects.site
107.xxx.xx.131:443 is a NameVirtualHost
default server 107.xxx.xx.131 (/etc/apache2/conf/httpd.conf:1133)
port 443 namevhost myprojects.site
(/etc/apache2/conf/httpd.conf:1406)
alias www.myprojects.site
port 443 namevhost api-sub.myprojects.site
(/etc/apache2/conf/httpd.conf:1946)
alias api.myprojects.site
alias www.api-sub.myprojects.site
alias www.api.myprojects.site
port 443 namevhost excalibur.hspike.com
(/etc/apache2/conf/httpd.conf:2072)
*:* excalibur.hspike.com
(/etc/apache2/conf/httpd.conf:299)
*:443 excalibur.hspike.com
(/etc/apache2/conf/httpd.conf:2072)
--
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.