[Solved] Litespeed not reading .htaccess file

optize

Well-Known Member
#1
cPanel uses the following alias:

Alias /bandwidth /usr/local/bandmin/htdocs/

/usr/local/bandmin/htdocs/.htaccess has a username/password auth

However, it's not reading it, here is the Directory listing that would apply to that directory:

<Directory "/">
Options ExecCGI IncludesNOEXEC Indexes SymLinksIfOwnerMatch
AllowOverride All
</Directory>

My apache servers which the same config work fine, so kinda odd.

Does Litespeed NOT read .htaccess files in this directory for some reason?
 

optize

Well-Known Member
#2
It looks like it's related to the virtualhost, not path.

Anything over the main server domain isn't being read by .htaccess.

Thoughts?
 

optize

Well-Known Member
#4
drwxr-xr-x 2 root wheel 4096 Nov 21 2011 /usr/local/bandmin/htdocs/
-rw-r--r-- 1 root root 93 Dec 23 2010 /usr/local/bandmin/htdocs/.htaccess
 

webizen

Well-Known Member
#9
tested in our lab:

1. subdomain (blah1.server.com) is ok. password promoted
2. alias (blah1.server.com/bandmin) is ok. password prompted.

you can enable debug logging (Admin Console => Configuration => Log => Log Level: DEBUG; Debug Level: Low)

if working, it should show something like 401 unauthorized as shown below:

2012-06-29 19:53:08.740 [NOTICE] [10.8.0.6:63420-0#APVH_test1.server.com] Content len: 0, Request line: 'GET /bandmin/style.css HTTP/1.1'
2012-06-29 19:53:08.741 [DEBUG] [10.8.0.6:63420-0#APVH_test1.server.com] Find .htaccess context with URI: [/bandmin/], location: [/usr/local/bandmin/htdocs/]
2012-06-29 19:53:08.741 [DEBUG] [10.8.0.6:63420-0#APVH_test1.server.com] [REWRITE] Rewrite engine is not enabled for context '/'
2012-06-29 19:53:08.741 [DEBUG] [10.8.0.6:63420-0#APVH_test1.server.com] processContextPath() return 0
2012-06-29 19:53:08.742 [DEBUG] [10.8.0.6:63420-0#APVH_test1.server.com] checkAuthentication() return 22
2012-06-29 19:53:08.742 [DEBUG] [10.8.0.6:63420-0#APVH_test1.server.com] processNewReq() return 22.
2012-06-29 19:53:08.742 [DEBUG] [10.8.0.6:63420-0#APVH_test1.server.com] HttpConnection::sendHttpError(),code=401 Unauthorized
2012-06-29 19:53:08.742 [DEBUG] [10.8.0.6:63420-0#APVH_test1.server.com] redirect to:
URI=[/401.shtml],
QueryString=[]
 

optize

Well-Known Member
#10
2012-07-02 09:44:35.856 [DEBUG] [x.x.x.x:39055-0#APVH_199.96.x.x_cp21.xxx.com] [REWRITE] Rewrite engine is not enabled for context '/'
 
Top