New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Comments
.htaccess
This might be helpful for you: http://viralpatel.net/blogs/htaccess-directory-listing-enable-disable-allow-deny-prevent-htaccess-directory-listing/
@varwww
i want to show forbidden page when someone try to access that directory...
let me elaborate
i want to block access to
/var/www/a/a
/var/www/a/c
/var/www/a/d
/var/www/a/e
but i want to allow access only to /var/www/a/b
@varwww
and i want to allow all other directories on different apache port like 40
create a .htaccess file in /var/www/a/b with
Make sure in /etc/apache2/sites-available/default
AllowOverride is changed from none to All
@varwww
Sir i am running web server on 2 ports for example 80 and 40
i want to block all directories except /a/b on port 80
and i want to allow all directories except /a/b on port 40
And why do you want to have such lame directory structure then?
Make directory /var/www80/ and make it the document root for the web server on port 80
Make another directory /var/www/40/ and make it the document root for the web server on port 40.
Problem solved.
I think you should ask that in http://serverfault.com/
@varwww @rds100
Thanks to both of you. Have a nice day.