Re: [users@httpd] Prerequisites for VirtualHost?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Apr 8, 2005 4:22 PM, Bagus Nugroho <bnugroho@xxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux