0

Hi my network map is like this

internet--Arris589--wavlink rounter--my PC== apache2  

my problem is when the web packs come in they get the "this webpage is down message" and when I connect to the page its works. I have already tried port forwarding and set up apache.

This is what my config looks like in apache

Config of my webserver

my webhub.network.conf:

<VirtualHost *:80>
    ServerName www.webhub.network
    ServerAlias webhub.network
    DocumentRoot /home/chris/Documents/homeserver/
    <Directory /home/chris/Documents/homeserver/>
        Options Indexes FollowSymLinks
        AllowOverride None
        Require all granted
    </Directory>
</VirtualHost>
guntbert
  • 13,134
Funni5
  • 23
  • Does your PC have a local firewall enabled that is blocking port 80? Easiest way to check is probably using ufw sudo ufw status. If UFW is disabled it won't necessarily mean that your firewall is not blocking the port, see this guide on IPtables to know for sure – Baa Jun 15 '20 at 14:29
  • ufw is enabled and its has the apache config in it – Funni5 Jun 15 '20 at 14:57

1 Answers1

0

The first line of webhub.network.conf file says, who can go to your webiste. Therefore I recommend you to repace it with:

<VirtualHost *:80>

That means you allow every client to connect with your webserver, if they can reach your port 80.

You can only have one ServerName. The other one you can use as ServerAlias. Src


Make sure, there is a link to webhub.network.conf in the sites-enabled folder (you can add the link automatically with a2ensite webhub.network.conf)

Make sure you set the portforwarding up in your router, so that everybody from the outside can connect to your prot 80.

If it does not work, you also may check that apache has the right to read and send the folder. For example add this code before </VirtualHost>. Src

<Directory /home/chris/Documents/homeserver/>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    allow from all
</Directory>
Boba Fit
  • 1,633
  • like this? https://imgur.com/a/pmkYpEx – Funni5 Jun 15 '20 at 16:55
  • I'm sory, the image you uploaded is not working. Please edit your question and append your webhub.network.conf file. When you write '```' in front and after your code, it'll format very nice. – Boba Fit Jun 15 '20 at 17:10
  • '```' <Directory /home/chris/Documents/homeserver/> Options Indexes FollowSymLinks AllowOverride None Require all granted ServerName www.webhub.network ServerAlias webhub.network DocumentRoot "/home/chris/Documents/homeserver/"

    '```'
    – Funni5 Jun 15 '20 at 17:34
  • The Directory part ist right in front of the end of VirtualHost. I edited your question to with my correction in it. pease try it an tell us how it does. – Boba Fit Jun 15 '20 at 17:46
  • I think I can now visit your site: http://webhub.network/. Therefor it seems to work. PS: It seems www.webhub.network is not registerd in your nameserver. Therefore it does not work. – Boba Fit Jun 15 '20 at 17:50
  • if the screen is dark then you can see my page. – Funni5 Jun 15 '20 at 17:59
  • It was dark and I was able to go through your phpinfo page. Be careful what you publish!!!! Now I got 403 messages. I think you organize a login? Good choice. Seems that problem is solved. I'd be happy if you can accept my answer. I hope you stay on AskUbuntu and keep using GNU/Linux. – Boba Fit Jun 15 '20 at 18:12
  • ya need to change some things on there – Funni5 Jun 15 '20 at 18:17