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
Solved

Q about Apache for Linux

Posted on 1998-07-16
1
227 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

856 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