Score:1

Reverse-Proxy login page not works on Apache2

kw flag

I'm trying to setup a reverse-proxy on a debian11 with apache2 and it works but when you access the serveur on background by the reverse at the beginning you arrive on a login page in the application but nothing work, we can click on the button like "login" or "forget password" but nothing happens.

This is my configuration :

 <VirtualHost *:443>
   ServerName proxy.exemple.fr
   ServerAdmin admin@exemple.fr

   SSLEngine on
   SSLCertificateFile /etc/ssl/private/cert.pem
   SSLCertificateKeyFile /etc/ssl/private/cert.pkey

   SSLProxyEngine on
   SSLProxyCheckPeerCN Off
   SSLProxyCheckPeerName Off
   SSLProxyVerify none

   ProxyPass / https://application-we-are-trying-to-access/
   ProxyPassReverse / https://application-we-are-trying-to-access/
   ProxyRequests Off
   ProxyPreserveHost On

   SecRuleEngine On
</VirtualHost>

But when you access at the application through the lan with URL without passing by the reverse-proxy, the login page works perfectly

Any help appreciated.

Score:0
kz flag

Here are a few things you can try:

Check the network tab in your browser's developer console for errors. Add "SetEnv proxy-nokeepalive 1" before the "ProxyPass" directives. Ensure the application uses relative URLs for resources. Check server logs for errors or warnings. Add logging for the reverse proxy using "LogLevel", "CustomLog", and "ErrorLog" directives.

Madjid avatar
kw flag
I check the network tab and that say the server can't charged the .js script but i don't know why. Maybe the rights to access the file on the server I'm trying to attach but I don't think so
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.