httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard de Vries <>
Subject Re: [users@httpd] Previewing a Virtual Host before server name is available in DNS
Date Wed, 27 Sep 2006 22:53:29 GMT
I know my hosting provider puts the document root for
the virtual host in the document root of the main
host. So I can look at it via<docroot-of-subhost>.

Personally I don't like this at all.

You could also create a /etc/host file entry on the
server running your virtual host, configure an Apache
proxy server on that host (different port) and
configure that proxy to forward all the requests to
your new virtual host, at which time it will utilize
the alias in your /etc/hosts file.

--- "Amador, Orlando M. [OBIPR]"
<> wrote:

> I have configured 2 virtual host in the http.conf
> file.  Both are working
> fine since we have configured the DNS server to
> point to the apache server.
> We need to configure a 3rd virtual host, but can't
> change the DNS to point
> to our apache server until it is approved.
> So the question is how we configure the new virtual
> host so it is visible
> without DNS?
> This is the same to what a web hosting company will
> do.  One can preview the
> website under some URL of the main server.
> For example if the real server is named
> and the new virtual
> host is for, then one could type
> something like
> or similar and view the file
> from the virtual host
> (server2) instead.
> I read the virtual hosting documentation and did not
> find anything in this
> subject.  I though that maybe "ServerPath" could do
> the trick, but id did
> not work.  Tried to set serverpath to "/server2/"
> and the requested
> but it only complains that
> the URL was not found.
> I understand that we can set an entry in the host
> file to map the virtual
> host name to an IP, but this is not practical since
> we need to have several
> people in different workstations looking at this.
> How to the web hosting companies accomplish this? 
> is it just with Apache or
> is it something else?
> Any suggestions?
> This is for Apache 2.0.52 running on Linux.
> Saludos, 
> Orlando 
> Orlando M. Amador 
> Technology Lead 
> Ortho Biologics LLC 
> (787) 854-1800 x2294 
> Confidentiality Notice: This e-mail transmission may
> contain confidential or
> legally privileged information that is intended only
> for the individual or
> entity named in the e-mail address. If you are not
> the intended recipient,
> you are hereby notified that any disclosure,
> copying, distribution, or
> reliance upon the contents of this e-mail is
> strictly prohibited. If you
> have received this e-mail transmission in error,
> please reply to the sender,
> so that Johnson & Johnson can arrange for proper
> delivery, and then please
> delete the message from your inbox. Thank you. 

Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message