LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-01-2003, 12:52 PM   #1
spank
Member
 
Registered: Aug 2003
Location: Romania
Distribution: Ubuntu 6.06
Posts: 278

Rep: Reputation: 30
Small Apache Question


how do I make apache list my directory content. now when I start it I have to get an index.html file in /var/www/html
 
Old 09-01-2003, 01:06 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
By default it will most likely have Indexing on and if you want to view directory indexing in a particular folder, exclude the folder from having an index.html file in it.
 
Old 09-01-2003, 01:27 PM   #3
spank
Member
 
Registered: Aug 2003
Location: Romania
Distribution: Ubuntu 6.06
Posts: 278

Original Poster
Rep: Reputation: 30
I posted here because i`m a newbie.
I start apache and when I connect it gives me the default Test Page... you know the one. If I put a index.html it shows me that. How can I make it show the contents of the directory.
Sorry my english and my newbiness.
http://213.233.86.123:81/
 
Old 09-01-2003, 01:29 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
Like I stated in my first post, remove the index.html file or rename it as something other than index.html
 
Old 09-01-2003, 01:31 PM   #5
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
You may have a section like this in httpd.conf if it exists then comment it out and restart apache:
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>
 
Old 09-01-2003, 01:32 PM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
Also in your httpd.conf file make sure you have this, the words in bold added that is:

Code:
# This may also be "None", "All", or any combination of "Indexes",
# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
    Options Indexes FollowSymLinks MultiViews
 
Old 09-01-2003, 01:47 PM   #7
spank
Member
 
Registered: Aug 2003
Location: Romania
Distribution: Ubuntu 6.06
Posts: 278

Original Poster
Rep: Reputation: 30
david_ross thx

how can I move the / directory from /var/www/html to another place (the /home/user dir)
 
Old 09-01-2003, 01:49 PM   #8
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
You will need to chang ethe DocumentRoot directive and the <DIRECTORY> entry for the current location to that of the new one. Remember that your files/folders will need to be readable by the user "apache".
 
  


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
Small problem with apache - Indexing ThorRune Linux - Software 5 07-03-2005 11:38 AM
Small phpBB and apache configuration problem. The_Messiah Linux - Software 1 03-29-2005 02:09 PM
A small question on apache coolamit78 Linux - Networking 2 04-04-2004 06:58 AM
Small question Ed-Slack Linux From Scratch 1 01-08-2003 08:03 AM
a small question ericn Linux - Security 3 01-07-2002 05:04 PM


All times are GMT -5. The time now is 07:15 PM.

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