Dear Wiki user, You have subscribed to a wiki page or wiki category on "Httpd Wiki" for change notification.
The following page has been changed by pctony: http://wiki.apache.org/httpd/VirtualHostsMixingPorts The comment on the change is: fixed obvious issues ------------------------------------------------------------------------------ }}} 1. You have no {{{VirtualHosts}}} that match the {{{NameVirtualHost}}} directive. - 2. You are mixing the use of *:80 with ones that do not use *. For example : + 2. You are mixing the use of *:80 with ones that do not use a port number. For example : {{{ NameVirtualHost *:80 @@ -18, +18 @@ ... </VirtualHost> - <VirtualHost 192.168.1.1:80> + <VirtualHost *> DocumentRoot /var/www ServerName www.example.org ... </VirtualHost> }}} - ''You will see in the config snippet above that the second {{{VirtualHost}}} has an IP address, not a *'' + ''You will see in the config snippet above that the second {{{VirtualHost}}} has a * but no port number defined'' You really have two choices here: - 1. If you used the IP address as a means to only allow the site to be served from that IP Address, then you now need an additional {{{NameVirtualHost}}} directive that matches your {{{VirtualHost}}} block. (In this case that would be {{{NameVirtualHost 192.168.1.1:80}}}) + 1. Add an additional {{{NameVirtualHost}}} directive that matches your {{{VirtualHost}}} block. 2. Change the {{{VirtualHost}}} block to match your {{{NameVirtualHost}}} directive
