LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-20-2004, 02:33 AM   #1
NewtonIX
Member
 
Registered: Oct 2003
Location: Colorado
Distribution: SLackware 14
Posts: 56

Rep: Reputation: 16
Appache indexing


My server is a in house development server so i want to activate indexing
I got mandrake 10 runnin apache 2.0.48

The config file is commonhttpd.conf in the /etc/httpd/conf/ directory

I read through al the documentaion searched high and low in all different sites (including here)

ANd something that was supposed to take 5 min is now going on two hours

I Have edited my conf file as follows

#
# First, we configure the "default" to be a very restrictive set of
# permissions.
#
# Also, for security, we disable indexes globally
#
<Directory />
Options +Indexes
</Directory>

#Restricted set of options
#<Directory />
# Options -All -Multiviews
# AllowOverride None
# <IfModule mod_access.c>
# Order deny,allow
# deny from all
# </IfModule>
#</Directory>



I commented out the restricted settings and setup indexing for the root
but I still keep getting forbidden errors

I have restarted http hundred times even rebooted the server for the hell of it

I dont know what else to do
every doc says i got it right yet it dont work

Any help is appreciated

If you want to see my entire conf let Ill post it up but wasnt sure if it was necessary

 
Old 08-20-2004, 07:04 AM   #2
BigNate
Member
 
Registered: Mar 2003
Location: Harrisburg, PA
Distribution: Gentoo, Debian, Ubuntu, Red Hat/CentOS
Posts: 719

Rep: Reputation: 30
I just looked at a web page because I didn't know what indexing was all about...

So it looks like you have to have mod_index installed...do you have that?

http://httpd.apache.org/docs/mod/mod_autoindex.html
 
Old 08-20-2004, 04:34 PM   #3
NewtonIX
Member
 
Registered: Oct 2003
Location: Colorado
Distribution: SLackware 14
Posts: 56

Original Poster
Rep: Reputation: 16
You mean this?

<IfModule mod_autoindex.c>

#
# FancyIndexing is whether you want fancy directory indexing or standard
#
<IfDefine !APACHE2>
IndexOptions FancyIndexing NameWidth=*
</IfDefine>
<IfDefine APACHE2>
IndexOptions FancyIndexing VersionSort NameWidth=*
</IfDefine>
#
# AddIcon* directives tell the server which icon to show for different
# files or filename extensions. These are only displayed for
# FancyIndexed directories.
#
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip

AddIconByType (TXT,/icons/text.png) text/*
AddIconByType (IMG,/icons/image2.png) image/*
AddIconByType (SND,/icons/sound2.png) audio/*
AddIconByType (VID,/icons/movie.png) video/*

AddIcon /icons/binary.png .bin .exe
AddIcon /icons/binhex.png .hqx
AddIcon /icons/tar.png .tar
AddIcon /icons/world2.png .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.png .Z .z .tgz .gz .zip .bz2
AddIcon /icons/a.png .ps .ai .eps
AddIcon /icons/layout.png .html .shtml .htm .pdf
AddIcon /icons/text.png .txt
AddIcon /icons/c.png .c
AddIcon /icons/p.png .pl .py .php .php3
AddIcon /icons/f.png .for
AddIcon /icons/dvi.png .dvi
AddIcon /icons/uuencoded.png .uu
AddIcon /icons/script.png .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.png .tex
AddIcon /icons/bomb.png core

AddIcon /icons/back.png ..
AddIcon /icons/hand.right.png README
AddIcon /icons/folder.png ^^DIRECTORY^^
AddIcon /icons/blank.png ^^BLANKICON^^
#
# DefaultIcon is which icon to show for files which do not have an icon
# explicitly set.
#
DefaultIcon /icons/unknown.png

#
# AddDescription allows you to place a short description after a file in
# server-generated indexes. These are only displayed for FancyIndexed
# directories.
# Format: AddDescription "description" filename
#
#AddDescription "GZIP compressed document" .gz
#AddDescription "tar archive" .tar
#AddDescription "GZIP compressed tar archive" .tgz

#
# ReadmeName is the name of the README file the server will look for by
# default, and append to directory listings.
#
# HeaderName is the name of a file which should be prepended to
# directory indexes.
#
# If MultiViews are amongst the Options in effect, the server will
# first look for name.html and include it if found. If name.html
# doesn't exist, the server will then look for name.txt and include
# it as plaintext if found.
#
ReadmeName README.html
HeaderName HEADER.html

#
# IndexIgnore is a set of filenames which directory indexing should ignore
# and not include in the listing. Shell-style wildcarding is permitted.
#
IndexIgnore .??* *~ *# HEADER* RCS CVS *,v *,t

</IfModule>



Yes its installed
 
Old 08-21-2004, 01:07 AM   #4
binidiot
Member
 
Registered: May 2004
Location: Spain
Distribution: Debian Woody, FreeBSD 5.2.1
Posts: 106

Rep: Reputation: 15
How about adding the following:

DirectoryIndex index.html index.htm index.shtml
 
Old 08-21-2004, 02:34 AM   #5
NewtonIX
Member
 
Registered: Oct 2003
Location: Colorado
Distribution: SLackware 14
Posts: 56

Original Poster
Rep: Reputation: 16
Well i dont have an issue with it displaying the index page when there is one butwhen there isnt one i want the directory listing

crurently i get forbidden 403
The ownership off all the directorys is correct and I even mod 777 them for the hell of it

But to answer your question yes it is in there

#
# DirectoryIndex: Name of the file or files to use as a pre-written HTML
# directory index. Separate multiple entries with spaces.
#
<IfModule mod_dir.c>
DirectoryIndex index.html index.html.var index.php index.php3 index.shtml index.cgi index.pl index.htm Default.htm default.htm index.xml index.cfm
</IfModule>



I really have no idea why it wont list the directory
and yes its a coldfusion server

 
Old 08-21-2004, 06:25 AM   #6
binidiot
Member
 
Registered: May 2004
Location: Spain
Distribution: Debian Woody, FreeBSD 5.2.1
Posts: 106

Rep: Reputation: 15
OK. Have you tried commenting out all the IndexOptions stuff. All of it. Everything except:

Options +Indexes

All by it's naked self. According to my feeble calculations, that should generate a simple index listing if no index file is found.
 
Old 08-21-2004, 12:00 PM   #7
NewtonIX
Member
 
Registered: Oct 2003
Location: Colorado
Distribution: SLackware 14
Posts: 56

Original Poster
Rep: Reputation: 16
Yep in fact thats the way it is now (look at first post)
everything seems fine with the appache config
Im working with a few coldfusion guys to see if maybe that is doing it (it shouldnt be though)

 
Old 08-21-2004, 09:46 PM   #8
binidiot
Member
 
Registered: May 2004
Location: Spain
Distribution: Debian Woody, FreeBSD 5.2.1
Posts: 106

Rep: Reputation: 15
Hey when it get the answer will ya post it. I wanna see if I can find it in my handy dandy Apache Admin book. Thanks.
 
  


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
Upgrading Appache nyumedic2000 Linux - Newbie 1 03-19-2005 04:15 PM
running appache webserver problems drebbin Linux - Newbie 1 01-02-2005 07:53 PM
SSI and appache jax8 Linux - Newbie 1 03-23-2004 04:15 AM
appache sever authentication najeeb Linux - General 1 09-21-2003 10:14 AM
appache servername illtbagu Linux - Software 8 02-26-2003 11:28 PM


All times are GMT -5. The time now is 07:21 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration