PDA

View Full Version : enabling access to apache (wamp)


manuleka
15 Sep 2007, 1:07am
how do i edit these lines on httpd so i can view my wamp server on my local clients? (other computers in my house)

<Directory "D:/wamp/www">
......
Order Deny,Allow
Deny from all
Allow from 127.0.0.1

</Directory>

kryyst
15 Sep 2007, 3:21am
order allow, deny
Allow from 127.0.0.1, 192 (or whatever your local ip's are)
Deny from all

that should do it.

manuleka
15 Sep 2007, 3:49am
after doing the above changes... my server doesn't load properly.. i get the yellow from the wamp icon... am i missing something?

just realise there's another directory section on httpd.conf


<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Satisfy all
</Directory>


is the above one the one i'm suppose to alter and not the below ones?


<Directory "D:/wamp/www">

....
Order Deny, Allow
Deny from all
Allow from 127.0.0.1

</Directory>

Thrax
15 Sep 2007, 10:14am
Only the &lt;directory /&gt; section with "Options" and "FollowSymLinks"

manuleka
16 Sep 2007, 4:22am
this one

< Directory "D:/wamp/www" >
..... blah blah ....
Order Deny,Deny
Deny from All
Allow from All
< /Directory >

to

< Directory "D:/wamp/www" >
..... blah blah ....
Order Allow,Deny
Allow from All
Deny from None
< /Directory >

drasnor
16 Sep 2007, 11:20pm
That's pretty insecure. I hope you have a firewall between your LAN and your WAN.

-drasnor :fold:

kryyst
17 Sep 2007, 1:41pm
That's not really unsecure. It's just saying that any system can see any apache served websites. It's not creating rules for every possible port on the machine.

manuleka
18 Sep 2007, 9:24pm
yeah whats so insecure about apache serving only my www folder?

Thrax
18 Sep 2007, 11:37pm
Allow from All
Deny from None

=

Allow connections from ANYONE.
Deny connections from NOBODY.

manuleka
19 Sep 2007, 12:59am
=

Allow connections from ANYONE.
Deny connections from NOBODY.

you guys do realise this deny nobody is only for my www folder on my apache2 server....

and it is running locally which i use for testing purposes only... and this machine isn't connected to the internet 24/7

Thrax
19 Sep 2007, 1:07am
The WWW folder is the primary folder served to the outside world. Your WAMP server is wide open to outside connections.

manuleka
25 Sep 2007, 1:54am
ok thanks Thrax... i think its safe enough at the moment...