Question
Hello,
I configured twiki with .htaccess. I have two issues. FYI...I am able to restrict view page for the authentication but not configure page.
I restricted the view page from lib/LocaSite.cfg, but wasn't able to restrict configure from there.
1. I am unable to restrict configure from the browser for the outside world. it is viewable to all the users, i want to restrict it by asking for authentication. how i can achieve it?
- I have made the changes in .htaccess to restrict the files as "configure"
SetHandler cgi-script
Order Deny,Allow
Deny from all
Allow from all
Require user admin
Satisfy Any
also the htpasswd is at the correct location.
Whenever somebody access configure page it should ask for the authentication, so how I can accomplish?
2. I have redirected /var/html/index.html to view page using symlink but when I access my host in the browser
http://www.teno.com
it opens up the view script in the browser instead of going to the view page and asking for authentication as I have restricted view page as well. I also tried in the root in .htaccess with Redirect command but is not working.
cd /var/www/html
ln -s /var/www/cgi-bin/bin/view index.html
Any help would be highly appreciated
Environment
--
MubashirAnsari - 21 Feb 2008
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
hello, i have resolved this. it was because i made a mistake in httpd.conf and due to some reason overwritten it disabling .htaccess. After enabling it again by replacing
AllowOverride to All i was able to accomplish the security.. Thank you
--
MubashirAnsari - 24 Feb 2008