httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Salisbury" <>
Subject Re: [users@httpd] Virtual Hosts help needed?
Date Fri, 06 Jan 2006 00:54:55 GMT
I'm going to guess that you're just making up the name localhost1.

You will actually need a dns entry to your computer.  You might want to
talk to your system's administrator.

If you can't "ping" the name, apache wont be able to do anything with it.

----- Original Message ----- 
From: "Mehmet Fatih AKBULUT" <>
To: <>
Sent: Thursday, January 05, 2006 5:34 PM
Subject: [users@httpd] Virtual Hosts help needed?

hi all,
i am a newbie on such subjects :)
but i want to ask something to you:

NameVirtualHost *:80

<VirtualHost *:80>
ServerName debian
ServerAlias localhost
DocumentRoot /var/www/

<VirtualHost *:80>
ServerName debian1
ServerAlias localhost1
DocumentRoot /var/wwwwww/

these are my virtual host definitions and all i want to do is this :

i have two folders under /var/ which are /www and /wwwwww
and i want apache to show files under /www when 'http://localhost' is typed
on browser.
and to show files under /wwwwww when 'http://localhost1' is typed on

for 'http://localhost' everything is ok. but when i type 'http://localhost1'
get the error below :

An error occurred while loading http://localhost1/
Unknown host localhost1 ...

how i can achieve ?

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message