Hi!
I have a weird issue trying to configure my domain + subdomain web applications. DNS config: http://pastebin.com/c95tMxzm First virtual host config: http://pastebin.com/fPMhUXkR Second virtual host config: http://pastebin.com/kMED673Q
http://synergy-trans.com/ and http://www.synergy-trans.com/ work as they are intended. However http://manage.synergy-trans.com/ uses the same web application as two above.
Why does http://manage.synergy-trans.com/ is addressed to first virtual host?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
On Ubuntu (not sure how it’s done in CentOS), one would “activate” the subdomain by creating a symbolic link for the subdomain-config file in <code>/etc/nginx/sites-enabled</code>. Did you do the equivalent on your VPS? <br> <br>Otherwise, you may want to check out <a href=“https://www.digitalocean.com/community/articles/how-to-set-up-nginx-virtual-hosts-server-blocks-on-centos-6”>How To Set Up nginx Virtual Hosts (Server Blocks) on CentOS 6</a>.
Yeah, the subsomain site was activated, but it had syntax error in it, that’s why it didn’t started. <br>Thank you for the help.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.