Keeping Your Apache Server Name The Same

August 18, 2010    apache vhosts htaccess

Just blogging this for future reference:-

Using several aliases on the same domain and keeping the same apache server name for all can be achieved by entering this into the apache config for the vhost.

UseCanonicalName On

If you wish to let Apache select your server name automatically the default in most configurations of apache is set to:-

UseCanonicalName Off

blog comments powered by Disqus