vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   admin folder / htaccess problem (https://vborg.vbsupport.ru/showthread.php?t=205949)

Chadi 02-19-2009 10:12 PM

admin folder / htaccess problem
 
I have a custom renamed admin folder which has been working fine since long ago and of course setup accordingly in the config file. I originally also had been using deny/allow all IP method in an .htaccess file which also worked just fine. Always allowed me in from the single allowed IP and denied from everywhere else. However, I have this strange issue that I am unable to trace.

This time, I decided to use the Apache satisfy me .htaccess method (login auth required from any non-allowed IP).

My htaccess is this:

HTML Code:

AuthUserFile "/home/username/.htpasswds/public_html/adminfolder/passwd"
AuthName "Somename"
AuthType Basic
require valid-user
Order allow,deny
Allow from xxxIPREMOVEDxxx
Satisfy any

When I use this method or just plain auth method (password protected admin folder), it always redirects me back to my home page.

The odd part is I'm using the same exact htaccess method on a couple other domains hosted on the same exact server. They all work fine there.

Dismounted 02-20-2009 03:26 AM

So when you visit the URL, it redirects you without asking for any authentication details?

Chadi 02-20-2009 03:35 AM

edit: found out it is caused by root folder vbseo htaccess rewrite rules

will contact vbseo about this

Dismounted 02-20-2009 03:38 AM

Quote:

Originally Posted by chadi (Post 1749576)
On a side note, using the above htaccess method works fine from the allowed IP. But from any other IP where it should normally ask for authentication info, that's where it redirects me to the home page.

That looks like expected behaviour. Most likely, you have set the "Authentication Required" page to your home page.


All times are GMT. The time now is 11:39 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02258 seconds
  • Memory Usage 1,713KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete