Solved

Q about Apache for Linux

Posted on 1998-07-16
1
223 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
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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 tutorial demonstrates a quick way of adding group price to multiple Magento products.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

762 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

9 Experts available now in Live!

Get 1:1 Help Now