enabling access to apache (wamp)

edited September 2007 in Science & Tech
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>

Comments

  • kryystkryyst Ontario, Canada
    edited September 2007
    order allow, deny
    Allow from 127.0.0.1, 192 (or whatever your local ip's are)
    Deny from all

    that should do it.
  • edited September 2007
    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>
  • ThraxThrax 🐌 Austin, TX Icrontian
    edited September 2007
    Only the <directory /> section with "Options" and "FollowSymLinks"
  • edited September 2007
    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 >
  • drasnordrasnor Starship Operator Hawthorne, CA Icrontian
    edited September 2007
    That's pretty insecure. I hope you have a firewall between your LAN and your WAN.

    -drasnor :fold:
  • kryystkryyst Ontario, Canada
    edited September 2007
    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.
  • edited September 2007
    yeah whats so insecure about apache serving only my www folder?
  • ThraxThrax 🐌 Austin, TX Icrontian
    edited September 2007
    Allow from All
    Deny from None

    =

    Allow connections from ANYONE.
    Deny connections from NOBODY.
  • edited September 2007
    Thrax wrote:
    =

    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
  • ThraxThrax 🐌 Austin, TX Icrontian
    edited September 2007
    The WWW folder is the primary folder served to the outside world. Your WAMP server is wide open to outside connections.
  • edited September 2007
    ok thanks Thrax... i think its safe enough at the moment...
Sign In or Register to comment.