1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

I need the Indexes option perminantly set.

Discussion in 'Plesk for Linux - 8.x and Older' started by alantone, Dec 19, 2006.

  1. alantone

    alantone Guest

    0
     
    I post images to my server for realtors and I don't want to have to create an index page for each folder. In order to have the server automatically create an index page I have been vi'ing into /etc/httpd/conf.d/zz010_psa_httpd.conf and setting "Options Indexes" see below:

    <Directory "/var/www/vhosts">
    AllowOverride All
    Options SymLinksIfOwnerMatch Indexes
    Order allow,deny
    Allow from all
    <IfModule sapi_apache2.c>
    php_admin_flag engine off
    </IfModule>
    <IfModule mod_php5.c>
    php_admin_flag engine off
    </IfModule>
    </Directory>

    I save it, but then if the server reboots this option gets removed. Does anyone know how to perminently turn this "Indexes" option on?
     
  2. danliker

    danliker Silver Pleskian Plesk Certified Professional

    33
    43%
    Joined:
    Feb 15, 2006
    Messages:
    575
    Likes Received:
    0
    Location:
    Switzerland
    you can create a .htaccess file in your document root with:

    Options +Indexes

    or you can use a vhost.conf in the conf directory of the domain.
     
Loading...