View Single Post
  #2   (View Single Post)  
Old 15th May 2020
CiotBSD CiotBSD is offline
c107:b5d::
 
Join Date: Jun 2019
Location: Under /
Posts: 175
Default

Hi, I attempt to run httpd and slowcgi without rc tool, but to use option '-d', to obtain more infos (useful?):

About httpd -d:
Code:
# httpd -dvvv
startup
socket_rlimit: max open files 1024
socket_rlimit: max open files 1024
server_privinit: adding server default
socket_rlimit: max open files 1024
server_launch: configuring server default
server_launch: configuring server default
server_launch: running server default
server_launch: running server default
server_launch: configuring server default
server_launch: running server default
server default, client 1 (1 active), 127.0.0.1:37017 -> 127.0.0.1, closed
server default, client 1 (1 active), 127.0.0.1:47661 -> 127.0.0.1, closed
server default, client 2 (1 active), 127.0.0.1:23671 -> 127.0.0.1, closed
server default, client 1 (1 active), 127.0.0.1:9508 -> 127.0.0.1, closed
server default, client 3 (1 active), 127.0.0.1:31610 -> 127.0.0.1, closed
server default, client 4 (1 active), 127.0.0.1:1275 -> 127.0.0.1, closed
server default, client 2 (1 active), 127.0.0.1:38210 -> 127.0.0.1, closed
server default, client 5 (1 active), 127.0.0.1:34807 -> 127.0.0.1, closed
server default, client 6 (1 active), 127.0.0.1:7812 -> 127.0.0.1, closed
server default, client 7 (1 active), 127.0.0.1:20353 -> 127.0.0.1, closed
default 127.0.0.1 - - [15/May/2020:07:37:52 +0200] "GET /ecrit/ HTTP/1.1" 200 0
default 127.0.0.1 - - [15/May/2020:07:37:52 +0200] "GET /ecrit/ HTTP/1.1" 200 0
default 127.0.0.1 - - [15/May/2020:07:38:52 +0200] "<UNKNOWN> " 408 0
server default, client 8 (1 active), 127.0.0.1:9952 -> 127.0.0.1, timeout (408 Request Timeout)
About slowcgi -d:
Code:
# slowcgi -d
slowcgi: sock_user: www
slowcgi: socket: /var/www/run/slowcgi.sock
slowcgi: slowcgi_user: www
slowcgi: chroot: /var/www
slowcgi: inflight incremented, now 1
slowcgi: version: 1
slowcgi: type: 1
slowcgi: requestId: 1
slowcgi: contentLength: 8
slowcgi: paddingLength: 0
slowcgi: reserved: 0
slowcgi: role 1
slowcgi: flags 0
slowcgi: version: 1
slowcgi: type: 4
slowcgi: requestId: 1
slowcgi: contentLength: 821
slowcgi: paddingLength: 0
slowcgi: reserved: 0
slowcgi: env[0], PATH_INFO=/ecrit/
slowcgi: env[1], SCRIPT_NAME=
slowcgi: env[2], SCRIPT_FILENAME=/cgi-bin/stat.cgi
slowcgi: env[3], QUERY_STRING=
slowcgi: env[4], DOCUMENT_ROOT=/cgi-bin/stat.cgi
slowcgi: env[5], DOCUMENT_URI=/ecrit/
slowcgi: env[6], GATEWAY_INTERFACE=CGI/1.1
slowcgi: env[7], HTTP_ACCEPT=*/*
slowcgi: env[8], HTTP_ACCEPT_ENCODING=gzip, deflate
slowcgi: env[9], HTTP_ACCEPT_LANGUAGE=en-US,en;q=0.5
slowcgi: env[10], HTTP_CONNECTION=keep-alive
slowcgi: env[11], HTTP_DNT=1
slowcgi: env[12], HTTP_HOST=localhost:8080
slowcgi: env[13], HTTP_REFERER=http://localhost:8080/ecrit/
slowcgi: env[14], HTTP_USER_AGENT=Mozilla/5.0 (Windows NT 10.0; rv:68.0) Gecko/20100101 Firefox/68.0
slowcgi: env[15], HTTP_X_MOZ=prefetch
slowcgi: env[16], realroot=/htdocs/default/dev
slowcgi: env[17], cachecontrol=86400
slowcgi: env[18], file404=/404.html
slowcgi: env[19], realroot=/htdocs/default/dev
slowcgi: env[20], cachecontrol=86400
slowcgi: env[21], file404=/404.html
slowcgi: env[22], REMOTE_ADDR=127.0.0.1
slowcgi: env[23], REMOTE_PORT=9952
slowcgi: env[24], REQUEST_METHOD=GET
slowcgi: env[25], REQUEST_URI=/ecrit/
slowcgi: env[26], SERVER_ADDR=127.0.0.1
slowcgi: env[27], SERVER_PORT=80
slowcgi: env[28], SERVER_NAME=default
slowcgi: env[29], SERVER_PROTOCOL=HTTP/1.1
slowcgi: env[30], SERVER_SOFTWARE=OpenBSD httpd
slowcgi: version: 1
slowcgi: type: 4
slowcgi: requestId: 1
slowcgi: contentLength: 0
slowcgi: paddingLength: 0
slowcgi: reserved: 0
slowcgi: fork: /cgi-bin/stat.cgi
slowcgi: version: 1
slowcgi: type: 5
slowcgi: requestId: 1
slowcgi: contentLength: 0
slowcgi: paddingLength: 0
slowcgi: reserved: 0
slowcgi: resp version: 1
slowcgi: resp type: 6
slowcgi: resp requestId: 1
slowcgi: resp contentLength: 46
slowcgi: resp paddingLength: 2
slowcgi: resp reserved: 0
slowcgi: resp version: 1
slowcgi: resp type: 6
slowcgi: resp requestId: 1
slowcgi: resp contentLength: 226
slowcgi: resp paddingLength: 6
slowcgi: resp reserved: 0
slowcgi: resp version: 1
slowcgi: resp type: 6
slowcgi: resp requestId: 1
slowcgi: resp contentLength: 4096
slowcgi: resp paddingLength: 0
slowcgi: resp reserved: 0
slowcgi: resp version: 1
slowcgi: resp type: 6
slowcgi: resp requestId: 1
slowcgi: resp contentLength: 4096
slowcgi: resp paddingLength: 0
slowcgi: resp reserved: 0
slowcgi: resp version: 1
slowcgi: resp type: 6
slowcgi: resp requestId: 1
slowcgi: resp contentLength: 4071
slowcgi: resp paddingLength: 1
slowcgi: resp reserved: 0
slowcgi: resp version: 1
slowcgi: resp type: 6
slowcgi: resp requestId: 1
slowcgi: resp contentLength: 0
slowcgi: resp paddingLength: 0
slowcgi: resp reserved: 0
slowcgi: resp version: 1
slowcgi: resp type: 7
slowcgi: resp requestId: 1
slowcgi: resp contentLength: 0
slowcgi: resp paddingLength: 0
slowcgi: resp reserved: 0
slowcgi: wait: /cgi-bin/stat.cgi
slowcgi: resp version: 1
slowcgi: resp type: 3
slowcgi: resp requestId: 1
slowcgi: resp contentLength: 8
slowcgi: resp paddingLength: 0
slowcgi: resp reserved: 0
slowcgi: resp appStatus: 0
slowcgi: resp protocolStatus: 0
slowcgi: inflight incremented, now 1
slowcgi: version: 1
slowcgi: type: 1
slowcgi: requestId: 1
slowcgi: contentLength: 8
slowcgi: paddingLength: 0
slowcgi: reserved: 0
slowcgi: role 1
slowcgi: flags 0
slowcgi: version: 1
slowcgi: type: 4
slowcgi: requestId: 1
slowcgi: contentLength: 905
slowcgi: paddingLength: 0
slowcgi: reserved: 0
slowcgi: env[0], PATH_INFO=/ecrit/
slowcgi: env[1], SCRIPT_NAME=
slowcgi: env[2], SCRIPT_FILENAME=/cgi-bin/stat.cgi
slowcgi: env[3], QUERY_STRING=
slowcgi: env[4], DOCUMENT_ROOT=/cgi-bin/stat.cgi
slowcgi: env[5], DOCUMENT_URI=/ecrit/
slowcgi: env[6], GATEWAY_INTERFACE=CGI/1.1
slowcgi: env[7], HTTP_ACCEPT=text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
slowcgi: env[8], HTTP_ACCEPT_ENCODING=gzip, deflate
slowcgi: env[9], HTTP_ACCEPT_LANGUAGE=en-US,en;q=0.5
slowcgi: env[10], HTTP_CONNECTION=keep-alive
slowcgi: env[11], HTTP_DNT=1
slowcgi: env[12], HTTP_HOST=localhost:8080
slowcgi: env[13], HTTP_REFERER=http://localhost:8080/ecrit/
slowcgi: env[14], HTTP_UPGRADE_INSECURE_REQUESTS=1
slowcgi: env[15], HTTP_USER_AGENT=Mozilla/5.0 (Windows NT 10.0; rv:68.0) Gecko/20100101 Firefox/68.0
slowcgi: env[16], realroot=/htdocs/default/dev
slowcgi: env[17], cachecontrol=86400
slowcgi: env[18], file404=/404.html
slowcgi: env[19], realroot=/htdocs/default/dev
slowcgi: env[20], cachecontrol=86400
slowcgi: env[21], file404=/404.html
slowcgi: env[22], REMOTE_ADDR=127.0.0.1
slowcgi: env[23], REMOTE_PORT=9952
slowcgi: env[24], REQUEST_METHOD=GET
slowcgi: env[25], REQUEST_URI=/ecrit/
slowcgi: env[26], SERVER_ADDR=127.0.0.1
slowcgi: env[27], SERVER_PORT=80
slowcgi: env[28], SERVER_NAME=default
slowcgi: env[29], SERVER_PROTOCOL=HTTP/1.1
slowcgi: env[30], SERVER_SOFTWARE=OpenBSD httpd
slowcgi: version: 1
slowcgi: type: 4
slowcgi: requestId: 1
slowcgi: contentLength: 0
slowcgi: paddingLength: 0
slowcgi: reserved: 0
slowcgi: fork: /cgi-bin/stat.cgi
slowcgi: version: 1
slowcgi: type: 5
slowcgi: requestId: 1
slowcgi: contentLength: 0
slowcgi: paddingLength: 0
slowcgi: reserved: 0
slowcgi: resp version: 1
slowcgi: resp type: 6
slowcgi: resp requestId: 1
slowcgi: resp contentLength: 92
slowcgi: resp paddingLength: 4
slowcgi: resp reserved: 0
slowcgi: resp version: 1
slowcgi: resp type: 6
slowcgi: resp requestId: 1
slowcgi: resp contentLength: 180
slowcgi: resp paddingLength: 4
slowcgi: resp reserved: 0
slowcgi: resp version: 1
slowcgi: resp type: 6
slowcgi: resp requestId: 1
slowcgi: resp contentLength: 4096
slowcgi: resp paddingLength: 0
slowcgi: resp reserved: 0
slowcgi: resp version: 1
slowcgi: resp type: 6
slowcgi: resp requestId: 1
slowcgi: resp contentLength: 4096
slowcgi: resp paddingLength: 0
slowcgi: resp reserved: 0
slowcgi: resp version: 1
slowcgi: resp type: 6
slowcgi: resp requestId: 1
slowcgi: resp contentLength: 4071
slowcgi: resp paddingLength: 1
slowcgi: resp reserved: 0
slowcgi: resp version: 1
slowcgi: resp type: 6
slowcgi: resp requestId: 1
slowcgi: resp contentLength: 0
slowcgi: resp paddingLength: 0
slowcgi: resp reserved: 0
slowcgi: resp version: 1
slowcgi: resp type: 7
slowcgi: resp requestId: 1
slowcgi: resp contentLength: 0
slowcgi: resp paddingLength: 0
slowcgi: resp reserved: 0
slowcgi: wait: /cgi-bin/stat.cgi
slowcgi: resp version: 1
slowcgi: resp type: 3
slowcgi: resp requestId: 1
slowcgi: resp contentLength: 8
slowcgi: resp paddingLength: 0
slowcgi: resp reserved: 0
slowcgi: resp appStatus: 0
slowcgi: resp protocolStatus: 0
In the facts, slowcgi is called properly, but…
But no indication than help to understand why!?
no informative record/trace of returned headers!
or other relevant and useful information... really frustrating!
__________________
GPG:Fingerprint ed25519 : 072A 4DA2 8AFD 868D 74CF 9EA2 B85E 9ADA C377 5E8E
GPG:Fingerprint rsa4096 : 4E0D 4AF7 77F5 0FAE A35D 5B62 D0FF 7361 59BF 1733
Reply With Quote