Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Easyapache and auth mod

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 02-12-2018, 10:48 AM
 
Dougrun Dougrun is offline
 

X-Adept
  
Join Date: Apr 2012
Posts: 895
 

Default Easyapache and auth mod

Before switching to easyapache4, I was able to have a password prompt on a folder using .htaccess files, now XC4 overrides that and gives me a 404 page. I never even get the prompt. Should I add mod_auth_digest to EA4 or some other mod neded to enable it? I should note i'm using Cpanel.
__________________
4.7.x xcart store
Business 5.4xx
Reply With Quote
  #2  
Old 02-12-2018, 08:53 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Easyapache and auth mod

404 means "Not found" - please check that the URL matches the directory structure on the server.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #3  
Old 02-13-2018, 09:54 AM
 
Dougrun Dougrun is offline
 

X-Adept
  
Join Date: Apr 2012
Posts: 895
 

Default Re: Easyapache and auth mod

Of course it matches, its the admin folder for my xc4 shop. It used to have a .htaccess password prompt, but that no longer works.

I'm pretty sure the rewrite conditions in the main .htaccess file are preventing the password prompt from appearing, thus giving me a 404.
__________________
4.7.x xcart store
Business 5.4xx
Reply With Quote
  #4  
Old 02-13-2018, 12:15 PM
 
Dougrun Dougrun is offline
 

X-Adept
  
Join Date: Apr 2012
Posts: 895
 

Default Re: Easyapache and auth mod

I had to add
Code:
ErrorDocument 401 default

to the top of the root .htaccess file in order for it to prompt me for a username/password as expected.
__________________
4.7.x xcart store
Business 5.4xx
Reply With Quote

The following user thanks Dougrun for this useful post:
qualiteam (02-14-2018)
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:34 PM.

   

 
X-Cart forums © 2001-2020