How to redirect a directory to a existing virtual host?

This is a discussion on How to redirect a directory to a existing virtual host? within the Apache Web Server forums, part of the Web Server and Related Forums category; Apache2.0.49 / PHP 4.3.4 / SuSe 9.1 / Plesk 7.5.2 I have configured more domains with ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-10-2005
Roland Johann
 
Posts: n/a
Default How to redirect a directory to a existing virtual host?

Apache2.0.49 / PHP 4.3.4 / SuSe 9.1 / Plesk 7.5.2

I have configured more domains with different sites and virtualHosts on my
dedicated server. So the sites uses 1 IP address together.
I works, but now I need a site preview before a domain goes online and is
registered in the DNS. So I would like to use my own (existing) domain on
myserver.com or the IP address for the access. The server and domain
myserver.com is configured right and works now. The new site is also
configured as virtualHost under mynewsite.com on the same server, but not
reachable yet via internet, because the missing DNS and/or domain
registration. So now I would like to preview all virtual hosts now on my
server also over my domain (or IP address) via a virtual subdirectory or a
subdomain, so that the client can preview the site before going online.

The virtual host domain1.com should be available via
myserver.com/domain1.com ,
the virtual host domain2.net should be available via
myserver.com/domain.net
and so on.
Of cource the existing virtualHost configuration for the new sites should
also be active. If the sites are registered in the DNS, than the sites are
online without changes. For each domain I would like to use a seperate
include file, which inserts the necessary settings in the apache config
files.

* What do I have to insert in the apache configuration (section
myserver.com?) to have access via a virtual subdirectory ( with PHP,
mySQL,...!!)?
Access via IP address (http://xxx.xxx.xxx.xxx/domain1.com ) or via
subdomain (http://domain1.myserver.com ) would also be fine.

I tried some different config changes but without success. Perhaps the
user rights where wrong also, because each domain is installed in a seperate
home directory.

Hope you can help me!

Roland





  #2 (permalink)  
Old 03-12-2005
Roland Johann
 
Posts: n/a
Default Re: How to redirect a directory to a existing virtual host?

"Davide Bianchi" <davideyeahsure@onlyforfun.net> wrote in message
news:slrnd32hmt.14e.davideyeahsure@fogg.onlyforfun .net...
> On 2005-03-10, Roland Johann <rj0401roland@gmx.net> wrote:
> If in domain.net there are absolute path (eg: href='/...') they will
> refer to myserver.com and not the domain.net subdir.


> Alias /domain.net/ /where/is/the/docroot/of/domain.net/
> <Directory "/where/is/the/docroot/of/domain.net">
> ...options as required
> </Directory>



Works fine now. Many thanks for your help!!

Roland



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:05 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0