-1

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).

mJehanno
  • 99
  • 4

1 Answers1

0

Hum finally found where was the problem : subfolder was a prestashop app there was a config field in Url & SEO set to my local Ip.

mJehanno
  • 99
  • 4