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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 8th July 2013, 07: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 .

Ie,

www.domain.com/administrator
www.domain.com/joomla/administrator
www.domain.com/joomla/site2/administrator

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
  #2  
Old 8th July 2013, 09:24
abdi abdi is offline
Senior Member
 
Join Date: Sep 2012
Posts: 118
Thanks: 0
Thanked 10 Times in 6 Posts
 
Default

I think I have figured it out ...

I used:

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

Bookmarks

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 20:06
ISPConfig 3 - MultiServer Setup - With Dedicated Control Panel - How? SuperJC Installation/Configuration 4 16th October 2012 20:03
strange fail2ban behaviour > doesn't ban specific IP Djamu Server Operation 2 13th January 2012 02:29
Newb: Desperately need help to password protect a directory smartin Installation/Configuration 47 19th February 2010 18:01
How to install BFD (Brute Force Detection) domino Tips/Tricks/Mods 9 31st March 2006 22:40


All times are GMT +2. The time now is 04:10.


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