Option # 1: Using Apache config file
Add directory option to Apache configuration file /etc/httpd/httpd.conf or /etc/apache2/apache2.conf:# vi /etc/apache2/apache2.confAdd following code:
Options Indexes FollowSymLinks
Save and close the file. Restart Apache:
# /etc/init.d/httpd restartOR
# /etc/init.d/apache2 restartOption #2: Using .htaccess Files with Apache
You can place config line Options Indexes in .htaccess file. Make sure .htaccess file support is enabled.Change directory to pdfs
$ cd pdfsOpen .htaccess file
$ vi .htaccessAppend following apache directive:
Options IndexesSave and close the file.
No comments:
Post a Comment