• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

domain alias not working

W

wardjame

Guest
I've added a .org domain alias to a .com on my server but for some reason the plesk welcome page is coming up instead of my .com content when I type in the .org. The httpd.conf file looks fine:

<VirtualHost 69.55.###.###:443>
ServerName example.com:443
ServerAlias www.example.com
UseCanonicalName Off
ServerAlias example.org
ServerAlias www.example.org

Any thoughts on what could be causing this? I'm not really sure how to find more information about what the serve is actually doing when I request this page. It mush be trying to serve the site from somewhere else but I have no idea where.

Any help would be much appreciated.
 
Hello,

To make a domain alias working, following requirements should be followed:

1) 'CNAME' DNS record should be listed in DNS settings for this domain, ad therefore, domain alias.domain.com should resolve correctly to the same IP address like domain.com itself.
# host alias.domain.d


2) Apache config should contain correct infomation:
<VirtualHost 10.55.55.12:80>
ServerName domain.d:80
ServerAlias www.domain.d
UseCanonicalName Off
ServerAlias alias.domain.d
ServerAlias www.alias.domain.d
DocumentRoot /var/www/vhosts/domain.d/httpdocs
CustomLog /var/www/vhosts/domain.d/statistics/logs/access_log plesklog
ErrorLog /var/www/vhosts/domain.d/statistics/logs/error_log

As I can see from part of httpd.conf you have posted, Domain alias is congifured for secure 443 port. Are these setting the same for default apache port 80?

How domain alias was created? Was it done through Plesk?
 
Still no luck

OK. I added this domain and the alias through the plesk interface. I have not manually edited any config files. I had removed the CNAME DNS entries to use A entries instead but I have reverted back to using CNAMEs to try to fix this problem. After adding the CNAMEs I still have the same problem. Here is the port 80 portion of my httpd.conf file for this domain:

<VirtualHost 123.123.123.0:80>
ServerName example.com:80
ServerAlias www.example.com
UseCanonicalName Off
ServerAlias example.org
ServerAlias www.example.org
SuexecUserGroup pandp psacln
ServerAdmin "[email protected]"
DocumentRoot /var/www/vhosts/example.com/httpdocs

Here is how the dns setup looks for the subdomain in plesk:

123.123.123.0 / 24 PTR example.org.
example.org. NS ns1.example.com.
example.org. NS ns2.example.com.
example.org. A 123.123.123.0
example.org. MX (10) mail.wardnet.com.
webmail.exampleorg. A 123.123.123.0
www.example.org. CNAME example.org.

Still getting the default plesk page and ready to pull my hair out. Thanks in advance for any help.
 
Still no luck

OK. I added this domain and the alias through the plesk interface. I have not manually edited any config files. I had removed the CNAME DNS entries to use A entries instead but I have reverted back to using CNAMEs to try to fix this problem. After adding the CNAMEs I still have the same problem. Here is the port 80 portion of my httpd.conf file for this domain:

<VirtualHost 123.123.123.0:80>
ServerName example.com:80
ServerAlias www.example.com
UseCanonicalName Off
ServerAlias example.org
ServerAlias www.example.org
SuexecUserGroup pandp psacln
ServerAdmin "[email protected]"
DocumentRoot /var/www/vhosts/example.com/httpdocs

Here is how the dns setup looks for the subdomain in plesk:

123.123.123.0 / 24 PTR example.org.
example.org. NS ns1.example.com.
example.org. NS ns2.example.com.
example.org. A 123.123.123.0
example.org. MX (10) mail.wardnet.com.
webmail.exampleorg. A 123.123.123.0
www.example.org. CNAME example.org.

Still getting the default plesk page and ready to pull my hair out. Thanks in advance for any help.
 
OK. My problem is not with DNS. It appears that httpd.conf is not pulling the httpd.inlcude files for new domains. Not sure why or how this is happening. Perhaps I should start a new thread for it.
 
Back
Top