Hi,
I ran into an issue today where a customer's addon domain was being redirected to the relevant subdomain when performing a missing trailing slash redirection on a directory. For some reason "UseCanonicalName" was set to "On" for this particular vhost, while most on the server are set to "Off" (as I would expect). I created an include to fix this for the vhost in question.
Is there a reason cPanel configures some vhosts with UseCanonicalName set to On?
Thanks
I ran into an issue today where a customer's addon domain was being redirected to the relevant subdomain when performing a missing trailing slash redirection on a directory. For some reason "UseCanonicalName" was set to "On" for this particular vhost, while most on the server are set to "Off" (as I would expect). I created an include to fix this for the vhost in question.
Is there a reason cPanel configures some vhosts with UseCanonicalName set to On?
Code:
[root@server ~]# grep "UseCanonicalName Off" /etc/apache2/conf/httpd.conf | wc -l
774
[root@server ~]# grep "UseCanonicalName On" /etc/apache2/conf/httpd.conf | wc -l
28