Page 1 of 1

Port Forwarding to Pie

Posted: Fri Aug 14, 2015 9:52 pm
by pinkfloydim
Hi There

I have setup my router to port forward on port 8080, and am running apache on the pie.

When I type address of pie, web site loads all good.

If I try to access my pie with : public ip:8080, always fails.

I setup my mac to do a port forward on port 8888, using MAMP, and all good.

Can't work out why it won't port forward to the pie.

Any ideas.

Thanks.

Re: Port Forwarding to Pie

Posted: Sat Aug 15, 2015 3:30 am
by rpdom
Is the Pi listening on 8080? The default for Apache is 80.

Have you either configured Apache to listen on 8080, or your router to forward incoming 8080 to 80 on the Pi?

Re: Port Forwarding to Pie

Posted: Sat Aug 15, 2015 9:09 am
by pinkfloydim
Hi There

/etc/apache2/ports.conf:

NameVirtualHost *:80
NameVirtualHost *:8080
Listen 80
Listen 8080

/etc/apache2/sites-enabled/000-default:

<VirtualHost *:80 *:8080> //line 1

Running locally:
As when I load the ip address of my public location it just loads the router screen, and not the web site?

Over internet:
And fails to load a screen when run on 3G on my phone.

regards

Re: Port Forwarding to Pie

Posted: Sat Aug 15, 2015 12:35 pm
by klricks
Turn off the remote access feature of your router or change the port number for that. You really should not have remote access enabled for security reasons.

Re: Port Forwarding to Pie

Posted: Sat Aug 15, 2015 10:24 pm
by pinkfloydim
Hi There

I have checked my router, and remote management is off, so no access to it from the outside world.

Can only login locally.

regards