LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 10-06-2006, 05:23 PM   #1
tzbishop
LQ Newbie
 
Registered: Oct 2006
Location: São Paulo - Brazil
Distribution: SuSE 10.1, Slackware 11
Posts: 28

Rep: Reputation: 15
simple configuration on SuSE apache: help


hey guys..

My apache is working well on SuSE, but if I have no index.htm on a directory, for example, and I try to access localhost/dir it does not show the files that are in that directory. But if I put a index.htm file on dir it displays the page well.

The aim is to make an apache like we see in mirrors, that it only shows the files on a directory, but my apache is configured somewhere "if there's no index.htm, show an error to the user :P"

How could I change that configuration to one that if the user tries to access that directory which does not have an index.htm, his/her browser just show the files on the directory?

thanks in advance...
 
Old 10-06-2006, 05:52 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
In your apache config file, you need to make sure the directory has "Indexes" on the "Options" line. Something like this
Code:
DocumentRoot "/home/username/test/example.com/htdocs/"
<Directory "/home/username/test/example.com/htdocs/">
   Options Indexes FollowSymLinks MultiViews
   AllowOverride None

   Order allow,deny
   Allow from all
</Directory>
 
Old 10-07-2006, 10:02 AM   #3
tzbishop
LQ Newbie
 
Registered: Oct 2006
Location: São Paulo - Brazil
Distribution: SuSE 10.1, Slackware 11
Posts: 28

Original Poster
Rep: Reputation: 15
thanks. i will test it soon!
 
  


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 simple configuration - program name pulper Linux - Server 2 09-17-2006 11:24 AM
?simple CVS configuration howto pudhiyavan Linux - Software 0 01-06-2004 03:49 AM
simple squid configuration andrewlkho Linux - Software 1 08-10-2003 07:17 AM
missing something simple in 3 NIC configuration qweqwe Linux - Networking 4 06-16-2003 01:55 AM
A simple Sendmail configuration question J_Szucs Linux - Newbie 2 11-12-2002 03:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 02:41 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
Open Source Consulting | Domain Registration