Custom httpd for single domain under a user with several domains

kristian

Verified User
Joined
Nov 4, 2005
Messages
490
Location
Norway
Hi,

A customer asked me to insert a custom line into the virtualhost-definition of one of his domains, more specific a "ServerAlias *.hisdomain".

This user is a reseller, and has alot of domains directly under his user. When I go into the Custom HTTPD Configurations, and select his domain, the preview-window that shows the complete config, shows *all* of his domains, not just the one I selected. I must admit I didn't try, but inserting a ServerAlias at this point would cause them all to get it, which is not what I want.

It seems a bit odd that by selecting a specific domain in the list, I actually get all domains under the user that owns the selected domain.

How would I go about doing such change? Is the easiest (only?) way to ask my reseller to put this particular domain under a separate username?

Thanks for any help.
 
If all he wants is an alias, why can't you set that up from the control panel?

See Domain Pointers under Advanced Features.

Jeff
 
That's a good point, I had forgotten about that one.

However, it doesn't seem like it supports anything else than the domain-name, as 'www' is hardcoded in front of the input-field. Putting *.domain in there, gives me error about it not being valid.
 
I didn't realize you meant a literal *.

DirectAdmin won't allow the asterisk to be input. I'm not sure if httpd allows it, but if it does, then you can put it in by hand. If you do, then you should use chattr to mark the file immutable, in which case you can no longer change it from the command line at all.

Jeff
 
We ended up separating the domain onto its own user, and using the regular Custom httpd config to add the ServerAlias-line. Seems to be working fine. :)

Thanks for the input!
 
Back
Top