I have an apache2 server running behind a pfsense firewall. I created a port-forwarding rule to redirect port 8000 to port 80 on an ubuntu hosting the apache2 instance.
My problem is the following : when I use my external ip on my browser, I can access my server but when I try to access a subfolder, I'm redirected to the local Ip. Which give me a timeout since I'm not on the same network.
My "virtual host" config is the following :
<VirtualHost *:80>
ServerName localhost:80
DocumentRoot /var/www/html
UseCanonicalName Off
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
I didn't find any redirection rules on any config file (since the rest is default apache2 config).