Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 5956

Website hosting from Ubuntu Server not quite working [closed]

$
0
0

I am running Proxmox on a Raspberry Pi 5 (unofficially arm64 version). I set up an Ubuntu Server VM on the Proxmox interface, I installed only SSH, apache2 and PHP on the VM and I also enabled firewall and allowed 'Apache Full' and 'OpenSSH'. My /etc/apache2/sites-enabled/colinm_de.conf config file looks like this:colinm_de.conf

I also have another file in this directory which looks like thislocalhost.conf

In my /var/www/colinm_de path I just have a simple index.html file with some text.Now if I access 192.168.178.93 from any device within my network, I can view the website.But now I also want that other people can view my website through the domain colinm.de, I already configured my Proxmox and VM to use static IP. So I went into my router settings and opened the port 80 (later on I can also open 443, if I get 80 to work) for the IP 192.168.178.93 and I went to my domain provider Namecheap.com and setup DNS configuration to following:

A Record - @ - 192.168.178.93 - TTL to 1min

and

A Record - www - 192.168.178.93 - TTL to 1min

Now if I want to access colinm.de following error occures in Chrome:Website unreachable. DNS_PROBE_FINISHED_NXDOMAIN and when I try to access colinm.de through TOR Browser it first gives the warning that the connection is unsecure because it's not supported by HTTPS, then I press cotninue anyway and then following error occurs: Website unreachable. ERR_SOCKS_CONNECTION_FAILED

My /etc/hosts file in the VM looks like this:

127.0.0.1 localhost127.0.1.1 ubuntu127.0.1.1 colinm.de::1     ip6-localhost ip6-loopbackfe00::0 ip6-localnetff00::0 ip6-mcastprefixff02::1 ip6-allnodesff02::2 ip6-allrouters

I tried to inspect the error log file of apache2, but I dont think there is any important messages.

  • My Proxmox IP: 192.168.178.10
  • My Ubuntu VM IP: 192.168.178.93
  • My router IP: 192.168.178.1

Viewing all articles
Browse latest Browse all 5956

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>