Vargz wrote:
>hi anoop > >like Mr. Balakrishna Pilla said, use the virtual host >directive in apache. not very clear on how exactly. >but if there is anyone who knows please do reply.I >checked with a few sites, tried it out but couldnt get >it to work. I would also add my doubt. > >right now i have configured my web server and it works >correctly. when i type http://localhost i get the >apache test page. I also created an alias to my page >but could only connect it through >http://localhost/mysite/. Is there someway I could get >my page if i type something like http://mysite/ or >http://www.mysite.com . > You need to have seperate DNS entries for every domain name you want to virtual host. suppose you have myhost-1.com and myhost-2.com, you'd have two seperate DNS entries for each domain name pointing to the same IP, since both the domains are hosted on the same machine. So setup dns for www.mysite.com to point to the machine. You can setup the DNS server on the same machine as the webserver. Since you have apache running already please try the following links http://localhost/manual/ http://localhost/manual/mod/core.html#virtualhost FYI: You can also change the hostname statically in '/etc/sysconfig/network', but not helpful in virtual hosting since it's known only to the localhost, not anywhere over the network. > This is only for testing my >site not hosting in on a public domain. > >Thanks in advance >Varghese > >Do not worry about tomorrow, for tomorrow will worry about its own things. >Sufficient for the day is its own trouble. > > > >
