I have setup WordPress for my domain xyz.test.
In my domain configuration I have set the A entry for the www subdomain to the same A entry as for the primary domain (xyz.test).
However, when entering www.xyz.test in the browser, it does not go to my WordPress server, but only returns Apache`s "No content message".
How do I solve this issue?
Apache allows name based virtual hosts. This means you can host multiple FQDNs on the same IP address. You need to add a name based virtual host for www.xyz.test that points to the same directory. Or you could add a server alias in the xyz.test virtualhost configuration:
ServerName xyz.test
ServerAlias www.xyz.test
Related
I have setup a raspberry pi web server. I'm using nginx and google domains. I have a conf file for that domain in sites-available I configured the server_name to my domain name www.domain.com .domain.com;
The problem is that I can only access the website using .domain.com. When I try using www.domain.com I get redirect to ISP page (unable to find..).
Login to your domain provider's dashboard
If you haven't already added an A record to your DNS settings select Manage DNS and add an A record pointing to your IP address of the host.
You'll essentially need to add a CNAME record to your domain's DNS settings. The 'Name' field should be www
Depending on your provider you may have to wait till about 2- 48hrs to allow it to propagate.
So I have a follow up question based on How To Setup Subdomains on iis
I am using IIS 8, and I am looking to point my subdomain to my current default website. Currently we have www.mydomain.com, and I setup a subdomain in our DNS A Record that is account.mydomain.com pointing to the same IP address of mydomain.com.
I figured the way to create the subdomain is now to go to Site Bindings under the Default Website in IIS and add a site binding with the hostname account.mydomain.com but I am getting an error that says the server IP address cannot be found. The reason I didn't want to create a new Site in IIS is because we have certain properties and permissions that are setup.
Eventually we will be changing the IP Address of www.mydomain.com to be pointing to something new, but for the time being we need account.mydomain.com to point to the same location as www.mydomain.com
Images for reference -
The registrar for my domain is godaddy, I go to their DNS records section and I changed the A name to the elastic IP associated with my instance. Now when I type my domain in the browser, my website appears! However, it forwards it to the IP of my server.
Things I've tried (whether logical or not):
I'm using wordpress multsite so I changed the DOMAIN_CURRENT_SITE in wp-config.php to my new domain. No luck. Reverted.
I changed the 'site_url' and 'home' in my database to point to my domain. No luck. Tried one at a time etc. Reverted.
Changed ServerName to my new domain in httpd.conf (apache).
sudo hostname www.... (don't know what that does)
So I'd like to simply have my website open without it showing the IP in the address bar. Can someone help?
Thanks
EDIT:
Here's the DNS page of godaddy, I've blanked out the ip in the A records, but it's just the ip of my server.
First you need to set Custom NS in godaddy with AWS dedicated IPs then set them as DNS. If you are using Linux instance with cPanel then just add the domain in cpanel's addon-domain.
If you are using Windows instance then you should configure IIS.
If I do example.com my site is there, but when adding www. or http://www. I get the error message: server DNS address could not be found.
I'm pointing my domain to EC2 on Amazon Web Services.
What am I missing?
You have to add a CNAME record for the www subdomain pointing at your EC2 Ip and also I recommend you to make a permanent redirect on your virtual host config file of your web server (apache for example) to redirect http://myexample.com to http://www.myexample.com. If you do not prefer making a permanent redirect you need to include www.myexample.com in your virtual host file as an alias.
Do you have CNAME DNS records set for www on GoDaddy? Try set www to # under DNS Settings CNAME. Read support article here
I have installed and configured two WordPress on my Ubuntu EC2 Instance.
I want to reach them using different domains. So far, I have been able to put an A Record on the domain which shows the page at 52.38.19.133.
The blogs are at 52.38.19.133/Arvind & 52.38.19.133/Shashank. I want to use two different domains to reach them respctively but I am unable to do that either from Domain Registrar's(GoDaddy, in my case) side or from Amazon Route 53 settings.
I don't know if it is understandable what I mentioned up here so I am giving the below example:
When a person visits iamarvindlakhani.com, they should see the page at 52.38.19.133/Arvind .
And a diferent domain, e.g. xyz.com, they should see 52.38.19.133/Shashank .
Thank you.
You can create two virtual hosts for domains on your apache/Nginx config.
Then point your domains to the IP of your EC2 by A record on DNS domain setting.
Example Virtual Host apache
<VirtualHost *:80>
DocumentRoot "/www/example2"
ServerName www.example.org
# Other directives here
</VirtualHost>
Anyway, if you finding a page builder for content, you can use the KingComposer https://wordpress.org/plugins/kingcomposer/
Best regards.