Author Topic: Why subdomains are not working?  (Read 20247 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Why subdomains are not working?
« on: April 13, 2017, 07:11:43 PM »
Subdomains not working and when visited is redirect to exactly different domain. One of subdomain not redirect anywhere, just show error in browser like "The server
not found" and the url in the address bar like "www.serverip". Another subdomain shown "forbidden" error message...

Settings correct in: /usr/local/apache/conf.d/vhosts.conf
Settings correct in: /etc/named.conf & /etc/named/...

Tryed by cwp panel, godaddy and private nameservers as well and nothing changed...

Can be do any problems Varnish and memcached together? I don't think so...

Have any more options, files, locations where can be find the mistake?

Offline
*
Re: Why subdomains are not working?
« Reply #1 on: April 19, 2017, 01:27:07 PM »
Try switching with Apache & NginX, after rebuild if everything works, then your varnish conf is wrong.
It's funny that: centos-webpanel.com has cPanel and not CWP installed.

Offline
*
Re: Why subdomains are not working?
« Reply #2 on: April 28, 2017, 11:38:56 AM »
I tried but is not worked for me... I reinstalled the cwp panel and is looks now everything working fine with the subdomans as well.

Anyway, I found few bugs:

Varnish configuration is still not visible in the main menu.

Any subdomains not working with https:// and getting "Forbidden - You don't have permission to access / on this server." error messages...

Offline
*
Re: Why subdomains are not working?
« Reply #3 on: April 28, 2017, 01:58:28 PM »
How have you set up your DNS?

I create a CNAME entry in CloudFlare for every sub-domain that is set up. I use a redirect rule (HTTP to HTTPS) thus have to install a SSL on the sub-domain in CWP before traffic flows. Sometimes it also takes 30 mins or so for the DNS settings to propagate too.

The 'Fix Permissions' under User Accounts can also solve some 'server not found' issues.
Web Design, Development & Web Hosting
https://6sense.com.au

Offline
*
Re: Why subdomains are not working?
« Reply #4 on: April 29, 2017, 11:48:58 AM »
Yes, I also created cname entry in my domain registrar. Yes, also used as well the "Fix Permission" under User Accounts but still shown 403 Forbidden message. If use any subdomain without https protocol then the subdomain can work well without any problem. Very weird...

Offline
*
Re: Why subdomains are not working?
« Reply #5 on: April 29, 2017, 02:41:02 PM »
What results do you get with your sub-domain here https://www.ssllabs.com/ssltest/index.html
Web Design, Development & Web Hosting
https://6sense.com.au

Offline
*
Re: Why subdomains are not working?
« Reply #6 on: April 29, 2017, 04:21:12 PM »
Thanks for that url where I has tested an subdomain with https protocol. There show me an error like "Certificate name mismatch" and gave the idea: Need generate and install SSL on all subdomains! I've only installed SSL on domains, without subdomains. Problem solved and thanks for help!