Welcome! Log In Create A New Profile

Advanced

"Status: 403 Forbidden" cvsweb

Posted by asylum71 
"Status: 403 Forbidden" cvsweb
September 21, 2016 12:12AM
Hello,

I have been trying to get cvsweb to work with nginx on my server. I have gotten most of the way there, but this last issue has me stumped. When cvsweb issues a 301 redirect I get "403 Forbidden".


/var/log/nginx/error.log (debug):


2016/09/21 04:05:45 [debug] 21497#0: post event 0000000000AFCF10
2016/09/21 04:05:45 [debug] 21497#0: delete posted event 0000000000AFCF10
2016/09/21 04:05:45 [debug] 21497#0: accept on 0.0.0.0:80, ready: 0
2016/09/21 04:05:45 [debug] 21497#0: posix_memalign: 0000000000AD9D30:256 @16
2016/09/21 04:05:45 [debug] 21497#0: *10 accept: 192.168.213.162 fd:12
2016/09/21 04:05:45 [debug] 21497#0: posix_memalign: 0000000000AE82A0:256 @16
2016/09/21 04:05:45 [debug] 21497#0: *10 event timer add: 12: 60000:1474430805526
2016/09/21 04:05:45 [debug] 21497#0: *10 reusable connection: 1
2016/09/21 04:05:45 [debug] 21497#0: *10 epoll add event: fd:12 op:1 ev:80002001
2016/09/21 04:05:45 [debug] 21497#0: post event 0000000000AFCF10
2016/09/21 04:05:45 [debug] 21497#0: delete posted event 0000000000AFCF10
2016/09/21 04:05:45 [debug] 21497#0: accept on 0.0.0.0:80, ready: 0
2016/09/21 04:05:45 [debug] 21497#0: posix_memalign: 0000000000ABE760:256 @16
2016/09/21 04:05:45 [debug] 21497#0: *11 accept: 192.168.213.162 fd:13
2016/09/21 04:05:45 [debug] 21497#0: posix_memalign: 0000000000ABE870:256 @16
2016/09/21 04:05:45 [debug] 21497#0: *11 event timer add: 13: 60000:1474430805526
2016/09/21 04:05:45 [debug] 21497#0: *11 reusable connection: 1
2016/09/21 04:05:45 [debug] 21497#0: *11 epoll add event: fd:13 op:1 ev:80002001
2016/09/21 04:05:45 [debug] 21497#0: *10 post event 0000000000AFD0B0
2016/09/21 04:05:45 [debug] 21497#0: *10 delete posted event 0000000000AFD0B0
2016/09/21 04:05:45 [debug] 21497#0: *10 http wait request handler
2016/09/21 04:05:45 [debug] 21497#0: *10 malloc: 0000000000AEE2D0:1024
2016/09/21 04:05:45 [debug] 21497#0: *10 recv: fd:12 394 of 1024
2016/09/21 04:05:45 [debug] 21497#0: *10 reusable connection: 0
2016/09/21 04:05:45 [debug] 21497#0: *10 posix_memalign: 0000000000ACC050:4096 @16
2016/09/21 04:05:45 [debug] 21497#0: *10 http process request line
2016/09/21 04:05:45 [debug] 21497#0: *10 http request line: "GET /cgi-bin/cvsweb/ HTTP/1.1"
2016/09/21 04:05:45 [debug] 21497#0: *10 http uri: "/cgi-bin/cvsweb/"
2016/09/21 04:05:45 [debug] 21497#0: *10 http args: ""
2016/09/21 04:05:45 [debug] 21497#0: *10 http exten: ""
2016/09/21 04:05:45 [debug] 21497#0: *10 posix_memalign: 0000000000AC2CA0:4096 @16
2016/09/21 04:05:45 [debug] 21497#0: *10 http process request header line
2016/09/21 04:05:45 [debug] 21497#0: *10 http header: "Host: 192.168.213.186"
2016/09/21 04:05:45 [debug] 21497#0: *10 http header: "Connection: keep-alive"
2016/09/21 04:05:45 [debug] 21497#0: *10 http header: "Upgrade-Insecure-Requests: 1"
2016/09/21 04:05:45 [debug] 21497#0: *10 http header: "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36"
2016/09/21 04:05:45 [debug] 21497#0: *10 http header: "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8"
2016/09/21 04:05:45 [debug] 21497#0: *10 http header: "Accept-Encoding: gzip, deflate, sdch"
2016/09/21 04:05:45 [debug] 21497#0: *10 http header: "Accept-Language: en-US,en;q=0.8"
2016/09/21 04:05:45 [debug] 21497#0: *10 http header done
2016/09/21 04:05:45 [debug] 21497#0: *10 event timer del: 12: 1474430805526
2016/09/21 04:05:45 [debug] 21497#0: *10 generic phase: 0
2016/09/21 04:05:45 [debug] 21497#0: *10 rewrite phase: 1
2016/09/21 04:05:45 [debug] 21497#0: *10 test location: "/"
2016/09/21 04:05:45 [debug] 21497#0: *10 test location: "cgi-bin/"
2016/09/21 04:05:45 [debug] 21497#0: *10 test location: ~ "\.php$"
2016/09/21 04:05:45 [debug] 21497#0: *10 using configuration "/cgi-bin/"
2016/09/21 04:05:45 [debug] 21497#0: *10 http cl:-1 max:1048576
2016/09/21 04:05:45 [debug] 21497#0: *10 rewrite phase: 3
2016/09/21 04:05:45 [debug] 21497#0: *10 post rewrite phase: 4
2016/09/21 04:05:45 [debug] 21497#0: *10 generic phase: 5
2016/09/21 04:05:45 [debug] 21497#0: *10 generic phase: 6
2016/09/21 04:05:45 [debug] 21497#0: *10 generic phase: 7
2016/09/21 04:05:45 [debug] 21497#0: *10 access phase: 8
2016/09/21 04:05:45 [debug] 21497#0: *10 access phase: 9
2016/09/21 04:05:45 [debug] 21497#0: *10 access phase: 10
2016/09/21 04:05:45 [debug] 21497#0: *10 access phase: 11
2016/09/21 04:05:45 [debug] 21497#0: *10 post access phase: 12
2016/09/21 04:05:45 [debug] 21497#0: *10 try files phase: 13
2016/09/21 04:05:45 [debug] 21497#0: *10 http init upstream, client timer: 0
2016/09/21 04:05:45 [debug] 21497#0: *10 epoll add event: fd:12 op:3 ev:80002005
2016/09/21 04:05:45 [debug] 21497#0: *10 http script copy: "QUERY_STRING"
2016/09/21 04:05:45 [debug] 21497#0: *10 fastcgi param: "QUERY_STRING: "
2016/09/21 04:05:45 [debug] 21497#0: *10 http script copy: "REQUEST_METHOD"
2016/09/21 04:05:45 [debug] 21497#0: *10 http script var: "GET"
2016/09/21 04:05:45 [debug] 21497#0: *10 fastcgi param: "REQUEST_METHOD: GET"
2016/09/21 04:05:45 [debug] 21497#0: *10 http script copy: "CONTENT_TYPE"
2016/09/21 04:05:45 [debug] 21497#0: *10 fastcgi param: "CONTENT_TYPE: "
2016/09/21 04:05:45 [debug] 21497#0: *10 http script copy: "CONTENT_LENGTH"
2016/09/21 04:05:45 [debug] 21497#0: *10 fastcgi param: "CONTENT_LENGTH: "
2016/09/21 04:05:45 [debug] 21497#0: *10 http script copy: "SCRIPT_NAME"
2016/09/21 04:05:45 [debug] 21497#0: *10 http script var: "/cgi-bin/cvsweb/"
2016/09/21 04:05:45 [debug] 21497#0: *10 fastcgi param: "SCRIPT_NAME: /cgi-bin/cvsweb/"
2016/09/21 04:05:45 [debug] 21497#0: *10 http script copy: "REQUEST_URI"
2016/09/21 04:05:45 [debug] 21497#0: *10 http script var: "/cgi-bin/cvsweb/"
2016/09/21 04:05:45 [debug] 21497#0: *10 fastcgi param: "REQUEST_URI: /cgi-bin/cvsweb/"
2016/09/21 04:05:45 [debug] 21497#0: *10 http script copy: "DOCUMENT_URI"
2016/09/21 04:05:45 [debug] 21497#0: *10 http script var: "/cgi-bin/cvsweb/"
2016/09/21 04:05:45 [debug] 21497#0: *10 fastcgi param: "DOCUMENT_URI: /cgi-bin/cvsweb/"
2016/09/21 04:05:45 [debug] 21497#0: *10 http script copy: "DOCUMENT_ROOT"
2016/09/21 04:05:45 [debug] 21497#0: *10 http script var: "/usr/lib"
2016/09/21 04:05:45 [debug] 21497#0: *10 fastcgi param: "DOCUMENT_ROOT: /usr/lib"
2016/09/21 04:05:45 [debug] 21497#0: *10 http script copy: "SERVER_PROTOCOL"
2016/09/21 04:05:45 [debug] 21497#0: *10 http script var: "HTTP/1.1"
2016/09/21 04:05:45 [debug] 21497#0: *10 fastcgi param: "SERVER_PROTOCOL: HTTP/1.1"
2016/09/21 04:05:45 [debug] 21497#0: *10 http script copy: ""
2016/09/21 04:05:45 [debug] 21497#0: *10 http script copy: "GATEWAY_INTERFACE"
2016/09/21 04:05:45 [debug] 21497#0: *10 http script copy: "CGI/1.1"
2016/09/21 04:05:45 [debug] 21497#0: *10 fastcgi param: "GATEWAY_INTERFACE: CGI/1.1"
2016/09/21 04:05:45 [debug] 21497#0: *10 http script copy: "SERVER_SOFTWARE"
2016/09/21 04:05:45 [debug] 21497#0: *10 http script copy: "nginx/"
2016/09/21 04:05:45 [debug] 21497#0: *10 http script var: "1.6.2"
2016/09/21 04:05:45 [debug] 21497#0: *10 fastcgi param: "SERVER_SOFTWARE: nginx/1.6.2"
2016/09/21 04:05:45 [debug] 21497#0: *10 http script copy: "REMOTE_ADDR"
2016/09/21 04:05:45 [debug] 21497#0: *10 http script var: "192.168.213.162"
2016/09/21 04:05:45 [debug] 21497#0: *10 fastcgi param: "REMOTE_ADDR: 192.168.213.162"
2016/09/21 04:05:45 [debug] 21497#0: *10 http script copy: "REMOTE_PORT"
2016/09/21 04:05:45 [debug] 21497#0: *10 http script var: "55152"
2016/09/21 04:05:45 [debug] 21497#0: *10 fastcgi param: "REMOTE_PORT: 55152"
2016/09/21 04:05:45 [debug] 21497#0: *10 http script copy: "SERVER_ADDR"
2016/09/21 04:05:45 [debug] 21497#0: *10 http script var: "192.168.213.186"
2016/09/21 04:05:45 [debug] 21497#0: *10 fastcgi param: "SERVER_ADDR: 192.168.213.186"
2016/09/21 04:05:45 [debug] 21497#0: *10 http script copy: "SERVER_PORT"
2016/09/21 04:05:45 [debug] 21497#0: *10 http script var: "80"
2016/09/21 04:05:45 [debug] 21497#0: *10 fastcgi param: "SERVER_PORT: 80"
2016/09/21 04:05:45 [debug] 21497#0: *10 http script copy: "SERVER_NAME"
2016/09/21 04:05:45 [debug] 21497#0: *10 http script var: "localhost"
2016/09/21 04:05:45 [debug] 21497#0: *10 fastcgi param: "SERVER_NAME: localhost"
2016/09/21 04:05:45 [debug] 21497#0: *10 http script copy: "REDIRECT_STATUS"
2016/09/21 04:05:45 [debug] 21497#0: *10 http script copy: "200"
2016/09/21 04:05:45 [debug] 21497#0: *10 fastcgi param: "REDIRECT_STATUS: 200"
2016/09/21 04:05:45 [debug] 21497#0: *10 http script copy: "SCRIPT_FILENAME"
2016/09/21 04:05:45 [debug] 21497#0: *10 http script copy: "/usr/lib"
2016/09/21 04:05:45 [debug] 21497#0: *10 http script var: "/cgi-bin/cvsweb/"
2016/09/21 04:05:45 [debug] 21497#0: *10 fastcgi param: "SCRIPT_FILENAME: /usr/lib/cgi-bin/cvsweb/"
2016/09/21 04:05:45 [debug] 21497#0: *10 fastcgi param: "HTTP_HOST: 192.168.213.186"
2016/09/21 04:05:45 [debug] 21497#0: *10 fastcgi param: "HTTP_CONNECTION: keep-alive"
2016/09/21 04:05:45 [debug] 21497#0: *10 fastcgi param: "HTTP_UPGRADE_INSECURE_REQUESTS: 1"
2016/09/21 04:05:45 [debug] 21497#0: *10 fastcgi param: "HTTP_USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36"
2016/09/21 04:05:45 [debug] 21497#0: *10 fastcgi param: "HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8"
2016/09/21 04:05:45 [debug] 21497#0: *10 fastcgi param: "HTTP_ACCEPT_ENCODING: gzip, deflate, sdch"
2016/09/21 04:05:45 [debug] 21497#0: *10 fastcgi param: "HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.8"
2016/09/21 04:05:45 [debug] 21497#0: *10 http cleanup add: 0000000000AC3778
2016/09/21 04:05:45 [debug] 21497#0: *10 get rr peer, try: 1
2016/09/21 04:05:45 [debug] 21497#0: *10 socket 16
2016/09/21 04:05:45 [debug] 21497#0: *10 epoll add connection: fd:16 ev:80002005
2016/09/21 04:05:45 [debug] 21497#0: *10 connect to unix:/var/run/fcgiwrap.socket, fd:16 #12
2016/09/21 04:05:45 [debug] 21497#0: *10 connected
2016/09/21 04:05:45 [debug] 21497#0: *10 http upstream connect: 0
2016/09/21 04:05:45 [debug] 21497#0: *10 posix_memalign: 0000000000ABE980:128 @16
2016/09/21 04:05:45 [debug] 21497#0: *10 http upstream send request
2016/09/21 04:05:45 [debug] 21497#0: *10 chain writer buf fl:0 s:848
2016/09/21 04:05:45 [debug] 21497#0: *10 chain writer in: 0000000000AC37B0
2016/09/21 04:05:45 [debug] 21497#0: *10 writev: 848
2016/09/21 04:05:45 [debug] 21497#0: *10 chain writer out: 0000000000000000
2016/09/21 04:05:45 [debug] 21497#0: *10 event timer add: 16: 60000:1474430805603
2016/09/21 04:05:45 [debug] 21497#0: *10 http finalize request: -4, "/cgi-bin/cvsweb/?" a:1, c:2
2016/09/21 04:05:45 [debug] 21497#0: *10 http request count:2 blk:0
2016/09/21 04:05:45 [debug] 21497#0: *10 post event 0000000000B108C0
2016/09/21 04:05:45 [debug] 21497#0: *10 post event 0000000000B10928
2016/09/21 04:05:45 [debug] 21497#0: *10 delete posted event 0000000000B10928
2016/09/21 04:05:45 [debug] 21497#0: *10 http upstream request: "/cgi-bin/cvsweb/?"
2016/09/21 04:05:45 [debug] 21497#0: *10 http upstream dummy handler
2016/09/21 04:05:45 [debug] 21497#0: *10 delete posted event 0000000000B108C0
2016/09/21 04:05:45 [debug] 21497#0: *10 http run request: "/cgi-bin/cvsweb/?"
2016/09/21 04:05:45 [debug] 21497#0: *10 http upstream check client, write event:1, "/cgi-bin/cvsweb/"
2016/09/21 04:05:45 [debug] 21497#0: *10 http upstream recv(): -1 (11: Resource temporarily unavailable)
2016/09/21 04:05:45 [debug] 21497#0: *10 post event 0000000000B10928
2016/09/21 04:05:45 [debug] 21497#0: *10 delete posted event 0000000000B10928
2016/09/21 04:05:45 [debug] 21497#0: *10 http upstream request: "/cgi-bin/cvsweb/?"
2016/09/21 04:05:45 [debug] 21497#0: *10 http upstream dummy handler
2016/09/21 04:05:45 [debug] 21497#0: *10 post event 0000000000AFD118
2016/09/21 04:05:45 [debug] 21497#0: *10 post event 0000000000B10928
2016/09/21 04:05:45 [debug] 21497#0: *10 delete posted event 0000000000B10928
2016/09/21 04:05:45 [debug] 21497#0: *10 http upstream request: "/cgi-bin/cvsweb/?"
2016/09/21 04:05:45 [debug] 21497#0: *10 http upstream dummy handler
2016/09/21 04:05:45 [debug] 21497#0: *10 delete posted event 0000000000AFD118
2016/09/21 04:05:45 [debug] 21497#0: *10 http upstream request: "/cgi-bin/cvsweb/?"
2016/09/21 04:05:45 [debug] 21497#0: *10 http upstream process header
2016/09/21 04:05:45 [debug] 21497#0: *10 malloc: 0000000000AC3CB0:4096
2016/09/21 04:05:45 [debug] 21497#0: *10 recv: fd:16 104 of 4096
2016/09/21 04:05:45 [debug] 21497#0: *10 http fastcgi record byte: 01
2016/09/21 04:05:45 [debug] 21497#0: *10 http fastcgi record byte: 06
2016/09/21 04:05:45 [debug] 21497#0: *10 http fastcgi record byte: 00
2016/09/21 04:05:45 [debug] 21497#0: *10 http fastcgi record byte: 01
2016/09/21 04:05:45 [debug] 21497#0: *10 http fastcgi record byte: 00
2016/09/21 04:05:45 [debug] 21497#0: *10 http fastcgi record byte: 42
2016/09/21 04:05:45 [debug] 21497#0: *10 http fastcgi record byte: 06
2016/09/21 04:05:45 [debug] 21497#0: *10 http fastcgi record byte: 00
2016/09/21 04:05:45 [debug] 21497#0: *10 http fastcgi record length: 66
2016/09/21 04:05:45 [debug] 21497#0: *10 http fastcgi parser: 0
2016/09/21 04:05:45 [debug] 21497#0: *10 http fastcgi header: "Status: 403 Forbidden"
2016/09/21 04:05:45 [debug] 21497#0: *10 http fastcgi parser: 0
2016/09/21 04:05:45 [debug] 21497#0: *10 http fastcgi header: "Content-Type: text/plain"
2016/09/21 04:05:45 [debug] 21497#0: *10 http fastcgi parser: 1
2016/09/21 04:05:45 [debug] 21497#0: *10 http fastcgi header done
2016/09/21 04:05:45 [debug] 21497#0: *10 xslt filter header
2016/09/21 04:05:45 [debug] 21497#0: *10 HTTP/1.1 403 Forbidden
Server: nginx/1.6.2
Date: Wed, 21 Sep 2016 04:05:45 GMT
Content-Type: text/plain
Transfer-Encoding: chunked
Connection: keep-alive

