ispCP - Board - Support
Adding Alias as Forward - complete VHost-entry necessary? - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Development Area (/forum-1.html)
+--- Forum: General discussion (/forum-11.html)
+--- Thread: Adding Alias as Forward - complete VHost-entry necessary? (/thread-1851.html)



Adding Alias as Forward - complete VHost-entry necessary? - jmeyerdo - 11-24-2007 07:30 PM

Hi!

I tried the configuration of a DomainAlias as Forwarder now.

As I can see a complete VHost-entry is added to the configuration. But "DocumentRoot" and other configuration-directives (i.e. php) are not necessary if there is an entry like this:
Code:
Redirect / http://www.myforwarddomain.de

Is there any reason to create the VHost-entry with all this (overheaded?) information?

Kind regards, Jens


RE: Adding Alias as Forward - complete VHost-entry necessary? - joximu - 11-24-2007 07:52 PM

Hi Jens

no, there's no *technical* reason. The project is based on vhcs and it was like this in vhcs.

Maybe one reason is: if you change/switch from forward to normal domain: the dmn-manager can just remove/add the redirect line without doing more...

/J


RE: Adding Alias as Forward - complete VHost-entry necessary? - jmeyerdo - 11-25-2007 08:42 PM

Hi!

Thank you for your answer.
joximu Wrote:no, there's no *technical* reason. The project is based on vhcs and it was like this in vhcs.

Maybe one reason is: if you change/switch from forward to normal domain: the dmn-manager can just remove/add the redirect line without doing more...

Hmm, is the complete entry not written when there are changes with the alias?

IMHO you only need:
Code:
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.

Especially DocumentRoot should be disabled? It should be not necessary to create any directories in this case also.
I will open an "beautifying-ticket", ok?

Kind regards, Jens


RE: Adding Alias as Forward - complete VHost-entry necessary? - joximu - 11-25-2007 08:50 PM

I think this will be some more work to beautify this - because of the structure of the tpl files.

If you create an Domain-Alias (or domain oder Subdomain) the whole block is inserted - not caring about redirect or not. To change this behaviour, some deeper changes would be needed.
So this might be a task after 1.0 - there are also plans to clean up and improve many things like this...

/J


RE: Adding Alias as Forward - complete VHost-entry necessary? - jmeyerdo - 11-25-2007 09:10 PM

joximu Wrote:I think this will be some more work to beautify this - because of the structure of the tpl files.
Hi!

Thank you for your prompt reply and the comment with ticket http://www.isp-control.net/ispcp/ticket/896.

You are (of course) right: I checked the code and this are major changes really. "Nice to have" is correct so keep up the good work with actual RC!

Kind regards,
Jens