Local-only Apache server

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
OMA
Forum Newbie
Posts: 7
Joined: Wed Jun 11, 2008 10:25 am

Local-only Apache server

Post 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.
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Re: Local-only Apache server

Post 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...
OMA
Forum Newbie
Posts: 7
Joined: Wed Jun 11, 2008 10:25 am

Re: Local-only Apache server

Post by OMA »

Thank you for the tip!!
Post Reply