Current time: 11-26-2024, 10:14 AM Hello There, Guest! (LoginRegister)


Post Reply 
Adding Alias as Forward - complete VHost-entry necessary?
Author Message
jmeyerdo Offline
Junior Member
*

Posts: 173
Joined: Oct 2007
Reputation: 2
Post: #1
Adding Alias as Forward - complete VHost-entry necessary?
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
11-24-2007 07:30 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #2
RE: Adding Alias as Forward - complete VHost-entry necessary?
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
11-24-2007 07:52 PM
Visit this user's website Find all posts by this user Quote this message in a reply
jmeyerdo Offline
Junior Member
*

Posts: 173
Joined: Oct 2007
Reputation: 2
Post: #3
RE: Adding Alias as Forward - complete VHost-entry necessary?
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
(This post was last modified: 11-25-2007 08:46 PM by jmeyerdo.)
11-25-2007 08:42 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #4
RE: Adding Alias as Forward - complete VHost-entry necessary?
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
(This post was last modified: 11-25-2007 08:50 PM by joximu.)
11-25-2007 08:50 PM
Visit this user's website Find all posts by this user Quote this message in a reply
jmeyerdo Offline
Junior Member
*

Posts: 173
Joined: Oct 2007
Reputation: 2
Post: #5
RE: Adding Alias as Forward - complete VHost-entry necessary?
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
11-25-2007 09:10 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)