Why subdomains are not working?

Started by erntesky, April 13, 2017, 07:11:43 PM

Previous topic - Next topic

erntesky

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?

botonakis

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.

erntesky

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...

6Sense

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.
6Sense - Web Design, Development & Web Hosting

erntesky

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...

6Sense

6Sense - Web Design, Development & Web Hosting

erntesky

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!