Menu

secure_connection = true is not working for me

2015-01-22
2015-02-04
  • Tobias Michelis

    Tobias Michelis - 2015-01-22

    Hi,
    I set up iTop and wanted to to set it up using https only. For this I defined a virtual host in ssl.conf. I added the line 'RequestHeader set HTTPS on' as suggested by the documentation and set 'secure_connection = true'. Login is working. When I tried to access a menu under 'Admin Tools' for instance I got the error

    Fatal error - itop cannot continue
    Error: secure connection required.

    So I configured a redirect rule in httpd.conf

    AllowOverride All
    

    and added .htaccess in DocumentRoot of iTop containing

    RewriteEngine on
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
    

    Now I don't get the error anymore, but I'm always redirected to the 'welcome page'. I can access from there the 'Contact page' for instance, but when I try to show all contacts the query is not displayed on the webpage and doesn't come back. The log file of apache and itop are not showing anything. Can someone point me to what I'm doing wrong?

    Cheers
    Tobias

    edit: I'm using iTop Version 2.1.0

     

    Last edit: Tobias Michelis 2015-01-22
  • TwinTraveller

    TwinTraveller - 2015-02-03

    Hi Tobias,

    I'm not entirely sure that this is related as I'm not an expert in the matter, but it sound as if iTop is always trying to go back to the non-SSL version.

    Can you check the 'app_root_url' value in your config-itop.php file and ensure that this is set to 'https://itop.yourdomain.com"

    Hope this helps.

     
  • Tobias Michelis

    Tobias Michelis - 2015-02-04

    Hi TwinTraveller,

    that was exactly the problem. I missed the line somehow. Thank you very much.

    Cheers
    Tobias

    edit: Sometimes things can be so easy, if you are doing it the right way ;).

     

    Last edit: Tobias Michelis 2015-02-04

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.