2016/09/21 04:05:45 [debug] 21497#0: *10 write new buf t:1 f:0 0000000000AC39F0, pos 0000000000AC39F0, size: 162 file: 0, size: 0
2016/09/21 04:05:45 [debug] 21497#0: *10 http write filter: l:0 f:0 s:162
2016/09/21 04:05:45 [debug] 21497#0: *10 http cacheable: 0
2016/09/21 04:05:45 [debug] 21497#0: *10 http upstream process upstream
2016/09/21 04:05:45 [debug] 21497#0: *10 pipe read upstream: 1
2016/09/21 04:05:45 [debug] 21497#0: *10 pipe preread: 45
2016/09/21 04:05:45 [debug] 21497#0: *10 readv: 1:3992
2016/09/21 04:05:45 [debug] 21497#0: *10 pipe recv chain: 0
2016/09/21 04:05:45 [debug] 21497#0: *10 pipe buf free s:0 t:1 f:0 0000000000AC3CB0, pos 0000000000AC3CEB, size: 45 file: 0, size: 0
2016/09/21 04:05:45 [debug] 21497#0: *10 pipe length: -1
2016/09/21 04:05:45 [debug] 21497#0: *10 input buf #0 0000000000AC3CEB
2016/09/21 04:05:45 [debug] 21497#0: *10 http fastcgi record byte: 01
2016/09/21 04:05:45 [debug] 21497#0: *10 http fastcgi record byte: 06
2016/09/21 04:05:45 [debug] 21497#0: *10 http fastcgi record byte: 00
2016/09/21 04:05:45 [debug] 21497#0: *10 http fastcgi record byte: 01
2016/09/21 04:05:45 [debug] 21497#0: *10 http fastcgi record byte: 00
2016/09/21 04:05:45 [debug] 21497#0: *10 http fastcgi record byte: 00
2016/09/21 04:05:45 [debug] 21497#0: *10 http fastcgi record byte: 00
2016/09/21 04:05:45 [debug] 21497#0: *10 http fastcgi record byte: 00
2016/09/21 04:05:45 [debug] 21497#0: *10 http fastcgi record length: 0
2016/09/21 04:05:45 [debug] 21497#0: *10 http fastcgi closed stdout
2016/09/21 04:05:45 [debug] 21497#0: *10 http fastcgi record byte: 01
2016/09/21 04:05:45 [debug] 21497#0: *10 http fastcgi record byte: 03
2016/09/21 04:05:45 [debug] 21497#0: *10 http fastcgi record byte: 00
2016/09/21 04:05:45 [debug] 21497#0: *10 http fastcgi record byte: 01
2016/09/21 04:05:45 [debug] 21497#0: *10 http fastcgi record byte: 00
2016/09/21 04:05:45 [debug] 21497#0: *10 http fastcgi record byte: 08
2016/09/21 04:05:45 [debug] 21497#0: *10 http fastcgi record byte: 00
2016/09/21 04:05:45 [debug] 21497#0: *10 http fastcgi record byte: 00
2016/09/21 04:05:45 [debug] 21497#0: *10 http fastcgi record length: 8
2016/09/21 04:05:45 [debug] 21497#0: *10 http fastcgi sent end request
2016/09/21 04:05:45 [debug] 21497#0: *10 input buf 0000000000AC3CEB 15
2016/09/21 04:05:45 [debug] 21497#0: *10 pipe write downstream: 1
2016/09/21 04:05:45 [debug] 21497#0: *10 pipe write downstream flush in
2016/09/21 04:05:45 [debug] 21497#0: *10 http output filter "/cgi-bin/cvsweb/?"
2016/09/21 04:05:45 [debug] 21497#0: *10 http copy filter: "/cgi-bin/cvsweb/?"
2016/09/21 04:05:45 [debug] 21497#0: *10 image filter
2016/09/21 04:05:45 [debug] 21497#0: *10 xslt filter body
2016/09/21 04:05:45 [debug] 21497#0: *10 http postpone filter "/cgi-bin/cvsweb/?" 0000000000AC3BB0
2016/09/21 04:05:45 [debug] 21497#0: *10 http chunk: 15
2016/09/21 04:05:45 [debug] 21497#0: *10 posix_memalign: 0000000000AC4CC0:4096 @16
2016/09/21 04:05:45 [debug] 21497#0: *10 write old buf t:1 f:0 0000000000AC39F0, pos 0000000000AC39F0, size: 162 file: 0, size: 0
2016/09/21 04:05:45 [debug] 21497#0: *10 write new buf t:1 f:0 0000000000AC4D30, pos 0000000000AC4D30, size: 3 file: 0, size: 0
2016/09/21 04:05:45 [debug] 21497#0: *10 write new buf t:1 f:0 0000000000AC3CB0, pos 0000000000AC3CEB, size: 15 file: 0, size: 0
2016/09/21 04:05:45 [debug] 21497#0: *10 write new buf t:0 f:0 0000000000000000, pos 00000000004B31BD, size: 2 file: 0, size: 0
2016/09/21 04:05:45 [debug] 21497#0: *10 http write filter: l:0 f:0 s:182
2016/09/21 04:05:45 [debug] 21497#0: *10 http copy filter: 0 "/cgi-bin/cvsweb/?"
2016/09/21 04:05:45 [debug] 21497#0: *10 pipe write downstream done
2016/09/21 04:05:45 [debug] 21497#0: *10 event timer: 16, old: 1474430805603, new: 1474430805605
2016/09/21 04:05:45 [debug] 21497#0: *10 http upstream exit: 0000000000000000
2016/09/21 04:05:45 [debug] 21497#0: *10 finalize http upstream request: 0
2016/09/21 04:05:45 [debug] 21497#0: *10 finalize http fastcgi request
2016/09/21 04:05:45 [debug] 21497#0: *10 free rr peer 1 0
2016/09/21 04:05:45 [debug] 21497#0: *10 close http upstream connection: 16
2016/09/21 04:05:45 [debug] 21497#0: *10 free: 0000000000ABE980, unused: 48
2016/09/21 04:05:45 [debug] 21497#0: *10 event timer del: 16: 1474430805603
2016/09/21 04:05:45 [debug] 21497#0: *10 reusable connection: 0
2016/09/21 04:05:45 [debug] 21497#0: *10 http upstream temp fd: -1
2016/09/21 04:05:45 [debug] 21497#0: *10 http output filter "/cgi-bin/cvsweb/?"
2016/09/21 04:05:45 [debug] 21497#0: *10 http copy filter: "/cgi-bin/cvsweb/?"
2016/09/21 04:05:45 [debug] 21497#0: *10 image filter
2016/09/21 04:05:45 [debug] 21497#0: *10 xslt filter body
2016/09/21 04:05:45 [debug] 21497#0: *10 http postpone filter "/cgi-bin/cvsweb/?" 00007FFD42BF5280
2016/09/21 04:05:45 [debug] 21497#0: *10 http chunk: 0
2016/09/21 04:05:45 [debug] 21497#0: *10 write old buf t:1 f:0 0000000000AC39F0, pos 0000000000AC39F0, size: 162 file: 0, size: 0
2016/09/21 04:05:45 [debug] 21497#0: *10 write old buf t:1 f:0 0000000000AC4D30, pos 0000000000AC4D30, size: 3 file: 0, size: 0
2016/09/21 04:05:45 [debug] 21497#0: *10 write old buf t:1 f:0 0000000000AC3CB0, pos 0000000000AC3CEB, size: 15 file: 0, size: 0
2016/09/21 04:05:45 [debug] 21497#0: *10 write old buf t:0 f:0 0000000000000000, pos 00000000004B31BD, size: 2 file: 0, size: 0
2016/09/21 04:05:45 [debug] 21497#0: *10 write new buf t:0 f:0 0000000000000000, pos 00000000004B31BA, size: 5 file: 0, size: 0
2016/09/21 04:05:45 [debug] 21497#0: *10 http write filter: l:1 f:0 s:187
2016/09/21 04:05:45 [debug] 21497#0: *10 http write filter limit 0
2016/09/21 04:05:45 [debug] 21497#0: *10 writev: 187
2016/09/21 04:05:45 [debug] 21497#0: *10 http write filter 0000000000000000
2016/09/21 04:05:45 [debug] 21497#0: *10 http copy filter: 0 "/cgi-bin/cvsweb/?"
2016/09/21 04:05:45 [debug] 21497#0: *10 http finalize request: 0, "/cgi-bin/cvsweb/?" a:1, c:1
2016/09/21 04:05:45 [debug] 21497#0: *10 set http keepalive handler
2016/09/21 04:05:45 [debug] 21497#0: *10 http close request
2016/09/21 04:05:45 [debug] 21497#0: *10 http log handler
2016/09/21 04:05:45 [debug] 21497#0: *10 free: 0000000000AC3CB0
2016/09/21 04:05:45 [debug] 21497#0: *10 free: 0000000000ACC050, unused: 8
2016/09/21 04:05:45 [debug] 21497#0: *10 free: 0000000000AC2CA0, unused: 8
2016/09/21 04:05:45 [debug] 21497#0: *10 free: 0000000000AC4CC0, unused: 3379
2016/09/21 04:05:45 [debug] 21497#0: *10 free: 0000000000AEE2D0
2016/09/21 04:05:45 [debug] 21497#0: *10 hc free: 0000000000000000 0
2016/09/21 04:05:45 [debug] 21497#0: *10 hc busy: 0000000000000000 0
2016/09/21 04:05:45 [debug] 21497#0: *10 tcp_nodelay
2016/09/21 04:05:45 [debug] 21497#0: *10 reusable connection: 1
2016/09/21 04:05:45 [debug] 21497#0: *10 event timer add: 12: 65000:1474430810605
2016/09/21 04:05:45 [debug] 21497#0: *10 post event 0000000000AFD0B0
2016/09/21 04:05:45 [debug] 21497#0: *10 delete posted event 0000000000AFD0B0
2016/09/21 04:05:45 [debug] 21497#0: *10 http keepalive handler
2016/09/21 04:05:45 [debug] 21497#0: *10 malloc: 0000000000AEE2D0:1024
2016/09/21 04:05:45 [debug] 21497#0: *10 recv: fd:12 -1 of 1024
2016/09/21 04:05:45 [debug] 21497#0: *10 recv() not ready (11: Resource temporarily unavailable)
2016/09/21 04:05:45 [debug] 21497#0: *10 free: 0000000000AEE2D0
2016/09/21 04:06:45 [debug] 21497#0: *11 event timer del: 13: 1474430805526
2016/09/21 04:06:45 [debug] 21497#0: *11 http wait request handler
2016/09/21 04:06:45 [info] 21497#0: *11 client timed out (110: Connection timed out) while waiting for request, client: 192.168.213.162, server: 0.0.0.0:80
2016/09/21 04:06:45 [debug] 21497#0: *11 close http connection: 13
2016/09/21 04:06:45 [debug] 21497#0: *11 reusable connection: 0
2016/09/21 04:06:45 [debug] 21497#0: *11 free: 0000000000ABE760, unused: 16
2016/09/21 04:06:45 [debug] 21497#0: *11 free: 0000000000ABE870, unused: 200
2016/09/21 04:06:50 [debug] 21497#0: *10 event timer del: 12: 1474430810605
2016/09/21 04:06:50 [debug] 21497#0: *10 http keepalive handler
2016/09/21 04:06:50 [debug] 21497#0: *10 close http connection: 12
2016/09/21 04:06:50 [debug] 21497#0: *10 reusable connection: 0
2016/09/21 04:06:50 [debug] 21497#0: *10 free: 0000000000000000
2016/09/21 04:06:50 [debug] 21497#0: *10 free: 0000000000AD9D30, unused: 0
2016/09/21 04:06:50 [debug] 21497#0: *10 free: 0000000000AE82A0, unused: 104


