Cara Disable folder ICONS WEB Server Apache

 
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
View Mode
Views:

705


Replies:2

Cara Disable folder ICONS WEB Server Apache

Mungkin yang membutuhkan tutorial ini akan tau apa tujuaanya :D

Sebagai contoh jika kita menggunakan Web Server Type Apache akan mengeluarkan list file folder ICONS yang biasanya kita lihat disini:

http://www.domain.com/icons/

Maka cara hiden list file nya dengan cara merubah config sebagai berikut man:

nano /etc/apache2/mods-available/alias.conf

Jika itu tidak ada maka berada disini

nano /etc/httpd/conf/httpd.conf

Cari bagian seperti ini:

<IfModule alias_module>
#
# Aliases: Add here as many aliases as you need (with no limit). The format is
# Alias fakename realname
#
# Note that if you include a trailing / on fakename then the server will
# require it to be present in the URL.  So "/icons" isn't aliased in this
# example, only "/icons/".  If the fakename is slash-terminated, then the
# realname must also be slash terminated, and if the fakename omits the
# trailing slash, the realname must also omit it.
#
# We include the /icons/ alias for FancyIndexed directory listings.  If
# you do not use FancyIndexing, you may comment this out.
#
#Alias /icons/ "/usr/share/apache2/icons/"

<Directory "/usr/share/apache2/icons">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

</IfModule>

Rubah bagian ini man:

Options Indexes MultiViews

Menjadi seperti ini:

Options -Indexes MultiViews

Atau

#
# Aliases: Add here as many aliases as you need (with no limit). The format is
# Alias fakename realname
#
# Note that if you include a trailing / on fakename then the server will
# require it to be present in the URL.  So "/icons" isn't aliased in this
# example, only "/icons/".  If the fakename is slash-terminated, then the
# realname must also be slash terminated, and if the fakename omits the
# trailing slash, the realname must also omit it.
#
# We include the /icons/ alias for FancyIndexed directory listings.  If you
# do not use FancyIndexing, you may comment this out.
#
Alias /icons/ "/var/www/icons/"

<Directory "/var/www/icons">
    Options Indexes MultiViews FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

Rubah bagian ini man:

Options Indexes MultiViews FollowSymLinks

Menjadi seperti ini:

Options -Indexes MultiViews

Hasilnya jika di akses:

[Image: sbl1qLl.png]

RT: Cara Disable folder ICONS WEB Server Apache

Makasiiih paman Bacabuku

RT: Cara Disable folder ICONS WEB Server Apache

(06-04-2014 01:29 PM)Nevoozz Wrote: Makasiiih paman Bacabuku

Makasih buat apa man Hehe
kampoeng