Ticket #896 (new enhancement)

Opened 6 months ago

Last modified 1 month ago

Write different vhost-entries for alias-domains with forward to external url

Reported by: jmeyerdo Assigned to:
Priority: feature Milestone: ispCP ω 1.0.0
Component: Config Files Version: ispCP ω 1.0.0 - RC2
Severity: Hard Keywords:
Cc: ispcp@jensmeyer.de

Description

It is not necessary to create a complete vhost-entry when configuring an external redirect. IMHO at least DocumentRoot? should be disabled or removed. Additional it is not necessary to create the DocumentRoot?-directory on the filesystem, isn't it?

Worked for me (manually) with:

    ServerAdmin     webmaster@testdomain.de

    ServerName      testdomain.de
    ServerAlias     www.testdomain.de testdomain.de *.testdomain.de

    ErrorLog        /var/log/httpd/users/testdomain.de-error.log
    TransferLog     /var/log/httpd/users/testdomain.de-access.log

    CustomLog       /var/log/httpd/maindomain.de-traf.log traff
    CustomLog       /var/log/httpd/maindomain.de-combined.log combined

    # httpd als entry redirect entry BEGIN.
    Redirect / http://www.myexternalurl.de
    # httpd als entry redirect entry END.

Attachments

Change History

11/25/2007 11:51:48 AM changed by joximu

I think this would be really good, but would need to change many things in the engine files... -> nice to have..

11/25/2007 05:52:46 PM changed by raphael

  • priority changed from major to feature.
  • milestone changed from ispCP ω 1.0.0 - RC4 to ispCP ω 1.1.0.

11/25/2007 11:51:53 PM changed by Dexus

i think a mod rewrite will looks nicer, because if you are call www.xyz.de/udata.php or else it will call www.new.de/udata.php

the code in top of the site will only switch if you call www.xyz.de/

or i been stupid?

02/17/2008 02:51:19 PM changed by rats

  • severity set to Hard.
  • milestone changed from ispCP ω 1.1.0 to Working.

03/14/2008 04:34:55 PM changed by rats

  • owner changed.
  • component changed from Backend (Engine) to Config Files.
  • milestone changed from Working to ispCP ω 1.0.0.

03/17/2008 06:19:29 PM changed by rats

  • milestone changed from ispCP ω 1.0.0 to ispCP ω 1.0.0 - RC5.

03/18/2008 09:54:24 PM changed by pitgrap@gmx.net

<VirtualHost xxx.xxx.xxx.xxx:80>
  ServerName example.com
  Redirect / http://www.example.com/
</VirtualHost>

that works perfect for me. and with the "/" at the end of the redirect, redirects like example.com/test.html -> www.example.com/test.html

04/02/2008 01:28:59 AM changed by rats

  • milestone changed from ispCP ω 1.0.0 - RC5 to ispCP ω 1.0.0.

no one made it, so moved!


Add/Change #896 (Write different vhost-entries for alias-domains with forward to external url)