nginx.conf:

user www-data;
worker_processes 4;
pid /run/nginx.pid;

events {
worker_connections 768;
# multi_accept on;
}

http {

##
# Basic Settings
##

sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
# server_tokens off;

# server_names_hash_bucket_size 64;
# server_name_in_redirect off;

include /etc/nginx/fcgiwrap.conf;
include /etc/nginx/mime.types;
default_type application/octet-stream;

##
# SSL Settings
##

ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
ssl_prefer_server_ciphers on;

##
# Logging Settings
##

access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log debug;

##
# Gzip Settings
##

gzip on;
gzip_disable "msie6";

# gzip_vary on;
# gzip_proxied any;
# gzip_comp_level 6;
# gzip_buffers 16 8k;
# gzip_http_version 1.1;
# gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;

##
# Virtual Host Configs
##

include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}


#mail {
# # See sample authentication script at:
# # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
#
# # auth_http localhost/auth.php;
# # pop3_capabilities "TOP" "USER";
# # imap_capabilities "IMAP4rev1" "UIDPLUS";
#
# server {
# listen localhost:110;
# protocol pop3;
# proxy on;
# }
#
# server {
# listen localhost:143;
# protocol imap;
# proxy on;
# }
#}


sites-available:


server {
listen 80 default_server;
listen [::]:80 default_server;

server_name localhost;
root /var/www;
index index.php;

location / {
try_files $uri $uri/ index.php =404;
}

location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
try_files $fastcgi_script_name =404;
set $path_info $fastcgi_path_info;
fastcgi_param PATH_INFO $path_info;

fastcgi_index index.php;
include fastcgi.conf;

fastcgi_pass unix:/var/run/php5-fpm.sock;
}

location /cgi-bin/ {
gzip off;
root /usr/lib;

fastcgi_pass unix:/var/run/fcgiwrap.socket;

include /etc/nginx/fastcgi_params;

fastcgi_param SCRIPT_FILENAME /usr/lib$fastcgi_script_name;
}

}


All files are 755 root:root. Any suggestions would be greatly appreciated.


Thanks!
Re: "Status: 403 Forbidden" cvsweb
September 21, 2016 12:37AM
Forgot to add, I'm running nginx/1.6.2. Thanks again!
Re: "Status: 403 Forbidden" cvsweb
September 22, 2016 09:23PM
Okay,

I added autoindex to my location:

location / {
try_files $uri $uri/ index.php =404;
autoindex on;

I can see all of the files now, but I'm still getting a 403 message when I try browsing to:

http://192.168.213.186/cgi-bin/cvsweb

Error logs are empty.

Access log:

192.168.213.162 - - [23/Sep/2016:01:12:32 +0000] "GET /cgi-bin/cvsweb HTTP/1.1" 301 771 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36"
192.168.213.162 - - [23/Sep/2016:01:12:32 +0000] "GET /cgi-bin/cvsweb/ HTTP/1.1" 403 25 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36"

Closer, but not there yet......
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 98
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready