-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation is vague on how to access the web interface #12
Comments
I usually do not expose webadmin directly, instead I use Nginx to serve HTTP and to proxy requests to webadmin. The config file for Nginx would look like this:
|
BTW The example configuration uses HTTP to be more simplistic, in reality I always use HTTPS, adding HTTPS is not Zmta-Webadmin specific, it is standard Nginx configuration. |
Would enabling a NAT bridge work? |
If you want to use the built in HTTP server publicly then you would have to change this config and use "0.0.0.0" as the bind address instead of "127.0.0.1". I do not use it like this because Nginx allows me to use easy HTTPS and hostname based routing instead of using port numbers (I might have other web interfaces also running on the same server, eg. Rspamd) |
Understood, thank you. |
zmta-webadmin is a separate Node.js application. What I have done, is that Zone-MTA itself runs from |
I finally got it working, thank you very much. My /opt directory is empty but once I understood what was going on I was able to work around it. I will now test the MTA itself... |
By the way, when running: I get: |
Any clues for how to do this proxying with a URL reached at a subfolder? For example,
It seems the app & the template files are hardcoded for being served from the root URL. If I add /subfolder/ to the beginning of all Edit: Hardcoding the subdirectory to the relative URLs in the Edit2: I just switched to using a subdomain, & all works fine. I would still prefer to use the subfolder way if possible, so if you know how, I would be grateful for a hint. |
@rhclayto Glad to hear you got it working on a sub-domain. |
@ YosuCadilla I enabled a subdomain in DNS to point to my server subdomain.example.org. Then in haproxy config:
So I'm binding to port 443 as an SSL termination point. I'm checking if the host header of any requests are from the subdomain subdomain.example.org. If they are, I'm directing those requests to the backend It's been so long since I've used Apache for proxying that I don't quite recall the configuration that would be needed. Probably something like:
In essence, you set up DNS to send traffic requests for your subdomain to your physical or VPS server, you have Apache on that server listening for requests on port 80 or 443 (depending on if you're using SSL), in Apache you detect if the request is for the subdomain host, & then you send those requests internally to whatever port zmta-webadmin is running on. You probably want to make sure Apache adds I hope this is of some small help to you. ¡Saludos! |
It is, thank you! |
It reads:
If you want to access the administration page from outside current server then either modify configuration options or serve the page through Nginx or Apache.
Some guidelines on how to "modify configuration" which file(s) need editing?
and/or
Some guidelines on how to "serve the page through Nginx or Apache." Which page exactly??
The text was updated successfully, but these errors were encountered: