I have found some thing which may help
apache2 when has 2 vhosts on same IP serves them in alphabetical order
that is why installation of apache2 has 000-default as a vhost
[url]http://articles.slicehost.com/2009/5/27/debian-lenny-apache-
virtual-hosts-1[/url]


On apache2 documentation last example Using the ServerPath  directive
on following link
[url]http://httpd.apache.org/docs/2.0/vhosts/examples.html#page-
header[/url]

says [code]"To provide as much backward compatibility as possible we
create
a primary vhost which returns a single page containing links with an
URL prefix to the name-based virtual hosts."
[/code]

so I infer we should have one more file on DomU site1 which
separates myserver.com and site1.myserver.com vhosts although right
now there are 2 files but I think there should be one more file
since in url myserver.com and site1.myserver.com
alphabetically myserver.com is coming first and so it is being served
always.
Since the gatway is forwarding both the requests to internal machine
whose IP is 192.168.1.13
and when it is giving response it is by default serving the page which
alphabetically is coming first so I am seeing both the websites as
same pages.

Since to the gateway is forwarding both  request
(site1.myserver.com and myserver.com )
to IP 192.168.1.13
and apache2 on 192.168.1.13 is serving vhost requests in alphabetical
order.

As an idea if I configure on internal domu1 myserver.com on a
different port then it may work but I do not want to do that.

Some one who is reading this thread an understood my problem
if feels my observation is right let me know.

-- 
You received this message because you are subscribed to the Linux Users Group.
To post a message, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit our group at 
http://groups.google.com/group/linuxusersgroup

Reply via email to