httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jsl...@gmail.com>
Subject Re: [users@httpd] Prerequisites for VirtualHost?
Date Sat, 09 Apr 2005 02:05:30 GMT
On Apr 8, 2005 4:22 PM, Bagus Nugroho <bnugroho@aitemail.com> wrote:
> it's look like this :
> 
> #httpd.cond
> #====================================
> # Use name-based virtual hosting.
> #
> NameVirtualHost *:80
> 
> #
> # VirtualHost example:
> # Almost any Apache directive may go into a VirtualHost container.
> # The first VirtualHost section is used for requests without a known
> # server name.
> #
> <VirtualHost *.80>
>    DocumentRoot /www/docs/host2
>    ServerName testVhost
> </VirtualHost>
> 
> ;host
> ;======================
> 127.0.0.1 localhost     testvhost
> 
> then when ii try http://testvhost, it was same as http://localhost
> 
> after follow recomandation, and all is fail, the i'm gues, it was required additional
setting before we can set virtualhost.

Your config doesn't make sense.  You can't have only one <VirtualHost>
section.  You need to have at least two.  The "main server" doesn't
serve anything once you have a NameVirtualHost *:80 directive.

Other than that, you need to make sure that you are editting the right
config file, that you are restarting the server after making changes,
and that you don't have any kind of proxy in front of apache.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message