PDA

View Full Version : setting up apache in linux (webmin / mandrake 9)



blakerwry
10-13-2002, 08:44 AM
hey, can somebody give me a hand here.. im a linux noob.. >8- )

...and Im setting up an apache web server via webmin. I'm trying to get directory browsing to work, but I keep getting forbidden errors. I have checked the permissions for the related folder and files and everything seems to be correct.

How can I enable browsing on a specific folder using apache?

Mercutio
10-13-2002, 10:37 AM
webmin doesn't use apache. Webmin has its own web server, written in perl, that sits on the port you configured it to use.

ihsan
10-13-2002, 10:59 AM
Webmin can indeed use Apache as its server. I've used it with apache1.3-mod-ssl.

blakerwry :
The user you use in webmin (admin) must have permission to modify the files that reside under Apache directory. You can set this up, I think, under Webmin configuration->Global permission or access control, something like that.

blakerwry
10-13-2002, 06:50 PM
Actually, What I think I need is a good guide to setting up apache. Not neccessarily installing, but more about how to setup your server, tips & tricks, etc.

Does anyone know of any good guides they can recomend... I'm a noob.. and I find messing with the config file a bit cumbersome sometimes... I have read through the apache documentat, but am stumped...

I'm using webmin to administrate my apache server if that makes mroe sense than my last post.

blakerwry
10-13-2002, 06:52 PM
Apache calls the specific thing im trying to do "directory indexing" but in IIS it's called "directory browsing"

blakerwry
10-13-2002, 06:54 PM
here's how apache does it...

http://www.awtrey.com/files/

ihsan
10-13-2002, 07:58 PM
Forget webmin and do what everybody else is doing, edit the file using a text editor.

As for directory indexing, add this line into your Apache configuration file, httpd.conf

<IfModule mod_autoindex.c>

#
# FancyIndexing is whether you want fancy directory indexing or standard
#

IndexOptions FancyIndexing

AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip

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

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

AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^

#
# DefaultIcon is which icon to show for files which do not have an icon
# explicitly set.
#
DefaultIcon /icons/unknown.gif

</IfModule>

I can mail you my httpd.conf file if you want. Just mail me: ihsan at synthexp.net.

blakerwry
10-13-2002, 08:15 PM
ok, i finally got indexing to work on user directories.... I'll save any more questions for another post

thx for your help guys