[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] [raq3] index.php
- Subject: Re: [cobalt-users] [raq3] index.php
- From: Hendrik Runte <cobalt@xxxxxxxxxx>
- Date: Thu Aug 9 01:44:04 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
am 09.08.2001 12:30 Uhr schrieb Sean Chester unter
seanc@xxxxxxxxxxxxxxxxxxxxxx:
> Im sure this has been covered a 1000 times before in the archives,
> i didnt really know what to search for, so i'll ask the question again.
>
> how do i make it so index.php pages will show up automaticaly in a browser?
>
> because i dont have an index.htm it shows me a filelist and i have to click
> on index.php to load
> the site up.
>
>
> im using a simple redirect script to make index.htm forward to index.php but
> im sure there is a simple solution.
>
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users
>
You'll have to edit your apache configuration.
1) Become root:
#su -
Password:
2) you'll need to find the 'DirectoryIndex' directive either in:
/etc/httpd/conf/httpd.conf or
/etc/httpd/conf/srm.conf
and edit this (or the other) file:
# pico /etc/httpd/conf/srm.conf
(back it up before editing by:
# cp /etc/httpd/conf/srm.conf /etc/httpd/conf/srm.conf-dist
)
3) Here can add any kind of index file you want, for example:
DirectoryIndex index.html index.htm index.shtml home.html home.htm index.php
index.php3 index.phps index.phtml
(your mileage may vary...)
4) Save this file (ctrl-x) and restart your web server:
# /etc/rc.d/init.d/httpd restart
5) Done :-)
Regards,
Hendrik
--