LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-15-2003, 01:20 AM   #16
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64

Code:
# Disable autoindex for the root directory, and present a
# default Welcome page if no other index page is present.
#
<LocationMatch "^/$>
    Options -Indexes
    ErrorDocument 403 /error/noindex.html
</LocationMatch>
Edit that to look like this:
Code:
# Disable autoindex for the root directory, and present a
# default Welcome page if no other index page is present.
#
<LocationMatch "^/$>
    Options Indexes
#    ErrorDocument 403 /error/noindex.html
</LocationMatch>
First start with just removing the - before Indexes, then restart apache. Then if still nothing, try placing the comment in front of the error document.

Cool
 
Old 01-15-2003, 01:23 AM   #17
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Another option is to put a .htaccess file in just that directory. What this will do is allow you to change directives in just that directory, so you don't have to allow file listing in every directory. A .htaccess file is normally used when you don't have access to the main server configs, however it would also be nice in a situation where you'd want to restrict certain things (or allow) in 1 particular directory.

Cool
 
Old 01-15-2003, 09:08 AM   #18
dkc_ace
Member
 
Registered: Dec 2002
Distribution: freeBSD 4.9/6.0
Posts: 194

Original Poster
Rep: Reputation: 30
well i might have a problem with apache looking in the wrong dir for the conf file bc i can change the dir in one of the .conf files and nothing changes like i change /hdb1/hdb1/html to /hdb1/hdb1/web i just renamed html and when i restarted apache it wouldnt work. so i went in the gui of apache and start looking there sure enough it was still pointing to /hdb1/hdb1/html im not sure if this is my problem but i would kinda guess it would be some of my problem.

oh btw i have a httpd.conf file in /etc/httpd.conf, /etc/httpd/conf/httpd.conf , /etc/httpd/conf/httpd.conf.bak
 
Old 01-17-2003, 05:19 PM   #19
dkc_ace
Member
 
Registered: Dec 2002
Distribution: freeBSD 4.9/6.0
Posts: 194

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by dkc_ace
well i might have a problem with apache looking in the wrong dir for the conf file bc i can change the dir in one of the .conf files and nothing changes like i change /hdb1/hdb1/html to /hdb1/hdb1/web i just renamed html and when i restarted apache it wouldnt work. so i went in the gui of apache and start looking there sure enough it was still pointing to /hdb1/hdb1/html im not sure if this is my problem but i would kinda guess it would be some of my problem.

oh btw i have a httpd.conf file in /etc/httpd.conf, /etc/httpd/conf/httpd.conf , /etc/httpd/conf/httpd.conf.bak
well so far so good i found out that it was reading from the wrong .conf file. i deleted the account and re set it up and it worked just fine. thanks again.
 
Old 01-17-2003, 09:38 PM   #20
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
That's cool then! Glad you got it working.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache permissions RedHatCore Linux - Software 4 08-26-2005 12:35 AM
Apache permissions doing... nothing? wrbob Linux - Software 5 08-22-2005 09:46 AM
Apache permissions haze Linux - Newbie 1 04-15-2005 04:22 PM
Apache Permissions Canadian_2k2 Linux - Networking 4 12-02-2002 02:51 PM
apache permissions, maybe? roadie Linux - General 4 06-14-2001 10:52 AM


All times are GMT -5. The time now is 10:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration