EXiT Posted April 8, 2008 Share Posted April 8, 2008 Is there anyway to turn off my apache server, so other people can't type in my IP and view my directories? I still want it to be visible for me though.I'm sure a few months ago i read that it could be done through the httpd file.But not got a clue what to look for. I don't want to create a blank index file. Cheers ... On my localhost i mean Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted April 9, 2008 Share Posted April 9, 2008 Open your httpd.conf file and find the following lines: # First, we configure the "default" to be a very restrictive set of # features. # <Directory /> Options FollowSymLinks AllowOverride None Order deny,allow Deny from all </Directory> Add the following line before the </Directory> line: Allow from 127.0.0.1 localhost Now scroll down a bit further and comment out (add a # at the start of the line) the following lines highlighted in bold: # # Controls who can get stuff from this server. # Order allow,deny Allow from all Save the httpd.conf and restart Apache Apache will only accept connections from you. It'll reject any other users (remote computers) Quote Link to comment Share on other sites More sharing options...
EXiT Posted April 10, 2008 Author Share Posted April 10, 2008 Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.