|
|
|
|
||||||
| comp.info.servers.unix Web servers for UNIX platforms. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
hi,
can any one give me steps to configure a virtual server on an exisitng webserver running apache . what i have done is : configured the existing network interface allready having an internal address to support another one using ifconfig and it works fine. now when i try to access the virtual site i still get the contents of the existing site :-( any ideas. in my httpd i have put as follows: <VirtualHost xxx.xxx.xxx.xxx> ServerAdmin webmaster@xxxx.net DocumentRoot /home2/foo/baan ServerName xxx.xxx.xxx.xxx ErrorLog logs/xxx-error_log CustomLog logs/xxx-acess_log common </VirtualHost> where xxx is the external ip address of the new domain. Do i need to make anyother change anywhere else so that i can get the virtual domain instead of the original one. pls advice TIA amit amitka@gmail.com |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
On 10 Jun 2005 04:36:44 -0700, amit k <amit@billdesk.com> wrote:
> hi, > > can any one give me steps to configure a virtual server on an exisitng > webserver running apache . > > what i have done is : > > configured the existing network interface allready having an internal > address to support another one using ifconfig and it works fine. > > now when i try to access the virtual site i still get the contents of > the existing site :-( any ideas. > > > in my httpd i have put as follows: > ><VirtualHost xxx.xxx.xxx.xxx> > ServerAdmin webmaster@xxxx.net > DocumentRoot /home2/foo/baan > ServerName xxx.xxx.xxx.xxx > ErrorLog logs/xxx-error_log > CustomLog logs/xxx-acess_log common ></VirtualHost> > > where xxx is the external ip address of the new domain. It is not clear how you have your network and routing configured or what you mean by "external" ip (local LAN or internet). It could even be that one IP answers for either IP, which might confuse other network testing. If that "external" IP is not ON your server (ie, server has private IP), then I do not think it will work as an IP based virtual host from outside your network. But without a hostname associated with the IP, I do not know how you would get NameVirtualHost working either. |
|
![]() |
| Outils de la discussion | |
|
|