Linux   « コンビニでツケ?? | HOME | mysql - backup »

 ■ Apache - Indexes

In case that you set Indexes on in httpd.conf, the directory listing shows up when you accessed to the site. This is addtional setup how it appears on the web browser.

Add below line in the part of directory setup.
# nano /etc/httpd/conf/httpd.conf

IndexOptions FancyIndexing FoldersFirst Charset=UTF-8 HTMLTable


FancyIndexing : The listing changes to a bit fancy one (really??)
FoldersFIrst : Folders is listed first prior to files.
Charset : Default Charset
HTMLTable : The listing changes to HTML Table.

For more setup, refer below URL.
http://httpd.apache.org/docs/2.0/ja/mod/mod_autoindex.html#indexoptions


Disable listing

If you want to disable listing, just delete Indexes from Options in httpd.conf. However if you want to stop listing only in the particular directory, create .htaccess in the directory and write below.

# nano .htaccess
Options -Indexes

投稿者 tomopugh : 2008年11月26日 15:43

Comment

Please comment !




Save the info?


  (Please don't click on "post" twice. It takes time a bit to change to the next screen!!)