1.6.5 context issue

#1
First of all, it works with any other previous version ... not sure if it's a bug or it's something you changed.

Anyway, I am using context to direct traffic to static files. The files are outside the domain root directory.

Example:

context exp: ^/f/(.*)$ {
location /virtual/web/{mydomain}/stable/tmp/images/$1
}

Log entries:

URI '/f/al/algeria_4.png' refers to a static file with PATH_INFO [/]
URI '/js/script.min.js' refers to a static file with PATH_INFO [/].

Now I am getting 404 file not found errors ... and had to revert back to previous openlitespeed version.

Thanks in advance!
 
#2
In this version, we do add more security and changed some bug in context.
It should be very easy to debug. 404 means that file can not be found.
Can you toggle the log and reproduce the error and send us that part of error log?
 
#3
2020-01-03 16:41:08.024637 [DEBUG] [40.77.167.141:10701#ycdn] processNewReqInit(): HSPS_NEW_REQ -> HSPS_HKPT_HTTP_BEGIN
2020-01-03 16:41:08.024639 [DEBUG] [40.77.167.141:10701#ycdn] [HTTP_BEGIN] run Hook function for [Module:cache] session=0x285b5b8
2020-01-03 16:41:08.024641 [DEBUG] [40.77.167.141:10701#ycdn] [HTTP_BEGIN] [Module:cache] session=0x285b5b8 ret 0
2020-01-03 16:41:08.024643 [DEBUG] [40.77.167.141:10701#ycdn] runEventHkpt(): HSPS_HKPT_HTTP_BEGIN -> HSPS_HKPT_RCVD_REQ_HEADER
2020-01-03 16:41:08.024645 [DEBUG] [40.77.167.141:10701#ycdn] runEventHkpt(): HSPS_HKPT_RCVD_REQ_HEADER -> HSPS_PROCESS_NEW_REQ_BODY
2020-01-03 16:41:08.024647 [DEBUG] [40.77.167.141:10701] NtwkIOLink::suspendRead()...
2020-01-03 16:41:08.024649 [DEBUG] [40.77.167.141:10701#ycdn] HttpSession::reqBodyDone().
2020-01-03 16:41:08.024651 [DEBUG] [40.77.167.141:10701#ycdn] reqBodyDone(): HSPS_PROCESS_NEW_REQ_BODY -> HSPS_HKPT_RCVD_REQ_BODY
2020-01-03 16:41:08.024653 [DEBUG] [40.77.167.141:10701#ycdn] processNewUri(): HSPS_PROCESS_NEW_URI -> HSPS_VHOST_REWRITE
2020-01-03 16:41:08.024655 [DEBUG] [40.77.167.141:10701#ycdn] processVHostRewrite(): HSPS_VHOST_REWRITE -> HSPS_CONTEXT_MAP
2020-01-03 16:41:08.024660 [DEBUG] [40.77.167.141:10701#ycdn] processContextMap(): HSPS_CONTEXT_MAP -> HSPS_CONTEXT_REWRITE
2020-01-03 16:41:08.024662 [DEBUG] [40.77.167.141:10701#ycdn] processContextRewrite(): HSPS_CONTEXT_REWRITE -> HSPS_HKPT_URI_MAP
2020-01-03 16:41:08.024664 [DEBUG] [40.77.167.141:10701#ycdn] preUriMap check serving by static url file cache: 0
2020-01-03 16:41:08.024666 [DEBUG] [40.77.167.141:10701#ycdn] [URI_MAP] run Hook function for [Module:cache] session=0x285b5b8
2020-01-03 16:41:08.024673 [DEBUG] [40.77.167.141:10701#ycdn] [CACHE] CacheKey data: URI [{domainname}:443/h/2014/02/michelihouse011.jpg], QS [], Vary Cookie [_lscache_vary;], Cookie [], IP [40.77.167.141]
2020-01-03 16:41:08.024676 [DEBUG] [40.77.167.141:10701#ycdn] [CACHE] Public hash, hash: [a30a6426391cfd01]
2020-01-03 16:41:08.024678 [DEBUG] [40.77.167.141:10701#ycdn] [CACHE] Private hash, hash: [7cb008bb71e5219d]
2020-01-03 16:41:08.024696 [DEBUG] [40.77.167.141:10701#ycdn] [Module:Cache]checkAssignHandler lookUpCache, myData 0x27f0990 entry (nil) state 0.
2020-01-03 16:41:08.024699 [DEBUG] [40.77.167.141:10701#ycdn] [Module:Cache]checkAssignHandler Add Hooks.
2020-01-03 16:41:08.024701 [DEBUG] [40.77.167.141:10701#ycdn] [URI_MAP] [Module:cache] session=0x285b5b8 ret 0
2020-01-03 16:41:08.024703 [DEBUG] [40.77.167.141:10701#ycdn] runEventHkpt(): HSPS_HKPT_URI_MAP -> HSPS_FILE_MAP
2020-01-03 16:41:08.024705 [DEBUG] [40.77.167.141:10701#ycdn] runEventHkpt(): HSPS_FILE_MAP -> HSPS_FILE_MAP
2020-01-03 16:41:08.024725 [INFO] [40.77.167.141:10701] URI '/h/2014/02/michelihouse011.jpg' refers to a static file with PATH_INFO [/].
2020-01-03 16:41:08.024728 [DEBUG] [40.77.167.141:10701#ycdn] processContextPath() returned 26.
2020-01-03 16:41:08.024730 [DEBUG] [40.77.167.141:10701#ycdn] processFileMap(): HSPS_FILE_MAP -> HSPS_CHECK_AUTH_ACCESS
2020-01-03 16:41:08.024732 [DEBUG] [40.77.167.141:10701#ycdn] processContextAuth(): HSPS_CHECK_AUTH_ACCESS -> HSPS_HKPT_HTTP_AUTH
2020-01-03 16:41:08.024734 [DEBUG] [40.77.167.141:10701#ycdn] runEventHkpt(): HSPS_HKPT_HTTP_AUTH -> HSPS_AUTH_DONE
2020-01-03 16:41:08.024736 [DEBUG] [40.77.167.141:10701#ycdn] smProcessReq(): HSPS_AUTH_DONE -> (null)
2020-01-03 16:41:08.024738 [DEBUG] [40.77.167.141:10701#ycdn] HttpSession::sendHttpError(), code = '404 Not Found

------

please check
 
Top