Tuesday, May 7, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 17339  / 2 Years ago, sat, april 2, 2022, 12:15:44

I have a VPS running Ubuntu 13.10 and has an Apache2 website, and whenever I go to the VPS's IP http://5.231.37.8 ,I get the default/test page for Apache instead of my website located in /var/www.



It's an html + css website.



Edit: My solution below


More From » apache2

 Answers
0

My solution:



Add a new virtual host for the ip address in the file located at etcapache2sites-available000-default.conf
as <VirtualHost *:80>
and change ServerName to the IP.



In
etcapache2sites-availabledefault-ssl.conf
(if you have ssl enabled) as



<VirtualHost *:443>


and change ServerName to the IP.


[#27204] Saturday, April 2, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
atetamme

Total Points: 11
Total Questions: 121
Total Answers: 109

Location: Puerto Rico
Member since Sun, Jun 27, 2021
3 Years ago
;