PDA

Click to See Complete Forum and Search --> : [Resolved] Apache Setup


The Hobo
May 13th, 2003, 04:52 PM
I've heard someone mention it before...but how can I setup Apache to only accept requests from my computer?

phpman
May 15th, 2003, 11:26 AM
so you want to log into your machine from another machine over the net? than it has nothing to do with apache, well kind of, you have to make sure you have your IP in the httpd.conf file. then if you have a firewall of some kind than make sure you can get in on that as well.

The Hobo
May 15th, 2003, 05:56 PM
No...

I'm running Apache to test my webpages, and I do not want any outside computers to be able to connect to my webserver.

So have it so Apache only accepts connections from...well, itself. Or something.

Please tell me you know what I mean, because I can't explain it anymore.

phpman
May 15th, 2003, 07:41 PM
if you set it up as localhost or 127.0.0.1 then that is the only way. it will not except outside connections. everybody has a localhost or 127.0.0.1 so if they try they would get themselves instead of you.

The Hobo
May 15th, 2003, 08:47 PM
I know this...so how do I set it up as localhost?

phpman
May 15th, 2003, 10:53 PM
look for this

listen

and make it like this


Listen 127.0.0.1:80

The Hobo
May 16th, 2003, 10:43 AM
Works perfectly, thanks.

phpman
May 16th, 2003, 10:51 AM
you bet? did you have it setup the other way?

The Hobo
May 16th, 2003, 10:54 AM
It was just commented out. It must have been that way by default, because I didn't do it.