setting up apache in linux (webmin / mandrake 9)

blakerwry

Storage? I am Storage!
Joined
Oct 12, 2002
Messages
4,203
Location
Kansas City, USA
Website
justblake.com
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

Fatwah on Western Digital
Joined
Jan 17, 2002
Messages
21,607
Location
I am omnipresent
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

What is this storage?
Joined
Oct 6, 2002
Messages
66
Location
Petaling Jaya, Malaysia
Website
ihsan.synthexp.net
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

Storage? I am Storage!
Joined
Oct 12, 2002
Messages
4,203
Location
Kansas City, USA
Website
justblake.com
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.
 

ihsan

What is this storage?
Joined
Oct 6, 2002
Messages
66
Location
Petaling Jaya, Malaysia
Website
ihsan.synthexp.net
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.
 
Top