LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-26-2004, 05:32 PM   #1
fur
Member
 
Registered: Dec 2003
Distribution: Debian, FreeBSD
Posts: 310

Rep: Reputation: 35
How to make PHPBB not show a directory listining www.mydomain.com/phpBB2/


If I go to http://mydomain.com/phpBB2 I can see the contents of that directory. For example..

Code:
 admin/                  14-Apr-2004 05:24      -  
 cache/                  14-Apr-2004 05:24      -  
 common.php              04-Jun-2003 17:41     5k  
 config.php              14-Apr-2004 16:26     1k  
 db/                     14-Apr-2004 05:24      -  
 docs/                   14-Apr-2004 05:24      -

How can I make it so that when someone goes to that directory for it to display, or redirect me to this URL instead?

http://mydomain.com/phpBB2/index.php
 
Old 04-26-2004, 06:39 PM   #2
jcookeman
Member
 
Registered: Jul 2003
Location: London, UK
Distribution: FreeBSD, OpenSuse, Ubuntu, RHEL
Posts: 417

Rep: Reputation: 33
In httpd.conf:
Code:
<Directory  /phpBB2>
Options Indexes FollowSymLinks
</Directory>
Remove 'Indexes'. This will disable the directory browsing.

Second, in httpd.conf:
Code:
<IfModule mod_dir.c>
DirectoryIndex index.html index.htm index.php
</IfModule>
Not necessarily in that order.
 
Old 04-26-2004, 06:44 PM   #3
jcookeman
Member
 
Registered: Jul 2003
Location: London, UK
Distribution: FreeBSD, OpenSuse, Ubuntu, RHEL
Posts: 417

Rep: Reputation: 33
Oh yeah...restart httpd, too!
 
Old 04-26-2004, 07:17 PM   #4
fur
Member
 
Registered: Dec 2003
Distribution: Debian, FreeBSD
Posts: 310

Original Poster
Rep: Reputation: 35
Mucho gracias senior jcookeman.
 
  


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
Directory index forbidden by rule: /var/www/html/ danimaldaisy Linux - Networking 6 02-11-2008 01:32 AM
Debian 3.1 sarge, Apache and /var/www/images directory fiddelm3742 Linux - Software 7 06-30-2005 11:02 AM
ls - show first x files in directory ottergoose Linux - Newbie 2 09-05-2004 11:45 PM
user`s www dir in his home directory spotass Linux - Newbie 0 06-12-2004 01:57 AM
What is the correct Samba permission to my webserver /www directory? how to piratebiter Linux - General 1 09-21-2003 06:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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