X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Easyapache and auth mod (https://forum.x-cart.com/showthread.php?t=75978)

Dougrun 02-12-2018 10:48 AM

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.

qualiteam 02-12-2018 08:53 PM

Re: Easyapache and auth mod
 
404 means "Not found" - please check that the URL matches the directory structure on the server.

Dougrun 02-13-2018 09:54 AM

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.

Dougrun 02-13-2018 12:15 PM

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.


All times are GMT -8. The time now is 09:37 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.