Solved

Q about Apache for Linux

Posted on 1998-07-16
1
229 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

728 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