Apache configuration problem
ignored_mailbox at yahoo.com.au
Tue May 20 02:31:13 UTC 2008
On Mon, 2008-05-19 at 12:55 +0100, Paul wrote:
> If I try in Firefox http://127.0.0.1 - it will come up with the first
> of the VirtualHosts. However, if I have 127.0.0.1/test123, Apache
> complains that the URL test123 is not on this.
That request's not making use of virtual hosts, you're asking for a
test123 sub-directory off the default site. Virtual hosts are when you
have different hostnamed websites on the same IP address. As far as
browsing them's concerned, they're completely independent websites.
example /etc/hosts file:
127.0.0.1 localhost.localdomain localhost example.com example.net
example browsing requests:
example Apache configuration sections:
# This alias makes this section respond to both hostnames
NB: I don't make virtual hosts as sub-directories inside the
default /var/www/html directory, I give them a completely separate path
(as above). That way you cannot access a different website through one
of the others. Doing so can allow some devious sidestepping of any
access limitations that you'd applied to a virtual host.
[tim at bigblack ~]$ uname -ipr
188.8.131.52-80.fc7 i686 i386
Don't send private replies to my address, the mailbox is ignored.
I read messages from the public lists.
More information about the users