All domain and sub domain, same page

Started by StephaneB, May 06, 2016, 07:29:11 AM

Previous topic - Next topic

StephaneB

NS should not have anything to do here, the domain and subdomain are only available with computer host file modified and pinging to the IP so not available trough real domain url or registrar records.

thx

Sandeep

change the ip address of the A record to shared IP that's it (where you host the DNS)

Sandeep

don't forget to add the sub-domain cname records to your current dns records

StephaneB


Sandeep

#19
i recommend you to use cwp free dns service or cloudflare dns service

as i noticed no changes in dns

Jae

Quote from: StephaneB on May 06, 2016, 02:24:27 PM
NS should not have anything to do here, the domain and subdomain are only available with computer host file modified and pinging to the IP so not available trough real domain url or registrar records.
thx

it little confusing what you really like to do..
but try to add "A" record for your sub domain
testsb.esomar.org "A" 134.213.158.183

StephaneB

#21
thank you to everyone for your help.

For those who have similar issue, quick reminder on the behavior faced: primary domain was working fine when subdomains where only redirecting to the main domain whatever the subdomain setup.

The solution was directly linked to the SSL certs:

The problem did not come from my NS I reminds that this is a dev server and not a production server.
It was linked to SSL certificates, the autosigned cert used for dev was not wildcard and so blocking for https access to the subdomaine, I created a certificate (auto signed) for each subdomain, and not just for the primary one, which have solved all issues.

thx & bisou from french guy

Sandeep

you're not clear previously what u said earlier. Hence topic solved

indiemy

sorry old topic but want to share solution to same problem i faced few hours ago.

changing <VirtualHost "public_ip":80>

to

<VirtualHost *:80>

worked for me.

thanks