I've heard someone mention it before...but how can I setup Apache to only accept requests from my computer?
Printable View
I've heard someone mention it before...but how can I setup Apache to only accept requests from my computer?
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.
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.
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.
I know this...so how do I set it up as localhost?
look for this
listen
and make it like this
Listen 127.0.0.1:80
Works perfectly, thanks.
you bet? did you have it setup the other way?
It was just commented out. It must have been that way by default, because I didn't do it.