Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Virtual host not working for root domain
I have created a droplet using the Ubuntu dist with LAMP installed, I also installed webmin to manage my virtual hosts.
The virtual host looks like so
allow from all
I have also tried creating a vhost as ServerName www.mysite.com and an alias of mysite.com
I restart Apache after every change.
The DNS settings are correct but no matter which version of the vhost I use the website will not resolve the mysite.com url and it just hits the default Apache (Ubuntu) page.
My knowledge of Apache is limited, can anyone advise of any config changes / issues that may cause or resolve this?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×