FastCGI server works when referenced externally but returns 403 when daemonized by litespeed

#1
Hey all! Just have a head-scratcher here and can't seem to figure it out.

I've coded a fastcgi server that works just fine when *not* started by litespeed. But of course my plan with this little application is to have it serve many different hosts, and so multiple instances of it might be useful down the line. Also, for security purposes, this would allow it to have a SuEXEC mode for each vhost with chroot so it would be really good for security.

There is also a script handler routes ".ts" files to it.

Below is the external app configuration when started externally. The notes are what changes when it doesn't work (start by server).


fcgi1.jpg

Here is just a demonstration that the command works on both root user and the cginode.pmw.ltd user (which if I understand it correctly, is the one running the fastcgi app in this case)
Screenshot 2021-09-27 at 11.37.45.png


It says there is a 10,000 character limit per post so I'm going to reply below with the debug logs:
 
#2
Here is the debug log when it doesn't work (no fcgi server started externally, but the setting for litespeed to daemonize it is set to on). Returns 403:

Code:
2021-09-27 15:19:04.391451 [DEBUG] [60713] [T0] [70.29.143.254:54527#cginode.pmw.ltd] [CACHE] Assign vhost level cache store, cache root: /home/cginode.pmw.ltd/www/lscache/
2021-09-27 15:19:04.391453 [DEBUG] [60713] [T0] [70.29.143.254:54527#cginode.pmw.ltd] [CACHE] Early lookup, cache config: 0x18fdd50, private: 8, public: 4
2021-09-27 15:19:04.391455 [DEBUG] [60713] [T0] [70.29.143.254:54527#cginode.pmw.ltd] [CACHE] isPageCached() lookup mode: 1, Store: 0x18fed60, CacheManager: 0x18fdec0
2021-09-27 15:19:04.391460 [DEBUG] [60713] [T0] [70.29.143.254:54527#cginode.pmw.ltd] [CACHE] apply cache vary cookie: [],
2021-09-27 15:19:04.391462 [DEBUG] [60713] [T0] [70.29.143.254:54527#cginode.pmw.ltd] [CACHE] private cookie: [_ga=GA1.1.643677563.1631962551;_ga_81DE307PCF=GS1.1.1632134911.4.1.1632134917.0;],
2021-09-27 15:19:04.391469 [DEBUG] [60713] [T0] [70.29.143.254:54527#cginode.pmw.ltd] [CACHE] CacheKey data: URI [/test.ts], QS [], Vary Cookie [], Private Cookie [_ga=GA1.1.643677563.1631962551;_ga_81DE307PCF=GS1.1.1632134911.4.1.1632134917.0;], IP [70.29.143.254]
2021-09-27 15:19:04.391471 [DEBUG] [60713] [T0] [70.29.143.254:54527#cginode.pmw.ltd] [CACHE] For purge by URL (include QS), hash: [6a6a275988562e24]
2021-09-27 15:19:04.391473 [DEBUG] [60713] [T0] [70.29.143.254:54527#cginode.pmw.ltd] [CACHE] Public Hash: [6a6a275988562e24], Private Hash: [1432203de535d51c]
2021-09-27 15:19:04.391477 [DEBUG] [60713] [T0] [70.29.143.254:54527#cginode.pmw.ltd] processVHostRewrite(): HSPS_PROCESS_NEW_URI -> HSPS_CONTEXT_MAP
2021-09-27 15:19:04.391480 [DEBUG] [60713] [T0] [70.29.143.254:54527#cginode.pmw.ltd] Find context 0x18f7a30 with URI: [/], location: [/home/cginode.pmw.ltd/www/public_html/], handler: [static:static]
2021-09-27 15:19:04.391482 [DEBUG] [60713] [T0] [70.29.143.254:54527#cginode.pmw.ltd] Check .htaccess: 1
2021-09-27 15:19:04.391499 [DEBUG] [60713] [T0] [HTAccess] Updating configuration file [/home/cginode.pmw.ltd/www/public_html/.htaccess]
2021-09-27 15:19:04.391510 [DEBUG] [60713] [T0] [HTAccess] No change in configuration file [/home/cginode.pmw.ltd/www/public_html/.htaccess].
2021-09-27 15:19:04.391517 [DEBUG] [60713] [T0] [70.29.143.254:54527#cginode.pmw.ltd] Matched HTA cache of [/] by URL [/test.ts] to context [/]
2021-09-27 15:19:04.391518 [DEBUG] [60713] [T0] [70.29.143.254:54527#cginode.pmw.ltd] Find .htaccess context with URI: [/], location: [/home/cginode.pmw.ltd/www/public_html/]
2021-09-27 15:19:04.391520 [DEBUG] [60713] [T0] [70.29.143.254:54527#cginode.pmw.ltd] processContext() returned 0.
2021-09-27 15:19:04.391522 [DEBUG] [60713] [T0] [70.29.143.254:54527#cginode.pmw.ltd] processContextMap(): HSPS_CONTEXT_MAP -> HSPS_HKPT_URI_MAP
2021-09-27 15:19:04.391523 [DEBUG] [60713] [T0] [70.29.143.254:54527#cginode.pmw.ltd] Run State: HSPS_HKPT_URI_MAP
2021-09-27 15:19:04.391524 [DEBUG] [60713] [T0] [70.29.143.254:54527#cginode.pmw.ltd] runEventHkpt(): HSPS_HKPT_URI_MAP -> HSPS_FILE_MAP
2021-09-27 15:19:04.391530 [DEBUG] [60713] [T0] [70.29.143.254:54527#cginode.pmw.ltd] Map suffix [ts] to MIME [application/x-httpd-ts] in context: /
2021-09-27 15:19:04.391532 [ERROR] [60713] [T0] [70.29.143.254:54527#cginode.pmw.ltd] MIME type [application/x-httpd-ts] for suffix '.ts' does not allow serving as static file, access denied!
2021-09-27 15:19:04.391534 [NOTICE] [60713] [T0] [70.29.143.254:54527#cginode.pmw.ltd] Content len: 0, Request line: 'GET /test.ts HTTP/1.1'
2021-09-27 15:19:04.391535 [INFO] [60713] [T0] [70.29.143.254:54527#cginode.pmw.ltd] Cookie len: 80, _ga=GA1.1.643677563.1631962551; _ga_81DE307PCF=GS1.1.1632134911.4.1.1632134917.0
2021-09-27 15:19:04.391538 [DEBUG] [60713] [T0] [70.29.143.254:54527#cginode.pmw.ltd] Add UriInfo 0x1c06120 [/test.ts] to cache.
2021-09-27 15:19:04.391539 [DEBUG] [60713] [T0] [70.29.143.254:54527#cginode.pmw.ltd] processContextPath() return 25
2021-09-27 15:19:04.391541 [DEBUG] [60713] [T0] [70.29.143.254:54527#cginode.pmw.ltd] smProcessReq(): HSPS_FILE_MAP -> HSPS_HTTP_ERROR
2021-09-27 15:19:04.391542 [DEBUG] [60713] [T0] [70.29.143.254:54527#cginode.pmw.ltd] HttpSession::sendHttpError(),code=403 Forbidden
2021-09-27 15:19:04.391552 [DEBUG] [60713] [T0] [70.29.143.254:54527#cginode.pmw.ltd] sendRespHeaders()
2021-09-27 15:19:04.391555 [DEBUG] [60713] [T0] [70.29.143.254:54527#cginode.pmw.ltd] HIO_FLAG_ALTSVC_SENT: 0, user-agent-type: 1, vhost QUIC: 1
2021-09-27 15:19:04.391560 [DEBUG] [60713] [T0] [70.29.143.254:54527#cginode.pmw.ltd] vhostmap->altsvc: 0x18975f8, len: 0
2021-09-27 15:19:04.391562 [DEBUG] [60713] [T0] [70.29.143.254:54527#cginode.pmw.ltd] Resp headers, total: 7, removed: 1, unique:6, has hole: 0, buffer size: 193
2021-09-27 15:19:04.391564 [DEBUG] [60713] [T0] [70.29.143.254:54527#cginode.pmw.ltd]     cache-control: private, no-cache, no-store, must-revalidate, max-age=0
2021-09-27 15:19:04.391566 [DEBUG] [60713] [T0] [70.29.143.254:54527#cginode.pmw.ltd]     pragma: no-cache
2021-09-27 15:19:04.391567 [DEBUG] [60713] [T0] [70.29.143.254:54527#cginode.pmw.ltd]     content-type: text/html
2021-09-27 15:19:04.391569 [DEBUG] [60713] [T0] [70.29.143.254:54527#cginode.pmw.ltd]     content-length: 1229
2021-09-27 15:19:04.391570 [DEBUG] [60713] [T0] [70.29.143.254:54527#cginode.pmw.ltd]     date: Mon, 27 Sep 2021 15:19:04 GMT
2021-09-27 15:19:04.391571 [DEBUG] [60713] [T0] [70.29.143.254:54527#cginode.pmw.ltd]     server: LiteSpeed
2021-09-27 15:19:04.391604 [DEBUG] [60713] [T0] [70.29.143.254:54527#cginode.pmw.ltd] writeRespBody() sent: 1229
2021-09-27 15:19:04.391606 [DEBUG] [60713] [T0] [70.29.143.254:54527#cginode.pmw.ltd] endResponse( 2 )
2021-09-27 15:19:04.391607 [DEBUG] [60713] [T0] [70.29.143.254:54527#cginode.pmw.ltd] endResponseInternal()
2021-09-27 15:19:04.391609 [DEBUG] [60713] [T0] [70.29.143.254:54527#cginode.pmw.ltd] mark COMPLETE.
2021-09-27 15:19:04.391614 [DEBUG] [60713] [T0] [70.29.143.254:54527#cginode.pmw.ltd] HttpSession::nextRequest()!
2021-09-27 15:19:04.391617 [DEBUG] [60713] [T0] [70.29.143.254:54527#cginode.pmw.ltd] [MODSEC] skipped LOG_PHASE: SubReq: 0, engine off: 0, runtime: (nil), need phase: 0
2021-09-27 15:19:04.391618 [DEBUG] [60713] [T0] [70.29.143.254:54527#cginode.pmw.ltd] Log access, vhost: 0x18ed230, cancelled: 0.
2021-09-27 15:19:04.391621 [DEBUG] [60713] [T0] [70.29.143.254:54527#cginode.pmw.ltd] Log access to 0x18ebfd0->[/usr/local/lsws/logs/cginode.pmw.ltd.access.log].
2021-09-27 15:19:04.391629 [DEBUG] [60713] [T0] Append to 0x18ebfd0->[/usr/local/lsws/logs/cginode.pmw.ltd.access.log] 207 bytes.
Host: cginode.pmw.ltd
2021-09-27 15:19:04.842422 [DEBUG] [60713] [T0] [70.29.143.254:54527-1#cginode.pmw.ltd] userProxyHeader: 2, trust IP: 0
2021-09-27 15:19:04.842426 [DEBUG] [60713] [T0] [70.29.143.254:54527-1#cginode.pmw.ltd] [RECAPITCHA] Disabled at server level, skip recaptcha.
2021-09-27 15:19:04.842432 [DEBUG] [60713] [T0] [70.29.143.254:54527-1#cginode.pmw.ltd] matchedVhost(): HSPS_NEW_REQ -> HSPS_HKPT_HTTP_BEGIN
2021-09-27 15:19:04.842435 [DEBUG] [60713] [T0] [70.29.143.254:54527-1#cginode.pmw.ltd] runEventHkpt(): HSPS_HKPT_HTTP_BEGIN -> HSPS_HKPT_RCVD_REQ_HEADER
2021-09-27 15:19:04.842437 [DEBUG] [60713] [T0] [70.29.143.254:54527-1#cginode.pmw.ltd] runEventHkpt(): HSPS_HKPT_RCVD_REQ_HEADER -> HSPS_TRY_FINISH_REQ_BODY
2021-09-27 15:19:04.842443 [DEBUG] [60713] [T0] [70.29.143.254:54527-1#cginode.pmw.ltd] reqBodyDone(): HSPS_TRY_FINISH_REQ_BODY -> HSPS_HKPT_RCVD_REQ_BODY
2021-09-27 15:19:04.842445 [DEBUG] [60713] [T0] [70.29.143.254:54527-1#cginode.pmw.ltd] runEventHkpt(): HSPS_HKPT_RCVD_REQ_BODY -> HSPS_PROCESS_NEW_URI
2021-09-27 15:19:04.842449 [DEBUG] [60713] [T0] [70.29.143.254:54527-1#cginode.pmw.ltd] Found UriInfo 0x1c06120 for [/test.ts]
2021-09-27 15:19:04.842451 [DEBUG] [60713] [T0] [70.29.143.254:54527-1#cginode.pmw.ltd] [RECAPTCHA] UriInfo: 0x1c06120, hits: 0, accessed 0 seconds ago.
2021-09-27 15:19:04.842458 [DEBUG] [60713] [T0] [70.29.143.254:54527-1#cginode.pmw.ltd] Shortcut to error page: 25.
2021-09-27 15:19:04.842461 [DEBUG] [60713] [T0] [70.29.143.254:54527-1#cginode.pmw.ltd] smProcessReq(): HSPS_PROCESS_NEW_URI -> HSPS_HTTP_ERROR
2021-09-27 15:19:04.842463 [DEBUG] [60713] [T0] [70.29.143.254:54527-1#cginode.pmw.ltd] HttpSession::sendHttpError(),code=403 Forbidden
2021-09-27 15:19:04.842473 [DEBUG] [60713] [T0] [70.29.143.254:54527-1#cginode.pmw.ltd] sendRespHeaders()
2021-09-27 15:19:04.842477 [DEBUG] [60713] [T0] [70.29.143.254:54527-1#cginode.pmw.ltd] HIO_FLAG_ALTSVC_SENT: 1048576, user-agent-type: 1, vhost QUIC: 1
2021-09-27 15:19:04.842480 [DEBUG] [60713] [T0] [70.29.143.254:54527-1#cginode.pmw.ltd] Resp headers, total: 7, removed: 1, unique:6, has hole: 0, buffer size: 193
2021-09-27 15:19:04.842483 [DEBUG] [60713] [T0] [70.29.143.254:54527-1#cginode.pmw.ltd]     cache-control: private, no-cache, no-store, must-revalidate, max-age=0
2021-09-27 15:19:04.842484 [DEBUG] [60713] [T0] [70.29.143.254:54527-1#cginode.pmw.ltd]     pragma: no-cache
2021-09-27 15:19:04.842486 [DEBUG] [60713] [T0] [70.29.143.254:54527-1#cginode.pmw.ltd]     content-type: text/html
2021-09-27 15:19:04.842488 [DEBUG] [60713] [T0] [70.29.143.254:54527-1#cginode.pmw.ltd]     content-length: 1229
2021-09-27 15:19:04.842490 [DEBUG] [60713] [T0] [70.29.143.254:54527-1#cginode.pmw.ltd]     date: Mon, 27 Sep 2021 15:19:04 GMT
2021-09-27 15:19:04.842492 [DEBUG] [60713] [T0] [70.29.143.254:54527-1#cginode.pmw.ltd]     server: LiteSpeed
2021-09-27 15:19:04.842531 [DEBUG] [60713] [T0] [70.29.143.254:54527-1#cginode.pmw.ltd] writeRespBody() sent: 1229
(too much text... await next reply)
 
#3
And here is the debug log for when it *does* work, when the fcgi server is running externally and there is no 'start by server' setting.

Code:
... cache stuff, removing for 10,000 char limit in post ...
.255717 [70.29.143.254:55719#cginode.pmw.ltd] processVHostRewrite(): HSPS_PROCESS_NEW_URI -> HSPS_CONTEXT_MAP
.255721 [70.29.143.254:55719#cginode.pmw.ltd] Find context 0x2876ec0 with URI: [/], location: [/home/cginode.pmw.ltd/www/public_html/], handler: [static:static]
.255723 [70.29.143.254:55719#cginode.pmw.ltd] Check .htaccess: 1
.255724 [70.29.143.254:55719#cginode.pmw.ltd] Matched HTA cache of [/] by URL [/test.ts] to context [/]
.255725 [70.29.143.254:55719#cginode.pmw.ltd] Find .htaccess context with URI: [/], location: [/home/cginode.pmw.ltd/www/public_html/]
.255726 [70.29.143.254:55719#cginode.pmw.ltd] processContext() returned 0.
.255728 [70.29.143.254:55719#cginode.pmw.ltd] processContextMap(): HSPS_CONTEXT_MAP -> HSPS_HKPT_URI_MAP
.255729 [70.29.143.254:55719#cginode.pmw.ltd] Run State: HSPS_HKPT_URI_MAP
.255730 [70.29.143.254:55719#cginode.pmw.ltd] runEventHkpt(): HSPS_HKPT_URI_MAP -> HSPS_FILE_MAP
.255742 [70.29.143.254:55719#cginode.pmw.ltd] Map suffix [ts] to MIME [application/x-httpd-ts] in context: /
.255745 [70.29.143.254:55719#cginode.pmw.ltd] Find handler [CGI Deno] for [.ts]
.255746 [70.29.143.254:55719#cginode.pmw.ltd] Add UriInfo 0x2961240 [/test.ts] to cache.
.255748 [70.29.143.254:55719#cginode.pmw.ltd] processContextPath() return 0
.255750 [70.29.143.254:55719#cginode.pmw.ltd] processFileMap(): HSPS_FILE_MAP -> HSPS_TEST_MODSEC
.255751 [70.29.143.254:55719#cginode.pmw.ltd] [CACHE] tryCacheHandler()
.255752 [70.29.143.254:55719#cginode.pmw.ltd] [CACHE] HTAContext CacheConfig bits: f404f
.255753 [70.29.143.254:55719#cginode.pmw.ltd] [CACHE] cacheConfig: 0x287c2c0, lookupMode: 4
.255755 [70.29.143.254:55719#cginode.pmw.ltd] [CACHE] isPageCached() lookup mode: 4, Store: 0x2875e90, CacheManager: 0x287c430
.255756 [70.29.143.254:55719#cginode.pmw.ltd] [CACHE] apply cache vary cookie: [],
.255757 [70.29.143.254:55719#cginode.pmw.ltd] [CACHE] private cookie: [_ga=GA1.1.643677563.1631962551;_ga_81DE307PCF=GS1.1.1632134911.4.1.1632134917.0;],
.25579 [70.29.143.254:55719#cginode.pmw.ltd] [CACHE] CacheKey data: URI [/test.ts], QS [], Vary Cookie [], Private Cookie[_ga=GA1.1.643677563.1631962551;_ga_81DE307PCF=GS1.1.1632134911.4.1.1632134917.0;], IP [70.29.143.254]
.255762 [70.29.143.254:55719#cginode.pmw.ltd] [CACHE] For purge by URL (include QS), hash: [6a6a275988562e24]
.255763 [70.29.143.254:55719#cginode.pmw.ltd] [CACHE] Public Hash: [6a6a275988562e24], Private Hash: [1432203de535d51c]
.255765 [70.29.143.254:55719#cginode.pmw.ltd] [CACHE] HttpReq::lookupCache(), hash: [6a6a275988562e24]
.255766 [70.29.143.254:55719#cginode.pmw.ltd] [CACHE] Add brotli vary, vary: 2, hash: [3a4c1c12446f105a]
.255783 [70.29.143.254:55719#cginode.pmw.ltd] testModSecReqHeaderPhase(): HSPS_TEST_MODSEC -> HSPS_CHECK_AUTH_ACCESS
.255785 [70.29.143.254:55719#cginode.pmw.ltd] checkAuthAccess(): HSPS_CHECK_AUTH_ACCESS -> HSPS_HKPT_HTTP_AUTH
.255787 [70.29.143.254:55719#cginode.pmw.ltd] Run State: HSPS_HKPT_HTTP_AUTH
.255789 [70.29.143.254:55719#cginode.pmw.ltd] runEventHkpt(): HSPS_HKPT_HTTP_AUTH -> HSPS_AUTH_DONE
.255791 [70.29.143.254:55719#cginode.pmw.ltd] authAccessDone(): HSPS_AUTH_DONE -> HSPS_BEGIN_HANDLER_PROCESS
.255793 [70.29.143.254:55719#cginode.pmw.ltd] handlerProcess(): HSPS_BEGIN_HANDLER_PROCESS -> HSPS_HANDLER_PROCESSING
.255800 [70.29.143.254:55719#cginode.pmw.ltd] run fcgi processor.
.255814 [127.0.0.1:8989] request [70.29.143.254:55719#cginode.pmw.ltd:fcgi] is assigned with connection [0x2962270]!
.255822 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] [ExtConn] reconnect()
.255918 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] [ExtConn] connecting to [127.0.0.1:8989]...
.255933 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] ExtConn::onWrite()
.255939 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] connected to [127.0.0.1:8989] on local addres [127.0.0.1:44880]!
.255940 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] FcgiConnection::doWrite()
.255942 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] FcgiConnection::beginRequest()
.255952 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] FcgiConnection::pendingWrite(),m_iCurStreamHeader=16
.255953 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] request header is done
.255955 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] FcgiConnection::beginReqBody()
.255956 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] FcgiConnection::pendingEndStream()
.255957 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] Request body done!
.255958 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] FcgiConnection::endOfReqBody()
.255959 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] FcgiConnection::pendingEndStream()
.255959 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] FcgiConnection::flush()
.255977 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] FcgiConnection::suspendWrite()
.255979 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] ExtConn::onEventDone(), fd: 45, state: 4, event: 4, revents: 4.
.841831 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] ExtConn::onRead(), state: 4
.841835 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] FcgiConnection::doRead()
.841849 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] read 48 bytes from Fast CGI.
.841852 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] process STDOUT 40 bytes
.841857 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] Response Header: 'status: 200'
.841863 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] Response Header: 'content-type: text/html'
.841898 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] Response content type: [text/html], pMIME: 0x27fbca0
.841901 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] response header finished!
.841904 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] [MODSEC] skipped RESP_HDR_PHASE: SubReq: 0, cleared: 0, runtime: (nil), need phase: 0
.841908 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] ExtConn::onEventDone(), fd: 45, state: 4, event: 1, revents: 0.
.841933 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] ExtConn::onRead(), state: 4
.841935 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] FcgiConnection::doRead()
.841941 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] read 72 bytes from Fast CGI.
.841942 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] process STDOUT 40 bytes
.841945 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] HttpExtConnector::processRespBodyData( 40 )
.841983 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] [CACHE] prepare page cache
.842003 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] [CACHE] is PUBLIC, max age: 240.
.842009 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] [CACHE] apply cache vary cookie: [],
.842014 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] [CACHE] CacheKey data: URI [/test.ts], QS [], Vary Cookie [], Private Cookie [], IP [(null)]
.842018 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] [CACHE] For purge by URL (include QS), hash: [6a6a275988562e24]
.842021 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] [CACHE] create cache, vary: 0, hash: [6a6a275988562e24]
.842609 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] [CACHE] Created entry: 0x295adb0.
.842621 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] [CACHE] create cache ETAG: "1-1632756237;;;".
.843226 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] gzip flag: 3
.843228 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] GZIP compress response body!
.843328 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] initZbuf() begin stream.
.843355 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] Append dyn resp body: 40 bytes, current buffer size: 10.
.843378 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] [EXT] EndResponse( endCode=0, protocolStatus=0 )
.843380 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] release ExtProcessor!
.843386 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] endResponse( 1 )
.843389 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] endResponseInternal()
.843445 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] endResponse() end Zbuf stream.
.843569 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] HttpSession::flush()!
.843572 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] sendRespHeaders()
.843579 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] HIO_FLAG_ALTSVC_SENT: 0, user-agent-type: 1, vhost QUIC: 1
.843581 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] vhostmap->altsvc: 0x28155a8, len: 0
.843583 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] Resp headers, total: 9, removed: 1, unique:8, has hole: 0, buffer size: 198
.843584 [70.29.143.254:55719#cginode.pmw.ltd:fcgi]     content-type: text/html
.843586 [70.29.143.254:55719#cginode.pmw.ltd:fcgi]     etag: "1-1632756237;gz"
.843604 [70.29.143.254:55719#cginode.pmw.ltd:fcgi]     x-litespeed-cache: miss
.843605 [70.29.143.254:55719#cginode.pmw.ltd:fcgi]     content-length: 53
.843606 [70.29.143.254:55719#cginode.pmw.ltd:fcgi]     content-encoding: gzip
.843607 [70.29.143.254:55719#cginode.pmw.ltd:fcgi]     vary: Accept-Encoding
.843608 [70.29.143.254:55719#cginode.pmw.ltd:fcgi]     date: Mon, 27 Sep 2021  GMT
.843609 [70.29.143.254:55719#cginode.pmw.ltd:fcgi]     server: LiteSpeed
.843612 [70.29.143.254:55719#cginode.pmw.ltd:fcgi] writeRespBody() dynamic body to send: 53
 

NiteWave

Administrator
#4
I think the issue can be simplified as :
when "Start By Server" set to "No", it succeeds.
when "Start By Server" set to "Yes", failed to set up when lsws start up, so "403 Forbidden" error.
you can check the initial error logs when lsws start up, it should have something about the failure.
 
Top