Page 1 of 1

Local-only Apache server

Posted: Mon Jun 16, 2008 5:34 am
by OMA
Hello all.

I need to install a little local Apache+PHP+MySQL server in a Tablet PC so it can show local PHP pages with database data. How can I configure the server so it only accepts local access? (no traffic from anywhere outsite the tablet device). I know I can setup a firewall so it blocks all port 80 traffic but, is there a way to configure this in Apache, so I don't have to tinker with firewalls? What's the best method to accomplish this?

Thank you.

Re: Local-only Apache server

Posted: Mon Jun 16, 2008 5:49 am
by Kieran Huggins
In Apache's config modify the Listen line to read:

Code: Select all

Listen 127.0.0.1:80
and then restart Apache. That *should* do it...

Re: Local-only Apache server

Posted: Tue Jul 01, 2008 5:30 am
by OMA
Thank you for the tip!!