I have apache server running on Ubuntu 16.04 and which works fine with port other than 80, I have forwarded the port 80 and try to access my server using
https://mysite.ddns.net/index.html
and the page cannot load.
And if I change the port to 8085 and forwarded it and then try with the URL,
`https://mysite.ddns.net:8085/index.html`
then it works, only problem with port 80.
Here is the config files
ports.conf
# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default.conf
Listen 8075
Listen 80
Listen 443
<IfModule ssl_module>
Listen 80
</IfModule>
<IfModule mod_gnutls.c>
Listen 80
</IfModule>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
default-ssl.conf
<IfModule mod_ssl.c>
<VirtualHost _default_:80>
ServerAdmin your_email@example.com
DocumentRoot /var/www
ServerName mysite.ddns.net
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine on
SSLCertificateFile /etc/ssl/certs/apache-selfsigned.crt
SSLCertificateKeyFile /etc/ssl/private/apache-selfsigned.key
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>
BrowserMatch "MSIE [2-6]" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
</VirtualHost>
</IfModule>
I have allowed the port in iptable with the command.
sudo iptables -A INPUT -p tcp --dport 80 -j ACCEPT
Still not work. What could be the reason.