The site isn't functioning properly on your Ubuntu system.
The site isn't functioning properly on your Ubuntu system.
I attempted to run my site locally on Ubuntu 18.04 LTS, but faced issues setting up the domain in Apache. After following online guides, I changed the ServerName to mydomain.com in the configuration file and tried to enable the site with a2dissite. However, whenever I accessed the site from this machine, it displayed the default Apache Ubuntu page instead of my website. I need advice on how to fix this setup.
I realize I was attempting to configure Apache with the domain I purchased earlier that day. I wasn’t sure what I was doing—I didn’t understand virtual hosts or anything similar—but now I can reach that domain from any device, except the one I tried to set up.
I recently tried it and now accessing the domain results in a site that can't be reached.
A2dissite activates the site again using a2ensite. It essentially copies or links your configuration files from /etc/apache2/sites-available to /etc/apache2/sites-enabled. You can also handle it manually if needed.
I removed the .conf file earlier, which caused the error when trying to run a2ensite on the same domain.
You're experiencing confusion about where your files are stored. It seems there might be a mix-up between your local setup and the server environment. The Ubuntu 18 machine you mentioned is likely separate from the files hosted on the server. Consider verifying your file locations and checking if the server hosting service supports remote access.