Hello Anish,

  I am not able to recreate the problem from my end because :

1. I am getting the page for ipsr when accessing http://www.ipsr.org/,
unlike you told that it will show "hello this is virtual host".

2. The second subdomain ns1.ipsr.org is not resolving.

  These are my guess related to this problem.

There is only one VirtualHost entry for the IP address to which the
sub/domains ns1.ipsr.org and www.ipsr.org are pointing. So when you
accessing ns1.ipsr.org and www.ipsr.org you will get the content of
the DocumentRoot in that VirtualHost entry.

Do you have a VirtualHost entry for ns1.ipsr.org ?

Apache will ignore the DocumentRoot outside the VirtualHost entry, if
there is one for that IP address. So create one Vhost entry for
ns1.ipsr.org.

Also Aache will show the content of the Vhost entry just below the
NameVirtualHost for the IP address, if there is no Vhost for the
domain/subdomain. So my best guess is that there is no Vhost for
ns1.ipsr.org.

On Sun, Jun 14, 2009 at 12:18 AM, Anish Shah<anish.shah1...@gmail.com> wrote:
> hello sir
>
> i hope u r fine .
>
> sir i want to ask u one question related  Apache Server.
>
> sir my dns server is   ns1.ipsr.org ,
>
> sir   my apache server is   ns1.ipsr.org and document root is  /var/www/html
> , here i made index.html
> ( that contents Hello This Is Apache Server )
>
> my  Virtual Host is   www.ipsr.org , and document root is
> /var/www/www.ipsr.org and here i made
>
> index.html.( that contents  hello this is virtual host )
>
> when i  open  http://www.ipsr.org  it shows me perfect page it means (
> hello this is virtual host )
>
> But  when i open  http://ns1.ipsr.org  it still shows me   (   hello this is
> virtual host )
>
> instead  of  my original contents ( Hello This Is Apache Server )
>
>
> So please help me how to resolve this problem ?
>
>
> Thanks & Regards
> Anish J Shah
> mob-9979461192
>
> _______________________________________________
> ILUG Cochin Mailing List
> http://ilug-cochin.org/mailman/
> Mailinglist@ilug-cochin.org
> http://ilug-cochin.org/mailman/listinfo/mailinglist_ilug-cochin.org
> #ilugko...@irc.freenode.org
>
>



-- 
---------------------
With regards,
Unni

"A candle loses nothing by lighting another candle"

_______________________________________________
ILUG Cochin Mailing List
http://ilug-cochin.org/mailman/
Mailinglist@ilug-cochin.org
http://ilug-cochin.org/mailman/listinfo/mailinglist_ilug-cochin.org
#ilugko...@irc.freenode.org

Reply via email to