Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Q about Apache for Linux

Posted on 1998-07-16
1
Medium Priority
?
232 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 120 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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

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…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

916 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