BillionMail icon indicating copy to clipboard operation
BillionMail copied to clipboard

通过反向代理后无法访问 Unable to access through reverse proxy

Open ProgrammerMao opened this issue 4 months ago • 1 comments

由于端口占用问题,我调整了BillionMail的80和443端口未5080和5443端口,并使用nginx进行反向代理,随后将80和443端通过frp发布服务,内网通过5443访问时一切正常,但是当我在公网使用域名访问管理页面时,出现Not Found(roundcub页面正常),并且通过设置页面更新ssl证书时,会一直卡住不动。 Due to port occupancy issues, I adjusted BillionMail's ports 80 and 443 to ports 5080 and 5443, and used nginx for reverse proxy. Then, I published services on ports 80 and 443 through FRP, and everything was normal when accessing the internal network through 5443. However, when I used the domain name to access the management page on the public network, I encountered Not Found (roundcube page is normal), and when updating the SSL certificate through the settings page, it kept getting stuck.

以下是我的nginx和frpc部分配置 Here are some of my nginx and frpc configurations

http {
    include       mime.types;
    default_type  application/octet-stream;

    ssl_certificate /etc/letsencrypt/live/域名/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/域名/privkey.pem;

    sendfile on;
    keepalive_timeout  65;
    server {
            listen 443 ssl;
        server_name mail域名;
    
        location / {
            proxy_pass http://0.0.0.0:5443;
        }
    }
    server {
            listen 80;
        server_name mai域名;
    
        location / {
            proxy_pass http://0.0.0.0:5080;
        }
    }
}
[https_web]
type = tcp
local_ip = 0.0.0.0
local_port = 443
remote_port = 443

[http_web]
type = tcp
local_ip = 0.0.0.0
local_port = 80
remote_port = 80

我目前只转发了web页面,暂未转发smtp等邮件服务的端口

I have currently only forwarded web pages and have not forwarded ports for email services such as SMTP

ProgrammerMao avatar Aug 21 '25 10:08 ProgrammerMao

I'm also have a problem with enter reverse proxy link. Pleasee see attached screenshot from browser console

Image

ilyafdtv avatar Aug 24 '25 11:08 ilyafdtv