File tree Expand file tree Collapse file tree 2 files changed +38
-3
lines changed
agent/utils/nginx/components Expand file tree Collapse file tree 2 files changed +38
-3
lines changed Original file line number Diff line number Diff line change @@ -62,4 +62,10 @@ cmd/server/fileList.txt
62621Panel.code-workspace
6363
6464core /.golangci.yml
65- agent /.golangci.yml
65+ agent /.golangci.yml
66+
67+ .opencode
68+ openspec
69+ CLAUDE.md
70+ AGENTS.md
71+ opencode.json
Original file line number Diff line number Diff line change @@ -424,12 +424,41 @@ func (s *Server) UpdatePHPProxy(proxy []string, localPath string) {
424424 },
425425 )
426426 if localPath == "" {
427+ block .AppendDirectives (& Directive {
428+ Name : "set" ,
429+ Parameters : []string {"$real_script_name" , "$fastcgi_script_name" },
430+ })
431+ ifDir := & Directive {
432+ Name : "if" ,
433+ Parameters : []string {"($fastcgi_script_name ~ \" ^(.+?\\ .php)(/.+)$\" )" },
434+ }
435+ ifDir .Block = & Block {
436+ Directives : []IDirective {
437+ & Directive {
438+ Name : "set" ,
439+ Parameters : []string {"$real_script_name" , "$1" },
440+ },
441+ & Directive {
442+ Name : "set" ,
443+ Parameters : []string {"$path_info" , "$2" },
444+ },
445+ },
446+ }
427447 block .AppendDirectives (
448+ ifDir ,
449+ & Directive {
450+ Name : "fastcgi_param" ,
451+ Parameters : []string {"SCRIPT_FILENAME" , "$document_root$real_script_name" },
452+ },
428453 & Directive {
429454 Name : "fastcgi_param" ,
430- Parameters : []string {"SCRIPT_FILENAME " , "$document_root$fastcgi_script_name " },
455+ Parameters : []string {"SCRIPT_NAME " , "$real_script_name " },
431456 },
432- )
457+ & Directive {
458+ Name : "fastcgi_param" ,
459+ Parameters : []string {"PATH_INFO" , "$path_info" },
460+ })
461+
433462 } else {
434463 block .AppendDirectives (& Directive {
435464 Name : "fastcgi_param" ,
You can’t perform that action at this time.
0 commit comments