Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 8th July 2013, 08:36
abdi abdi is offline
Senior Member
Join Date: Sep 2012
Posts: 118
Thanks: 0
Thanked 10 Times in 6 Posts
Lightbulb Password Protect a Folder

Hello Everybody,

I need some help ...
Currently I am allowing authentication to the /administrator folder by (and this working fine for me):

location /administrator {
<tmpl_var name='web_document_root_www_proxy'>
index index.html index.php;
auth_basic "Members Only";
auth_basic_user_file <tmpl_var name='stats_auth_passwd_file'>;

However, the problem with that is if a user installs say Joomla in a subfolder within root eg

/joomla/ then that setting does not take effect.

I would like to take effect to any administrator folder accessed via the web regardless of the folder level .



and etc ..

ALL those should be authenticated based on my .htaccess file defined above.

Please advice me on how I can modify the above directive to support that ...
Reply With Quote
Sponsored Links
Old 8th July 2013, 10:24
abdi abdi is offline
Senior Member
Join Date: Sep 2012
Posts: 118
Thanks: 0
Thanked 10 Times in 6 Posts

I think I have figured it out ...

I used:

location ~*/(admin|administrator|wp-admin) {
Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help: protect /web (site) folder with user and password blustem General 7 22nd February 2013 21:06
ISPConfig 3 - MultiServer Setup - With Dedicated Control Panel - How? SuperJC Installation/Configuration 4 16th October 2012 21:03
strange fail2ban behaviour > doesn't ban specific IP Djamu Server Operation 2 13th January 2012 03:29
Newb: Desperately need help to password protect a directory smartin Installation/Configuration 47 19th February 2010 19:01
How to install BFD (Brute Force Detection) domino Tips/Tricks/Mods 9 31st March 2006 23:40

All times are GMT +2. The time now is 17:46.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.