Domain pointer alias

cwfie

Verified User
Joined
Aug 3, 2005
Messages
91
Hi All,

I'm looking for a safe solution to use Domain Pointers (Alias) with SSL.

For example:

https://domain1.com -> https://domain.com
https://domain2.com -> https://domain.com

I can probably establish this using a custom httpd.conf (for example changing the path of the SSL certificate for any pointer manually). But these workarounds will cause problems with updates/rewriting apache rules (or do I need to use chattr)?

Anyway, if there's anyone with a workable solution I would be happy to hear.

For your info: it concerns a small SaaS application (every domain uses the same code base), SEO (duplicate content) is not an issue here.

Thanks :)!
 
Hi Alex,

Thanks for your help.

Could you please provide any guidance?

Should I create the domains as separate domains (not aliases) so I can setup SSL?
How would the virtualhost from the "alias domains" look like?

Thanks.
 
Hi Alex,

Thanks.

I did the following:

1. Created a new (secondary) domain under the same user
2. Removed the private_html for the new (secondary) domain
3. Created a symlink:

ln -s /home/user1/domains/primairy.nl/private_html /home/user1/domains/secondairy.nl/private_html

The symlinks works perfectly, unfortunately Apache returns a 403 (You don't have permission to access / on this server.) on the secondary domain.
Any suggestions?

Thanks.
 
Were you logged in as a root superuser when created a symlink? Owner of a symlink and a target file should be the same.
 
Thanks for all your help Alex!, I forgot to use -h while using chown.

Works perfectly now! :)
 
Back
Top