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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
"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 |