Question
Access Apache Site Externally
Good night,
I setup Ubuntu 20.04 server, and installed LAMP stack and Wordpress for a site.
I can access the site internally (from another PC,phone,etc…) at the servers IP on port 80. Externally, jjohns.ddns.net:8821, the site will not load. I am sure my port forwarding is correct as I host a few sites here at my house. I have several which work using IIS on Windows 10.
In this sites /etc/apache2/sites-available/jmcs.conf I have the following:
<VirtualHost *:80>
#ServerName ##This is commented out at the moment, but I have tried using the domain name jjohns.ddns.net for both name/alias
#ServerAlias
ServerAdmin webmaster@localhost
DocumentRoot /var/www/jmcs
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory /var/www/jmcs/>
AllowOverride All
</Directory>
</VirtualHost>
In the ports.conf
Listen 80
<IfModule ssl_module>
Listen 443
</IfModule>
<IfModule mod_gnutls.c>
Listen 443
</IfModule>
UFW I am not too familiar with what may need to be opened, but I have it inactive at the moment. Status while active is:
Status: active
To Action From
-- ------ ----
22/tcp ALLOW Anywhere
Apache ALLOW Anywhere
22/tcp (v6) ALLOW Anywhere (v6)
Apache (v6) ALLOW Anywhere (v6)
On my Edge Router, using TCP, I forward from 8821 to port 80. I have tested going from 80 to 80 and it did not work. Also tired UDP, and both TCP/UDP for giggles.
Any assistance is much appreciated.
–Leavii
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×