LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How to make PHPBB not show a directory listining www.mydomain.com/phpBB2/ (https://www.linuxquestions.org/questions/linux-networking-3/how-to-make-phpbb-not-show-a-directory-listining-www-mydomain-com-phpbb2-174853/)

fur 04-26-2004 05:32 PM

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

jcookeman 04-26-2004 06:39 PM

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.

jcookeman 04-26-2004 06:44 PM

Oh yeah...restart httpd, too!

fur 04-26-2004 07:17 PM

Mucho gracias senior jcookeman.


All times are GMT -5. The time now is 02:57 PM.