[SOLVED] How do I set up reverse proxy in Apache on a Slackware 14.2 Server?
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I think we have a breakthrough, finally! The error has changed, it is now recorded in log_log:
Code:
[Wed Feb 24 17:15:04.781782 2021] [ssl:info] [pid 12386:tid 139710336833280] [remote 192.168.6.253:3000] AH01997: SSL handshake failed: sending 502
[Wed Feb 24 17:15:04.781790 2021] [proxy:error] [pid 12386:tid 139710336833280] (20014)Internal error (specific information not available): [client 192.168.13.7:39496] AH01084: pass request body failed to 192.168.6.253:3000 (myu.com)
[Wed Feb 24 17:15:04.781809 2021] [proxy:error] [pid 12386:tid 139710336833280] [client 192.168.13.7:39496] AH00898: Error during SSL Handshake with remote server returned by /grafana
On the page myu.com/grafana appears:
Proxy Error
The proxy server could not handle the request
Reason: Error during SSL Handshake with remote server
Most likely you use http instead of https in grafana config.
Look again at my post 19 with a working config for both apache and grafana and adjust that to your needs.
Most likely you use http instead of https in grafana config.
Look again at my post 19 with a working config for both apache and grafana and adjust that to your needs.
I left it as below and it seems to have worked:
Code:
SSLProxyEngine On
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
SSLProxyCheckPeerExpire off
ProxyPreserveHost On
ProxyPass "/grafana" "https://127.0.0.1:3000"
ProxyPassReverse "/grafana" "https://127.0.0.1:3000"
However, when I place the LDAP authentication policies below, a json result appears on the page: message "Invalid username or password". I think it only remains to resolve this to be all OK.
SSLProxyEngine On
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
SSLProxyCheckPeerExpire off
ProxyPreserveHost On
ProxyPass "/grafana" "https://127.0.0.1:3000"
ProxyPassReverse "/grafana" "https://127.0.0.1:3000"
However, when I place the LDAP authentication policies below, a json result appears on the page: message "Invalid username or password". I think it only remains to resolve this to be all OK.
However, when I place the LDAP authentication policies below, a json result appears on the page: message "Invalid username or password". I think it only remains to resolve this to be all OK.
Second putting the ldap authentication stuff there, it's used by apache to allow access to that resource only for users authenticated by your ldap server.
It has nothing to do with the grafana backend.
Quote:
I saw that in the log of grafana, grafana.log, it appears:
t = 2021-02-24T19: 38: 09-0300 lvl = dbug msg = "Failed to authorize the user" logger = context username = cesarsj err = "User not found"
Funny that when the reverse proxy didn't work and I accessed the grafana directly it didn't happen.
As I told you above LDAP AUTH has nothing to do with grafana because stores its users in a different database.
If you want to allow users from your ldap server to access/use grafana, you need to configure grafana accordingly.
Searching for "grafana+ldap" yielded many results like this
Use your favorite search engine to find more, because that's a different issue from your OP and I'm afraid I cannot help you further.
Second putting the ldap authentication stuff there, it's used by apache to allow access to that resource only for users authenticated by your ldap server.
It has nothing to do with the grafana backend.
As I told you above LDAP AUTH has nothing to do with grafana because stores its users in a different database.
If you want to allow users from your ldap server to access/use grafana, you need to configure grafana accordingly.
Searching for "grafana+ldap" yielded many results like this
Use your favorite search engine to find more, because that's a different issue from your OP and I'm afraid I cannot help you further.
Regards
Yes, you are right, the problem in question has been solved. I really appreciate the helpfulness of helping me all this time.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.