我已经在ubuntu20.4上安装了zammad,我可以用本地主机地址打开zammad,但是不能用服务器IP地址从远程连接zammad。
我编辑了文件/etc/nginx/sites现有/zammad.conf
#
# this is the nginx config for zammad
#
upstream zammad-railsserver {
server 127.0.0.1:3000;
}
upstream zammad-websocket {
server 127.0.0.1:6042;
}
server {
listen 80;
listen [::]:80;
# replace 'localhost' with your fqdn if you want to use zammad from remote
#server_name localhost;
server_name 10.20.60.200;
# security - prevent information disclosure about server version
#server_tokens off;
root /opt/zammad/public;
access_log /var/log/nginx/zammad.access.log;
error_log /var/log/nginx/zammad.error.log;
client_max_body_size 50M;对于server_name,我已经放置了IP地址,用这个IP地址不能连接到zammad,但是用127.0.0.1:3000连接
有人能帮上忙吗?
发布于 2022-10-27 13:36:18
给出网址10.20.60.200:3000。这就足够了,当您只给IP地址,而没有端口到URL。
https://stackoverflow.com/questions/73292319
复制相似问题