Solved

Q about Apache for Linux

Posted on 1998-07-16
1
224 Views
Last Modified: 2012-05-04
I am very new to Apache, so please try to phrase your answer accordingly.  I have Red Hat Linux 5.1 and I have my web site working.  However, I would like to disable directory browsing on my site.  I am somewhat familiar with Comanche for Apache's interface, but I really don't know how to use the options.  I definitely do not know how to change my Apache options from a shell.  Thanks.
0
Comment
Question by:TJWin
1 Comment
 

Accepted Solution

by:
chrisbill earned 30 total points
ID: 1585176
Take a look in your access.conf.  This should be in one of these directories: /etc/httpd/conf/ or /usr/local/etc/httpd/conf/.  

If you can't find it, run this command:
  locate access.conf
(and you should see which directory it is in).

Edit this file.  In the first 40 lines, you will see the/a
'<Directory xxx>' section.  (It's formatted kind of like an HTML tag).  Inside this section, there may or may not be a line that
reads 'Options Indexes FollowSymLinks blah blah'.  If there is, remove the 'Indexes' text, save the file, and exit.

If there isn't just create insert this line of text:
   Options FollowSymLinks Includes ExecCGI FollowSymLinks

Finally, restart the HTTPD server:
  $ kill -1 `ps aux | grep "httpd" | grep "root" | awk '{ print $2 }'`

Note that you are trying to "kill -1" the HTTPD process that spawns the child proccesses -- usually run as root (and not the 'web', 'www', 'nobody' user).

0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now