Find the answer to your Linux question:
Results 1 to 2 of 2
Hi All, When I'm browsing the following link at my machine, it's showing the directory structure under railwaysite folder. Is there any way, I can restrict this access to others. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie Sangal-Arun's Avatar
    Join Date
    May 2006
    Location
    Gurgaon, India + Denver Colorado USA
    Posts
    101

    Angry Directory is not secure while browsing the link


    Hi All,

    When I'm browsing the following link at my machine, it's showing the directory structure under railwaysite folder.

    Is there any way, I can restrict this access to others. What I want is that, it should display a standard IE error page whenever someone tries to access this link.

    http://shws001.tblport.net:8080/railwaysite/


    Arun Sangal
    Brgds,

    ARUN SANGAL
    SCM: 1- 720 251 9962
    Email: sangal.ak04@gmail.com
    Email: sangal_ak04@yahoo.com

  2. #2
    Super Moderator Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,932
    I'm guessing your server is running apache. It it is, you can control directory permissions through the /etc/httpd/conf/httpd.conf file (or it may be that there's a file in /etc/httpd/conf.d/ that relates to this site specifically).

    Look for the <Directory>...</Directory> part of that file that sets up the permissions to the web's directory, you can control access by IP address, hostname, network addresses, etc. There are usually plenty of examples in that conf file that you can refer to.
    Linux user #126863 - see http://linuxcounter.net/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •