web2Py admin pages cant be opened when the webserver is behind a (reverse) proxy Server

Open
#2,484 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python

Research direction

Reproduce the admin-page request both directly and through the reverse proxy, then inspect the browser redirect chain and the proxy/web2py configuration. Done means the admin pages load through the reverse proxy without certificate-related redirect loops.

Written by the indexing model from the issue text.

Description

I want to have a test server to experiment and learn the web2py framework and also start with python.
The webserver i build is a freshly build vm (using a lxy web2py vm image, running on a proxmox).

To be able access the webserver remotely (from outside the test network) , i have to pass a reverse-proxy.

image
Entering the url gives me the default welcome page.
In developer tools(chrome ) you see what is loaded.
image
When hitting the admin button i 1st get a message about an invalid certificate (which is correct).
When i continue you see the following ... (a bunch of redirects until you et the error message in your browser , to many redirects.
image

Opening the same page directly without using a the reverse proxy (from inside the developer network) .. admin page loads fine.

Dominant language
Python
Stars
2.2k
Forks
913
Avg merge
4h 22m
Merged PRs (30d)
7

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from web2py/web2py

All issues in web2py/web2py

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.