Members: 10,140
Threads: 38,830
Posts: 159,367
Online: 26

Newest Member: Xoote



Go Back   Mambers.com > Archive > Mambo 4.5 > Mambo 4.5 Installation and Upgrades

 
 
Thread Tools Display Modes
Old 07.04.2004, 20:47   #1
DamnSkippy
Junior Mamber
 
DamnSkippy's Avatar
 
Join Date: Apr 2004
Posts: 43
DamnSkippy is on a distinguished road
Default .htaccess on admin directory help

When I require a user/pass for the administrator directory using .htaccess the login dialog pops up when loading the home page. So just going to domain.xxx gets the login dialog as well as domain.xxx/administrator.

Is this because a module or something on the front page is needing to access the admin directory for some reason you think?

This is the kind of question I would normaly post in a security topic but I figured this was the closest thing to it
__________________
Do not meddle in the affairs of dragons for you are crunchy and taste good with ketchup.
DamnSkippy is offline  
Sponsored Links
Old 07.04.2004, 22:40   #2
mamboguy.com
Expert Mamber
 
mamboguy.com's Avatar
 
Join Date: Apr 2004
Location: Byron Bay, Australia
Posts: 253
mamboguy.com is on a distinguished road
Default Re: .htaccess on admin directory help

The .htaccess file must be put in the administrator folder. It sounds like it is in the root folder at the moment.
__________________
Brad Baker
Multiple Domain & Reseller Hosting
www.rochen.com
www.joomlatutorials.com
mamboguy.com is offline  
Old 07.04.2004, 23:05   #3
DamnSkippy
Junior Mamber
 
DamnSkippy's Avatar
 
Join Date: Apr 2004
Posts: 43
DamnSkippy is on a distinguished road
Default Re: .htaccess on admin directory help

Nope, thats what I thought at first also so I checked to be sure I had not messed up the "mambo" .htaccess file in the root. It is in the administrator folder and works fine except for the small problem of asking everyone to login who comes to the site LOL. I can rename it to .htaccess.bak and all is back to normal.

Thanks for the reply though.
__________________
Do not meddle in the affairs of dragons for you are crunchy and taste good with ketchup.
DamnSkippy is offline  
Old 07.04.2004, 23:07   #4
SvenErik
Senior Mamber
 
SvenErik's Avatar
 
Join Date: Apr 2004
Location: Mo i Rana, Norway (66°19'N 14°09'E)
Posts: 214
SvenErik is on a distinguished road
Default Re: .htaccess on admin directory help

I received the same problem when I tried to add a .htaccess file in the /administration/ folder. And since the .htaccess only works for the folder it is in and its subfolders, it means that something on the frontside is trying to access the /administrator/ folder.
__________________
"Every demand is a prison, and wisdom is only free when it asks nothing."
Sir Bertrand Russell
SvenErik is offline  
Old 07.04.2004, 23:10   #5
mamboguy.com
Expert Mamber
 
mamboguy.com's Avatar
 
Join Date: Apr 2004
Location: Byron Bay, Australia
Posts: 253
mamboguy.com is on a distinguished road
Default Re: .htaccess on admin directory help

Quote:
Originally Posted by SvenErik
I received the same problem when I tried to add a .htaccess file in the /administration/ folder. And since the .htaccess only works for the folder it is in and its subfolders, it means that something on the frontside is trying to access the /administrator/ folder.
Spot on.. so off you go hunting for that....
__________________
Brad Baker
Multiple Domain & Reseller Hosting
www.rochen.com
www.joomlatutorials.com
mamboguy.com is offline  
Old 07.04.2004, 23:52   #6
SvenErik
Senior Mamber
 
SvenErik's Avatar
 
Join Date: Apr 2004
Location: Mo i Rana, Norway (66°19'N 14°09'E)
Posts: 214
SvenErik is on a distinguished road
Default Re: .htaccess on admin directory help

Located the culprit! It is the mod_visitors_by_country 1.0-RC1 module for TFSforMambo. It wants to display the flag images from the /administrator/components/com_tfsformambo/flags/ folder.

I have mailed the author about it, and changed the code in the module. For others with this same problem, open /modules/mod_visitors_by_country.php and on line 61-65 change:

PHP Code:
    $content .= "<td align=\"left\"><img src=\"/administrator/components/com_tfsformambo/flags/unknown.png\"></td>";
}
else
{
    
$content .= "<td align=\"left\"><img src=\"/administrator/components/com_tfsformambo/flags/".$row[1].".png\"></td>"


to:

PHP Code:
    $content .= "<td align=\"left\"><img src=\"/components/com_tfsformambo/flags/unknown.png\"></td>";
}
else
{
    
$content .= "<td align=\"left\"><img src=\"/components/com_tfsformambo/flags/".$row[1].".png\"></td>"


You also have the same problem in the mod_visitors_detail module for TFSforMambo.
But there is at least one more...
__________________
"Every demand is a prison, and wisdom is only free when it asks nothing."
Sir Bertrand Russell
SvenErik is offline  
Old 07.04.2004, 23:53   #7
DamnSkippy
Junior Mamber
 
DamnSkippy's Avatar
 
Join Date: Apr 2004
Posts: 43
DamnSkippy is on a distinguished road
Default Re: .htaccess on admin directory help

Quote:
Originally Posted by badbaker.com
Spot on.. so off you go hunting for that....

LOL Yippie! A hunting I will go, A hunting I will go .......
__________________
Do not meddle in the affairs of dragons for you are crunchy and taste good with ketchup.
DamnSkippy is offline  
Old 07.04.2004, 23:56   #8
keliix06
Expert Mamber
 
Join Date: Mar 2004
Posts: 202
keliix06 is on a distinguished road
Send a message via MSN to keliix06
Default Re: .htaccess on admin directory help

Many components call info from the backend. Mostly for config files.
keliix06 is offline  
Old 08.04.2004, 00:05   #9
SvenErik
Senior Mamber
 
SvenErik's Avatar
 
Join Date: Apr 2004
Location: Mo i Rana, Norway (66°19'N 14°09'E)
Posts: 214
SvenErik is on a distinguished road
Default Re: .htaccess on admin directory help

True. They have access to a database, why don't they use it?

Other modules I located that I have but don't use with this problem:

mod_randompic v0.1
PHP Code:
require_once($mainframe->getCfg'absolute_path' )."/administrator/components/com_akogallery/config.akogallery.php"); 
mod_events_latest v1.11
PHP Code:
include_once("administrator/components/com_events/events_config.php"); 
mod_events_cal v1.4
PHP Code:
include_once("components/com_events/language/".$mosConfig_lang.".php"); 
and several other calls...

mod_remositoryupdatemod.php v1.00
PHP Code:
$dhtmlfile "administrator/js/dhtml.js"
__________________
"Every demand is a prison, and wisdom is only free when it asks nothing."
Sir Bertrand Russell
SvenErik is offline  
Old 08.04.2004, 15:27   #10
keliix06
Expert Mamber
 
Join Date: Mar 2004
Posts: 202
keliix06 is on a distinguished road
Send a message via MSN to keliix06
Default Re: .htaccess on admin directory help

Quote:
Originally Posted by SvenErik
True. They have access to a database, why don't they use it?
Since the config file won't be very long, it is less strain on the server to run it from a flat file.
keliix06 is offline  
 

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


All times are GMT +2. The time now is 06:53.

Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.