What show in @HOST@ when host_alias is enabled? #4446
Answered
by
badlop
paulo-roger
asked this question in
Questions
-
I have being trying to work with the new Top Level Option hosts:
- mydomain.tld
hosts_alias:
xmpp.mydomain.tld: mydomain.tld
matrix.mydomain.tld: mydomain.tld
certfiles:
- /etc/ssl/certificates/*ydomain.tld/*.crt
- /etc/ssl/certificates/*ydomain.tld/*.key
listen:
-
port: 5443
ip: "::"
module: ejabberd_http
tls: true
protocol_options: TLS_OPTIONS
request_handlers:
...
/upload: mod_http_upload
modules:
...
mod_http_upload:
put_url: https://xmpp.@HOST@/upload
docroot: /var/www/upload
custom_headers:
"Access-Control-Allow-Origin": "*"
"Access-Control-Allow-Methods": "GET,HEAD,PUT,OPTIONS"
"Access-Control-Allow-Headers": "Content-Type" I have tried commenting out the |
Beta Was this translation helpful? Give feedback.
Answered by
badlop
Aug 29, 2025
Replies: 1 comment 1 reply
-
When ejabberd starts, it starts each module for each vhost defined in toplevel option |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
badlop
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When ejabberd starts, it starts each module for each vhost defined in toplevel option
hosts
. In that case, when starting a module for a vhost,put_url
is read and@HOST@
replaced. Consequently,@HOST@
input_url
is the real vhost.