Apache not using www server alias issue
Ok, I have an issue where a serveralias is set for www. That said, it does not work at all. Going to
gives a blank page. I have checked the /var/cpanel/templates/apache2_4/vhost.default & ssl_vhost.default templates and the serveralias gets built properly, or so it seems. I have checked the actual files created at ls /var/cpanel/userdata/example/example.com and example.com_SSL and they contain the serveralias.
but going to
leads to white screen. Without www, it all works perfectly.
http://www.domain.comgives a blank page. I have checked the /var/cpanel/templates/apache2_4/vhost.default & ssl_vhost.default templates and the serveralias gets built properly, or so it seems. I have checked the actual files created at ls /var/cpanel/userdata/example/example.com and example.com_SSL and they contain the serveralias.
serveralias: mail.example.comhttp://www.example.com' webmail.example.com webdisk.example.com cpanel.example.com
servername: example.com
ssl: 1
usecanonicalname: 'Off'
user: example
but going to
http://www.example.com or https://www.example.comleads to white screen. Without www, it all works perfectly.
-
serveralias: mail.example.com www.example.com webmail.example.com webdisk.example.com cpanel.example.com0 -
Hello William, Can you use a remote server or workstation to verify that "www.domain.tld" resolves to the correct IP address? If it does, can you review the .htaccess file in the document root of this domain name to make sure there are no rewrite rules that could affect the use of the "www" prefix? Thank you. 0 -
Hi Michael, The www.domain.tld does point to the tcorrect IP doing an nslookup from another server. No rewrites that affect www are in use. **The problem ended up being an old PHP version not having the function hash_equals() :( ** 0 -
Hi William, I'm glad to see you were able to solve the issue. Thank you for sharing the outcome. 0
Please sign in to leave a comment.
Comments
4 comments