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 http://mainhost.domain.com/<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]" <oamador@xxxxxxxxxxxxx> 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 > www.server1.com and the new virtual > host is for www.server2.com, then one could type > something like > www.server1.com/server2 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 > www.server1.com/server2/ 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 > oamador@xxxxxxxxxxxxx > (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 http://mail.yahoo.com --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx