PDA

View Full Version : password protacted directory


bhushan
20th September 2005, 07:11 AM
hello !

i m having a domain called abc.com

in that i had created password protacted directory user.
so please let me know that how i can view all the files or
directories from passwd protacted directory rather than
index.html.

if i rename that index.html it shows server failure error.

let me know how to overcome to this problem


bhushan.

jamesyeeoc
20th September 2005, 07:26 AM
how i can view all the files or
directories from passwd protacted directory rather than index.htmlYou need to specify the "Options Indexes" in a vhost.conf or vhost_ssl.conf file for the domain. (/home/httpd/vhosts/abc.com/conf/vhost.conf
or
/home/httpd/vhosts/abc.com/conf/vhost_ssl.conf)

<Directory /home/httpd/vhosts/abc.com>
Options Indexes FollowSymLinks
</Directory>

Indexes
If a URL which maps to a directory is requested, and there is no DirectoryIndex (e.g., index.html) in that directory, then mod_autoindex will return a formatted listing of the directory.

FollowSymLinks
The server will follow symbolic links in this directory.

If you do not use symbolic links, then you do not need to specify "FollowSymLinks"

Further info is at Apache docs:
http://httpd.apache.org/docs/2.0/mod/core.html#options

After making changes, you need to run the Plesk utility:

/usr/local/psa/admin/bin/websrvmng -u --vhost-name=abc.com

bhushan
20th September 2005, 08:26 AM
hello

in the plesk control panel,
in my domain abc.com , there is a option called file manager.
in that it shows a conf file but whenever trying to open, it gives permission denied, though
i m having adminnstrative rights.

please let me know how to open that directory to solve
my problem.

jamesyeeoc
20th September 2005, 10:57 AM
You cannot edit the conf directory contents from the control panel, you need to use SSH to connect and login as root, and edit the files that way.