Curious Posted June 7, 2005 Report Share Posted June 7, 2005 Hello to all!This is a great product. I love this server Uniformserver. I am new to this and so far it is easy to use. My question?How do I go about securing my pages. I've used control panels on hosting companies sites. I could tell the server not to let someone into a certain file. By the way, I am very new at running a server. My goal is as follows...If you went to my site and went to the photo gallery, the url would be something like this: www.mysite.com/gallery/index.htmlPretty straight forward!Now if you typed this: www.mysite.com/gallery/Then you could see a list of other items that is in that directory. I've noticed this alot on different websites!! You pretty much get to look under their skirt I want to prevent this from happening. Can someone help me out? I run windows xp pro and I did not yet install Unitray or the other plug ins. I will be installing tonite. Maybe unitray will take care of this?? Great forum. The help is great!! Quote Link to comment Share on other sites More sharing options...
olajideolaolorun Posted June 7, 2005 Report Share Posted June 7, 2005 Please refer to this Article that i just wrote in our Wiki... http://wiki.uniformserver.com/Htaccess Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
bk2003 Posted June 7, 2005 Report Share Posted June 7, 2005 Now if you typed this: www.mysite.com/gallery/Then you could see a list of other items that is in that directory. Hi, This is done by adding a index.html or index.htm page in that directory. If this isn't working, you have to change the conf. file for Apache on the server. For Uniserver this file is found here:W:\usr\local\Apache2\conf\httpd.conf Find this line: (it's line no 381 in my file)DirectoryIndex index.html index.shtml index.html.var index.htm index.php3 index.php index.pl index.cgi Add file types to look for there. If you want to change that for only one directory. You can create a empty notepad file and add that line. Then save the file as .htaccess in the directory. /BK Quote Link to comment Share on other sites More sharing options...
olajideolaolorun Posted June 7, 2005 Report Share Posted June 7, 2005 It has already been set in the httpd.conf file so do not mess with it unless you know what you are doing. Use the .htaccess file to set it to anything other than index.ext or default.ext which we have already pre-set. If you say you are using the Uniform Server then it should automatically show the index.html file cause that has been pre-set. Quote Best Regards Olajide Olaolorun The Uniform Server Development Team 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.