Ticket #896 (new enhancement)

Opened 5 years ago

Last modified 4 years ago

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

Reported by: jmeyerdo Owned by:
Priority: feature Milestone: ispCP ω 1.x.0
Component: Config Files Version: ispCP ω 1.0.0 - RC2
Severity: Hard Keywords:
Cc: ispcp@…

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.

Change History

comment:1 Changed 5 years ago by joximu

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

comment:2 Changed 5 years ago by raphael

  • Priority changed from major to feature
  • Milestone changed from ispCP ω 1.0.0 - RC4 to ispCP ω 1.1.0

comment:3 Changed 5 years ago 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?

comment:4 Changed 4 years ago by rats

  • Severity set to Hard
  • Milestone changed from ispCP ω 1.1.0 to Working

comment:5 Changed 4 years ago by rats

  • Component changed from Backend (Engine) to Config Files
  • Milestone changed from Working to ispCP ω 1.0.0

comment:6 Changed 4 years ago by rats

  • Milestone changed from ispCP ω 1.0.0 to ispCP ω 1.0.0 - RC5

comment:7 Changed 4 years ago by pitgrap@…

<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

comment:8 Changed 4 years ago by rats

  • Milestone changed from ispCP ω 1.0.0 - RC5 to ispCP ω 1.0.0

no one made it, so moved!

comment:9 Changed 4 years ago by Kika

I think that the Redirect only is not the best solution. When the user create a new alias for a domain than maybe would be better if he can choose the original domain or subdomain from a select box and choose the method: Redirect, ServerAlias?.

comment:10 Changed 4 years ago by rats

  • Milestone changed from ispCP ω 1.0.0 to ispCP ω 1.1.0
Note: See TracTickets for help on using tickets.