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

[BUG] HTTPS loop after enabling SSL #1599

Open
SatanicGeek opened this issue Apr 11, 2024 · 1 comment
Open

[BUG] HTTPS loop after enabling SSL #1599

SatanicGeek opened this issue Apr 11, 2024 · 1 comment

Comments

@SatanicGeek
Copy link

OCS Inventory version
Version : 2.12.1

Describe the bug
I have an OCS server installation on Red Hat Enterprise Linux 9.3 (Plow). Everything is recent, no more than 2 weeks old.
Apache 2.4.57 and PHP 8.3.4 and a database on a different server.

I've just installed OCS on this server and everything worked fine until I enabled the SSL module.

When I try to access OCS Reports using https://a.domain.com/ocsreports/, a redirect loop is thrown and I end up with an error 404 with the following URL: https://a.domain.com/ocsreports//ocsreports/ocsreports/ocsreports/ocsreports/ocsreports/ocsreports/ocsreports/ocsreports/...
However, if I try to access it by typing https://b.domain.com/ocsreports/, everything works perfectly and there is no redirection.

The only way I can access OCS with a.domain.com is to specify index.php in the URL.

I've dug around in the Apache configuration files, the OCS configuration, I've disabled SELinux to test (and it doesn't work) and I've also tried creating .htaccess files everywhere but it doesn't work.

Every file I've modified, I've backed them up and restored them for testing, but nothing works.

My certificates (a.domain.com => alias b.domain.com and c.domain.com) are stored in a folder in /SCX/SSL/.

The necessary configuration for HTTPS is done via /etc/httpd/conf.d/ssl.conf.

I'm not sure what to do now ... Does anyone have any ideas or suggestions?

To Reproduce
Steps to reproduce the behavior:

  1. I don't realy know what are the steps to reproduce this bug. Fresh install ?

Expected behavior
When I type https://a.domain.com/ocsreports, I should land on sign in page of OCS Reports

Log file (optional)
Apache logs
access_log.log
error_log.log
ssl_access_log.log
ssl_error_log.log
ssl_request_log.log

@SatanicGeek
Copy link
Author

Si j'ai bien compris, l'équipe de dev est FR mais j'ai créé l'issue en anglais dans le cas où quelqu'un d'autre a le même problème dans le futur.

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

No branches or pull requests

5 participants