[GH-ISSUE #3027] HTTP ERROR 405 #2419

Closed
opened 2026-05-05 13:33:22 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @nijisakai on GitHub (Jul 21, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/3027

Bug Description

Client: A Windows with Webdav service and fprc service.
Server: Linux
I can access the service on chrome with the url https://webdav.my.com:88
but I can't access the service via

  • nplayer on iOS method not allowed(Status 405)
  • infuse on iOS HTTP ERROR 405
  • potplayer on Windows
  • potplayer on Windows with local ip

I do can access other webdav services without any problem without frpc, help needed!

frpc Version

0.35.1

frps Version

0.35.1

System Architecture

Windows 11 runs frpc, Linux Mint 20.1 in ESXI 6.7 runs frps

Configurations

frpc.ini on Windows 11

[common]
server_addr = my.com
server_port = 7050
token = mytoken
admin_addr = 127.0.0.1
admin_port = 7500

[webdav]
type = tcp
local_ip = 127.0.0.1
local_port = 80
remote_port = 5444

nginx conf on WSL2 of the same Windows 11

# webdav
server {
    listen 80;
    charset utf-8;
    root /mnt/d;
    client_body_temp_path /mnt/d/tmp;
    location / {
       auth_basic "Not currently available";
       auth_basic_user_file /etc/nginx/conf.d/.htpasswd;
       dav_methods PUT DELETE MKCOL COPY MOVE;
       create_full_put_path on;
       dav_access user:rw group:r;
       autoindex on;
    }
}

nginx conf on Linux Mint with public ip

Linux Mint with IP 10.10.10.104 and router(iKuai) with IP 10.10.10.253, portforward on router 10.10.10.104:5444 to public_ip:5444 and 443 to 88(blocked by ISP)

# Webdav
server
{
        listen 443 ssl;
        server_name webdav.my.com;
        location / {
           proxy_redirect off;
           proxy_set_header Host $host;
           proxy_set_header X-Real-IP $remote_addr;
           proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
           proxy_pass http://localhost:5444;
        }
        ssl_certificate  /etc/nginx/ssl/webdav.my.com.cer;
        ssl_certificate_key /etc/nginx/ssl/webdav.my.com.key;
        ssl_session_timeout 5m;
        ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
        ssl_ciphers AESGCM:ALL:!DH:!EXPORT:!RC4:+HIGH:!MEDIUM:!LOW:!aNULL:!eNULL;
        ssl_prefer_server_ciphers on;
}

Logs

No response

Steps to reproduce

...

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @nijisakai on GitHub (Jul 21, 2022). Original GitHub issue: https://github.com/fatedier/frp/issues/3027 ### Bug Description **Client:** A Windows with Webdav service and fprc service. **Server:** Linux I can access the service on chrome with the url <https://webdav.my.com:88> but I can't access the service via - nplayer on iOS `method not allowed(Status 405)` - infuse on iOS `HTTP ERROR 405` - potplayer on Windows - potplayer on Windows with local ip I do can access other webdav services without any problem without frpc, help needed! ### frpc Version 0.35.1 ### frps Version 0.35.1 ### System Architecture Windows 11 runs frpc, Linux Mint 20.1 in ESXI 6.7 runs frps ### Configurations ## `frpc.ini` on Windows 11 ``` [common] server_addr = my.com server_port = 7050 token = mytoken admin_addr = 127.0.0.1 admin_port = 7500 [webdav] type = tcp local_ip = 127.0.0.1 local_port = 80 remote_port = 5444 ``` ## `nginx conf` on WSL2 of the same Windows 11 ``` # webdav server { listen 80; charset utf-8; root /mnt/d; client_body_temp_path /mnt/d/tmp; location / { auth_basic "Not currently available"; auth_basic_user_file /etc/nginx/conf.d/.htpasswd; dav_methods PUT DELETE MKCOL COPY MOVE; create_full_put_path on; dav_access user:rw group:r; autoindex on; } } ``` ## `nginx conf` on Linux Mint with public ip > Linux Mint with IP 10.10.10.104 and router(iKuai) with IP 10.10.10.253, portforward on router 10.10.10.104:5444 to public_ip:5444 and 443 to 88(blocked by ISP) ``` # Webdav server { listen 443 ssl; server_name webdav.my.com; location / { proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass http://localhost:5444; } ssl_certificate /etc/nginx/ssl/webdav.my.com.cer; ssl_certificate_key /etc/nginx/ssl/webdav.my.com.key; ssl_session_timeout 5m; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers AESGCM:ALL:!DH:!EXPORT:!RC4:+HIGH:!MEDIUM:!LOW:!aNULL:!eNULL; ssl_prefer_server_ciphers on; } ``` ### Logs _No response_ ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@nijisakai commented on GitHub (Jul 21, 2022):

Changed the webdav services from nginx to CuteHttpFileServer/chfs and it works fine.(the location looks like /webdav/torrent while the real path like D:/torrent )
So it looks like a nginx wrongly configuration.

<!-- gh-comment-id:1191226998 --> @nijisakai commented on GitHub (Jul 21, 2022): Changed the webdav services from nginx to `CuteHttpFileServer/chfs` and it works fine.(the location looks like `/webdav/torrent` while the real path like `D:/torrent` ) So it looks like a nginx wrongly configuration.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#2419
No description provided.