I had two working websites until I realized over the weekend that my server was running Ubuntu 23.04 which had no apparent easy upgrade to 24.04. So I backed up my web files and site config files and did a clean install of Ubuntu. I have been trying to get my sites back up since (Sunday 8th of December).I am currently working on getting one of them up, once it is up I’ll work on the other one.<\/p>\n
I am able to load my site locally via local IP address or remotely via public IP. However, I am unable to load the site via URL, locally or remotely<\/p>\n
My config file is as follows – the name of which is deletedforsec.us.conf<\/p>\n
ServerName www.deletedforsec.us<\/a><\/p>\n <VirtualHost *:80> I have disabled the default site (sudo a2dissite 000-default) Can somebody please tell me where I have errored or what I need to do to resolve this issue?<\/p>\n Thank You<\/p>","upvoteCount":0,"answerCount":1,"datePublished":"2024-12-11T00:35:45.967Z","author":{"@type":"Person","name":"amd.64","url":"https://community.spiceworks.com/u/amd.64"},"suggestedAnswer":[{"@type":"Answer","text":" I had two working websites until I realized over the weekend that my server was running Ubuntu 23.04 which had no apparent easy upgrade to 24.04. So I backed up my web files and site config files and did a clean install of Ubuntu. I have been trying to get my sites back up since (Sunday 8th of December).I am currently working on getting one of them up, once it is up I’ll work on the other one.<\/p>\n I am able to load my site locally via local IP address or remotely via public IP. However, I am unable to load the site via URL, locally or remotely<\/p>\n My config file is as follows – the name of which is deletedforsec.us.conf<\/p>\n ServerName www.deletedforsec.us<\/a><\/p>\n <VirtualHost *:80> I have disabled the default site (sudo a2dissite 000-default) Can somebody please tell me where I have errored or what I need to do to resolve this issue?<\/p>\n Thank You<\/p>","upvoteCount":0,"datePublished":"2024-12-11T00:35:46.063Z","url":"https://community.spiceworks.com/t/apache-site-will-not-load-via-url/1152349/1","author":{"@type":"Person","name":"amd.64","url":"https://community.spiceworks.com/u/amd.64"}}]}}
\n
\nServerAdmin [email protected]<\/a>
\nServerName deletedforsec.us<\/a>
\nServerAlias www.deletedforsec.us<\/a>
\nDocumentRoot /var/www/html/deletedforsec.us
\nErrorDocument 404 /404Error.shtml<\/p>\n <Directory /var/www/html/deletedforsec.us>\n Options Indexes FollowSymLinks MultiViews Includes\n AllowOverride None\n Order allow,deny\n allow from all\n AddType text/html .shtml\n AddOutputFilter INCLUDES .shtml\n </Directory>\n\n ErrorLog ${APACHE_LOG_DIR}/error.log\n CustomLog ${APACHE_LOG_DIR}/access.log combined\n\n RewriteEngine on\n RewriteCond %{SERVER_NAME} =deletedforsec.us [OR]\n RewriteCond %{SERVER_NAME} =www.deletedforsec.us\n RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]\n<\/code><\/pre>\n<\/blockquote>\n \n```\n
\nI have enabled the site I am working on (sudo a2ensite deletedforsec.us.conf)
\nI have enabled url rewrite (sudo a2enmod rewrite)
\nI have enabled includes (sudo a2enmod include)<\/p>\n\n
\nServerAdmin [email protected]<\/a>
\nServerName deletedforsec.us<\/a>
\nServerAlias www.deletedforsec.us<\/a>
\nDocumentRoot /var/www/html/deletedforsec.us
\nErrorDocument 404 /404Error.shtml<\/p>\n <Directory /var/www/html/deletedforsec.us>\n Options Indexes FollowSymLinks MultiViews Includes\n AllowOverride None\n Order allow,deny\n allow from all\n AddType text/html .shtml\n AddOutputFilter INCLUDES .shtml\n </Directory>\n\n ErrorLog ${APACHE_LOG_DIR}/error.log\n CustomLog ${APACHE_LOG_DIR}/access.log combined\n\n RewriteEngine on\n RewriteCond %{SERVER_NAME} =deletedforsec.us [OR]\n RewriteCond %{SERVER_NAME} =www.deletedforsec.us\n RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]\n<\/code><\/pre>\n<\/blockquote>\n \n```\n
\nI have enabled the site I am working on (sudo a2ensite deletedforsec.us.conf)
\nI have enabled url rewrite (sudo a2enmod rewrite)
\nI have enabled includes (sudo a2enmod include)<\/p>\n