ServerAlias does not work for certain domain

Hi Joe
When i set a server Alias for a certain Domain on my server i get Internal Server Error when testing it in the Browser. When i Click on Disable Website for the created alias, it shows the Website Disabled message corectly.
Its only on one Domain on my server and i have to use redirects for that domain instead. The other Domains accept aliases.

This Domain Does not accept aliases (only redirects work):
SuexecUserGroup "#1005" "#1003"
ServerName domain1.com
ServerAlias www.domain1.com
DocumentRoot /home/domain1/public_html
ErrorLog /home/domain1/logs/error_log
CustomLog /home/domain1/logs/access_log combined
ScriptAlias /cgi-bin/ /home/domain1/cgi-bin/
DirectoryIndex index.html index.htm index.php index.php4 index.php5
<Directory /home/domain1/public_html>
Options Indexes IncludesNOEXEC FollowSymLinks ExecCGI
allow from all
AllowOverride All
AddHandler fcgid-script .php
AddHandler fcgid-script .php4
AddHandler fcgid-script .php5
FCGIWrapper /home/domain1/fcgi-bin/php4.fcgi .php4
FCGIWrapper /home/domain1/fcgi-bin/php5.fcgi .php5
FCGIWrapper /home/domain1/fcgi-bin/php5.fcgi .php
</Directory>
<Directory /home/domain1/cgi-bin>
allow from all
</Directory>
RemoveHandler .php
RemoveHandler .php4
RemoveHandler .php5

This Domain accepts:
SuexecUserGroup "#1003" "#1005"
ServerName domain2.de
ServerAlias www.domain2.de
DocumentRoot /home/domain2/public_html
ErrorLog /home/domain2/logs/error_log
#CustomLog /home/domain2/logs/access_log combined
ScriptAlias /cgi-bin/ /home/domain2/cgi-bin/
DirectoryIndex index.html index.htm index.php index.php4 index.php5
<Directory /home/domain2/public_html>
Options Indexes IncludesNOEXEC FollowSymLinks ExecCGI
allow from all
AllowOverride All
AddHandler fcgid-script .php
AddHandler fcgid-script .php4
AddHandler fcgid-script .php5
FCGIWrapper /home/domain2/fcgi-bin/php4.fcgi .php4
FCGIWrapper /home/domain2/fcgi-bin/php5.fcgi .php5
FCGIWrapper /home/domain2/fcgi-bin/php5.fcgi .php
</Directory>
<Directory /home/domain2/cgi-bin>
allow from all
</Directory>
RemoveHandler .php
RemoveHandler .php4
RemoveHandler .php5

Any suggestions? I Just want to add an ServerAlias for domain1.de to domain1.com :wink:

regards Martin

by the way what is the main difference between Sub-server | Sub-domain? And when do i lose one Domain in my Pro license?

it would be also nice if i could set wildcards *.domain.com this does only work manually

Post edited by: Martin, at: 2007/09/27 00:35<br><br>Post edited by: Martin, at: 2007/10/01 04:14

I Think the Problem is the Joomla installation of that server. The Aliases Work but they lead to that Internal Server Error. I have mod_rewrite in use for that. Could that be a Problem?
I got these error logs

[Tue Oct 02 11:30:09 2007] [error] [client 217.243.204.xxx] malformed header from script. Bad header=HTTP 1.0 301 Moved Permanently: index.php

[Tue Oct 02 11:30:21 2007] [error] [client 217.243.204.xxx] malformed header from script. Bad header=HTTP 1.0 301 Moved Permanently: index.php

but i don’t know which script this causes ;)<br><br>Post edited by: Martin, at: 2007/10/02 00:32

No idea here. We’re using Joomla, as installed by Virtualmin’s Install Scripts, and it works fine (that’s what runs Virtualmin.com). But there are quite a few optional components for Joomla that effect redirects and URLs. All of the SEO components do nasty things with the URLs…We’re using OpenSEF (now defunct, so we’ll be switching to one of the others in the next website update), which I had some problems with, but none that match the symptoms you’re having.

When Virtualmin creates an Alias website, it uses a redirect, but not this kind, in any version currently released, so I doubt it’s Virtualmin related (but maybe I’m wrong about whether the current Virtualmin actually has this kind of redirect available).