|
Adding Alias as Forward - complete VHost-entry necessary?
|
| Author |
Message |
jmeyerdo
Junior Member

Posts: 157
Joined: Oct 2007
Reputation: 2
|
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 |
|
jmeyerdo
Junior Member

Posts: 157
Joined: Oct 2007
Reputation: 2
|
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 |
|
jmeyerdo
Junior Member

Posts: 157
Joined: Oct 2007
Reputation: 2
|
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 |
|