Question
Apache2 Default root directory
I am facing some issues with Apache2. I have installed the full LAMP stack, which is working fine together with virtual hosts/domains.
But when I try to edit the default (“000-default.conf”) document root directory, the Apache2 Ubuntu Default Page is always showing. I have tried to restart the apache2 service, and I even tried to remove index.html page, located at var/www/html/index.html (which seems to contain the default file) but no luck. The Default Apache2 Ubuntu page always shows up, when I enter the IP of the server.
Any ideas why this might happen?
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.
×
Please post your
/etc/apache2/sites-enabled/000-default.conf
file. You can use this tool to paste it directly from your command line: https://syscoding.com/questions/6/how-do-you-use-syspaste-within-command-line-to-create-a-paste/