GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Bad URL redirection after authentication · Issue #5454 · pgadmin-org/pgadmin4

Bad URL redirection after authentication #5454

New issue
Copy link
New issue
Copy link
Closed
Closed
Bad URL redirection after authentication#5454
Copy link
Assignees
yogeshmahajan-1903
Labels
Bug
Milestone
7.6

Description

@harmin-parra
harmin-parra
opened on Oct 20, 2022
Issue body actions

I want to access pgadmin through this URL http://localhost/ instead of http://localhost/pgadmin4

  1. Modify files /etc/apache2/conf-available/pgadmin4.conf and /etc/apache2/conf-enabled/pgadmin4.conf with the following content :
WSGIDaemonProcess pgadmin processes=1 threads=25 python-home=/usr/pgadmin4/venv
WSGIScriptAlias / /usr/pgadmin4/web/pgAdmin4.wsgi

<Directory /usr/pgadmin4/web/>
    WSGIProcessGroup pgadmin
    WSGIApplicationGroup %{GLOBAL}
    Require all granted
</Directory>
  1. Restart apache

  2. Open browser at http://localhost

  3. Get authenticated

Result;
After authentication, I get redirected to an error web page at http://localhost/pgadmin4

Activity

Next
  1. akshay-joshi
    added this to Not Refinedon Oct 20, 2022
  2. adityatoshniwal commented on Oct 20, 2022

    @adityatoshniwal
    adityatoshniwal
    on Oct 20, 2022
    Contributor
    More actions

    @harmin-parra You'll need to change the /usr/pgadmin4/web/pgAdmin4.wsgi file as well. Try removing below line

    os.environ['SCRIPT_NAME'] = '/pgadmin4'
    

    Or set env var SCRIPT_NAME=''

  3. harmin-parra commented on Oct 20, 2022

    @harmin-parra
    harmin-parra
    on Oct 20, 2022
    Author
    More actions

    Thanks, the procedure works fine.

  4. adityatoshniwal
    closed this as completedon Oct 20, 2022
  5. adityatoshniwal
    moved this to Done in Not Refinedon Oct 20, 2022
  6. nikhil-mohite
    removed this from Not Refinedon Oct 21, 2022
  7. adityatoshniwal commented on Jul 28, 2023

    @adityatoshniwal
    adityatoshniwal
    on Jul 28, 2023
    Contributor
    More actions

    Reopening this. pgAdmin4.wsgi will be replaced on every release, so changing it to fix the issue is not appropriate.

  8. adityatoshniwal
    reopened this on Jul 28, 2023
  9. adityatoshniwal
    added this to Current Sprint (213)on Jul 28, 2023
  10. adityatoshniwal
    added
    Bug
    on Jul 28, 2023
  11. akshay-joshi
    moved this to 🆕 New in Current Sprint (213)on Jul 28, 2023
  12. akshay-joshi
    moved this from 🆕 New to 🏗 In Progress in Current Sprint (213)on Jul 31, 2023
  13. akshay-joshi
    assigned
    yogeshmahajan-1903
    on Jul 31, 2023
  14. akshay-joshi
    added
    EDB Sprint 147
    and removed
    EDB Sprint 147
    on Jul 31, 2023
  15. 8 remaining items

  16. khushboovashi commented on Aug 16, 2023

    @khushboovashi
    khushboovashi
    on Aug 16, 2023
    Contributor
    More actions

    Fix didn't work for RHRL 9. Apache version 2.4.53.

  17. khushboovashi
    moved this from In Testing to 🆕 New in Current Sprint (213)on Aug 16, 2023
  18. khushboovashi
    removed their assignment
    on Aug 16, 2023
  19. akshay-joshi
    added
    EDB Sprint 149
    and removed
    EDB Sprint 148
    on Aug 16, 2023
  20. yogeshmahajan-1903
    moved this from 🆕 New to 🏗 In Progress in Current Sprint (213)on Aug 23, 2023
  21. yogeshmahajan-1903
    self-assigned this
    on Aug 23, 2023
  22. akshay-joshi
    modified the milestones: 7.6, 7.7 on Aug 24, 2023
  23. yogeshmahajan-1903 commented on Aug 24, 2023

    @yogeshmahajan-1903
    yogeshmahajan-1903
    on Aug 24, 2023
    Contributor
    More actions

    This issue is fixed and verified. Redirection issue after failed login is not due to this, hence reopening #6704

  24. yogeshmahajan-1903
    closed this as completedon Aug 24, 2023
  25. yogeshmahajan-1903
    moved this from 🏗 In Progress to ✅ Done in Current Sprint (213)on Aug 24, 2023
  26. akshay-joshi
    removed this from Current Sprint (213)on Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @yogeshmahajan-1903
    yogeshmahajan-1903

Labels

Bug

Type

No type

Projects

No projects

    Milestone

    • 7.6

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.