This is a discussion on how to only allow access for localhost within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi, Is it possible to set up Apache to only allow localhost access to my web files so no one ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi,
Is it possible to set up Apache to only allow localhost access to my web files so no one else can gain access? Reason is I am developing some web pages but my computer is always online so I dont want anyone being able to find a web site here when Apache is started. I have Windows XP. Thanks Laurie |
|
|||
|
In article <LY9Sa.899$Ai3.411@newsfep4-winn.server.ntli.net>,
"laurie" <lawr_1@hotmail.com> wrote: > Is it possible to set up Apache to only allow localhost access to my web > files so no one else can gain access? Reason is I am > developing some web pages but my computer is always online so I dont want > anyone being able to find a web site here when Apache is > started. I have Windows XP. use the directive BindAddress in httpd.conf, change the * by 127.0.0.1 and you're done. patpro |
|
|||
|
Thats' great.
I've added Listen 127.0.0.1:80. I assume this means Apache is only listening out for 127.0.0.1 on port 80 which is exactly what I want. I didnt think about the firewall thing. Thats an idea. Thanks. Laurie "patpro" <patpro@elena.patpro.net> wrote in message news:patpro-BC5E28.14201619072003@biggoron.nerim.net... In article <LY9Sa.899$Ai3.411@newsfep4-winn.server.ntli.net>, "laurie" <lawr_1@hotmail.com> wrote: > Is it possible to set up Apache to only allow localhost access to my web > files so no one else can gain access? Reason is I am > developing some web pages but my computer is always online so I dont want > anyone being able to find a web site here when Apache is > started. I have Windows XP. use the directive BindAddress in httpd.conf, change the * by 127.0.0.1 and you're done. patpro |
|
|||
|
In article <nOOSa.2015$l63.25352@newsfep4-glfd.server.ntli.net>,
"laurie" <lawr_1@hotmail.com> wrote: > Thats' great. > I've added Listen 127.0.0.1:80. I assume this means Apache is only listening > out for 127.0.0.1 on port 80 which is exactly what I > want. Apache will listen to whatever BindAddress AND Listen are set to. If BindAddress is set to "*" and Listen is set to "127.0.0.1", your server will not be limited to localhost patpro |
|
|||
|
I don't have a BindAddress in my httpd.conf file. Only Listen. I assumed Listen is "binding the address".
Maybe it's different depending on Apache version? I have 2.0.43. Here's my Listen section. # # Listen: Allows you to bind Apache to specific IP addresses and/or # ports, in addition to the default. See also the <VirtualHost> # directive. # # Change this to Listen on specific IP addresses as shown below to # prevent Apache from glomming onto all bound IP addresses (0.0.0.0) # #Listen 12.34.56.78:80 Listen 127.0.0.1:80 "patpro" <patpro.pouet@archange.fr> wrote in message news:patpro.pouet-7DA479.12050521072003@news.wanadoo.fr... In article <nOOSa.2015$l63.25352@newsfep4-glfd.server.ntli.net>, "laurie" <lawr_1@hotmail.com> wrote: > Thats' great. > I've added Listen 127.0.0.1:80. I assume this means Apache is only listening > out for 127.0.0.1 on port 80 which is exactly what I > want. Apache will listen to whatever BindAddress AND Listen are set to. If BindAddress is set to "*" and Listen is set to "127.0.0.1", your server will not be limited to localhost patpro |
|
|||
|
In article <4sRSa.2090$l63.26713@newsfep4-glfd.server.ntli.net>,
"laurie" <lawr_1@hotmail.com> wrote: > I don't have a BindAddress in my httpd.conf file. Only Listen. I assumed > Listen is "binding the address". > Maybe it's different depending on Apache version? I have 2.0.43. > Here's my Listen section. > # Change this to Listen on specific IP addresses as shown below to > # prevent Apache from glomming onto all bound IP addresses (0.0.0.0) > # > #Listen 12.34.56.78:80 > Listen 127.0.0.1:80 well, looks like Apache 2.x said goodbye to BindAddress, not that bad ;) patpro |
| Thread Tools | |
| Display Modes | |
|
|