Server block Subdomain w/ www

May 16, 2014 5.6k views
Current dns setup is 3 A records; @ pointing to ip sub1 pointing to ip sub2 pointing to ip Added a cname record of www with a value of @ Its been a couple hours but they www.subdomains arent working. Interestingly enough, the root domain is forwarding to The server blocks conf under sites-available have
And for the root domain same w/out the subdomain. All also have another server_name underneath the above snippet:
# Make site accessible from http://localhost/
Root contains only an index.html, sub1 is magento, and sub2 is wordpress. Sub1 ( magento ), contains some custom configurations recommended by magento. Sidenote: Is there a way to get notified when someone responds to your question or to an article youve participated in?
3 Answers
The A records are all pointing to the same ip?
Yes, they're all pointing to the same ip.
Ah, so i guess you need to setup a cname record for each subdomain you want to redirect from www.

cname: www.subdomain1 point to
Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!