If you are hosting websites on an intranet or internal network, users will likely use the shortened name of the machine rather than the FQDN. For example, users might type http://bugserver/index.html in their browser location field rather than http://bugserver.gnulix.org/index.html. In that case, Apache would not recognize that those two addresses should go to the same virtual host. You could get around this by setting up VirtualHost directives for both bugserver and bugserver.gnulix.org, but the easy way around it is to use the serverAiias directive, which lists all valid aliases for the machine:

ServerAiias bugserver

For more information about virtualHost, refer to the help system on http://localhost/_manual.



Was this article helpful?

0 0

Post a comment