通过Nginx反向代理连接到Apache OpenMeetings时遇到问题

时间:2020-04-06 02:50:22

标签: nginx nginx-reverse-proxy openmeetings

我已经在服务器上安装了OpenMeetings v5.0.0,并且能够使用ssh隧道进行配置和登录。

因此,我按照本教程中的说明设置了Nginx反向代理:

https://www.vultr.com/docs/how-to-install-openmeetings-on-ubuntu-16-04

当我在浏览器中输入URL时,它会重定向到https://myhost/openmeetings/signin并显示登录页面,但是这两个AJAX调用会收到“ 400-Bad Request”响应:

https://myhost/openmeetings/wicket/bookmarkable/org.apache.openmeetings.web.pages.auth.SignInPage?7-1.0-&&_=1586132831523

https://myhost/openmeetings/wicket/bookmarkable/org.apache.openmeetings.web.pages.auth.SignInPage?7-1.0-signin&navigatorAppName=Netscape&navigatorAppVersion=5.0%20(X11)&navigatorAppCodeName=Mozilla&navigatorCookieEnabled=true&navigatorJavaEnabled=false&navigatorLanguage=en-CA&navigatorPlatform=Linux%20x86_64&navigatorUserAgent=Mozilla%2F5.0%20(X11%3B%20Ubuntu%3B%20Linux%20x86_64%3B%20rv%3A74.0)%20Gecko%2F20100101%20Firefox%2F74.0&screenWidth=1680&screenHeight=1050&screenColorDepth=24&utcOffset=-8&utcDSTOffset=-7&browserWidth=1680&browserHeight=619&hostname=myhost&codebase=https%3A%2F%2Fmyhost%2Fopenmeetings%2Fsignin&settings=%5Bobject%20Object%5D&_=1586132831524

当我按下“登录”按钮时,出现另一个“ 400-错误的请求”

我的Nginx配置:

server {
    listen 443 ssl;
    listen [::]:443 ssl;
    gzip off;
    ssl_certificate /etc/letsencrypt/live/myhost/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/myhost/privkey.pem; # managed by Certbot

    ssl on;
    ssl_session_cache  builtin:1000  shared:SSL:10m;
    ssl_protocols  TLSv1 TLSv1.1 TLSv1.2;
    ssl_ciphers HIGH:!aNULL:!eNULL:!EXPORT:!CAMELLIA:!DES:!MD5:!PSK:!RC4;
    ssl_prefer_server_ciphers on;

    server_name                   www.myhost myhost;

    access_log                    /var/log/nginx/myserver.access.log;
    error_log                     /var/log/nginx/myhost.error.log;

        location / {
            proxy_pass            http://localhost:5080;
            proxy_set_header    host $host;
            proxy_http_version  1.1;
            proxy_set_header upgrade $http_upgrade;
            proxy_set_header connection "upgrade";
        }
}

server {
    if ($host = www.myhost) {
        return 301 https://$host$request_uri;
    } # managed by Certbot


    if ($host = myhost) {
        return 301 https://$host$request_uri;
    } # managed by Certbot


    listen 80;

    server_name                   www.myhost myhost;
    return 404; # managed by Certbot
}

根据本教程,我尝试将application.base.url设置更改为https://myhost。没关系。

1 个答案:

答案 0 :(得分:0)

我会在主机和Web网址中包含.com或其他任何内容

您需要重命名/ opt / open504中的文件夹 还要在server.xml的openmeetings中进行更改。 进行配置更改。重新启动应用程序,或者最好重新启动整个服务器计算机。

让我知道视频和音频是否有效。从外部来源而不是您自己的路由器(lan)连接。