Skip to content
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

Problems rewriting urls with containers and reverse proxy #938

Open
PaulOchons opened this issue Jul 15, 2024 · 0 comments
Open

Problems rewriting urls with containers and reverse proxy #938

PaulOchons opened this issue Jul 15, 2024 · 0 comments

Comments

@PaulOchons
Copy link

Hello,
I have installed formtools in containers (one for the application and a second one for the database). The containers are behind a reverse proxy.
The installation works fine, as does the creation of the admin account, but I have a problem when I try to log in.
The url of my application is https://mywebite.com/formtools/ but when I click on the login button I'm redirected to https://mywebsite.com/index.php and so it doesn't work.

In the config.php file I have:
$g_root_url = "https://mywebite.com/formtools";
$g_root_dir = "/var/www/html";

If I consult the source code of the login page I see this:
form name="login" action="/index.php" method="post"
Whereas it should be:
form name="login" action="/formtools/index.php" method="post"

Can you see where this problem might be coming from?
Is it more a problem with the proxy than with the formtools application?

Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant