GeezerVison is showing github.com — Bad URL redirection after authentication · Issue #5454 · pgadmin-org/pgadmin4
Bad URL redirection after authentication #5454DescriptionI want to access pgadmin through this URL http://localhost/ instead of http://localhost/pgadmin4
- 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>
-
Restart apache
-
Open browser at http://localhost
-
Get authenticated
Result;
After authentication, I get redirected to an error web page at http://localhost/pgadmin4 Activityadityatoshniwal commented on Oct 20, 2022 @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='' harmin-parra commented on Oct 20, 2022 Thanks, the procedure works fine. adityatoshniwal commented on Jul 28, 2023 Reopening this. pgAdmin4.wsgi will be replaced on every release, so changing it to fix the issue is not appropriate. khushboovashi commented on Aug 16, 2023 Fix didn't work for RHRL 9. Apache version 2.4.53. yogeshmahajan-1903 commented on Aug 24, 2023 This issue is fixed and verified. Redirection issue after failed login is not due to this, hence reopening #6704
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|