MantisBT - TestLink
View Issue Details
0007495TestLinkGeneralpublic2016-04-05 12:142017-01-22 08:08
VMware ApplianceCentOS6.7
1.9.14 (2015 Q3) 
Independant, but in this case mozilla/5.0 (windows nt 6.1; wow64; rv:45.0) gecko/20100101 firefox/45.0
5.6.20 [your version]
0007495: After successful installation, it is not possible to login as admin, if Nginx is used as a reverse Proxy
Complete installation was successful,

Accessing the login page for the "first time", it does not allow you to log into the system. The login screen just reappears!

This is presumably the problem as reported in 0006015!
- install the system, using a secure connection behind a reverse Proxy (Nginx)
- after completing the installation, the system asks you to login as admin/admin
- Login page is displayed with unencrypted elements. Entering the initial credentials "admin/admin" the login screen reappears.
Doing exactly the same steps without the reverse proxy, "using a local network connection", the login works correctly!
No tags attached.
related to 0006015closed fman Webserver: Nginx - https is forced incorrectly 
Issue History
2016-04-05 12:14wnow7pNew Issue
2016-04-06 05:38fmanQA Team - Task Workflow Status => TBD
2016-04-06 05:38fmanCategorySecurity - General => General
2016-04-06 05:41fmanNote Added: 0024664
2016-04-06 05:41fmanStatusnew => feedback
2016-04-08 10:06wnow7pNote Added: 0024666
2016-04-08 10:06wnow7pStatusfeedback => new
2016-04-08 18:20fmanRelationship addedrelated to 0006015
2016-04-08 18:21fmanNote Added: 0024667
2016-04-10 09:35fmanAssigned To => fman
2016-04-10 09:35fmanStatusnew => feedback
2016-04-11 07:46wnow7pNote Added: 0024676
2016-04-11 07:46wnow7pStatusfeedback => assigned
2016-04-11 19:26fmanNote Added: 0024692
2016-04-11 19:26fmanStatusassigned => feedback
2016-04-19 07:33fmanNote Added: 0024708
2016-04-19 09:18wnow7pNote Added: 0024711
2016-04-19 09:18wnow7pStatusfeedback => assigned
2016-04-19 09:18wnow7pNote Added: 0024712
2016-04-19 18:26fmanNote Added: 0024714
2016-12-28 18:58fmanStatusassigned => resolved
2016-12-28 18:58fmanResolutionopen => fixed
2017-01-22 08:08fmanNote Added: 0025901
2017-01-22 08:08fmanStatusresolved => closed

2016-04-06 05:41   
1) what is relation between two issues other the word 'nginx'? please explain clearly

2) Unfortunately I'v no way to reproduce your infrastructure and in addition according to your additiona notes, without reverse proxy TestLin works ok.

it's is not clear what do you mean for:
>>- Login page is displayed with unencrypted elements.

your only option is to debug the code by yourself to undertand what is happening
2016-04-08 10:06   
We tried to workaround the issue by changing the configuration of Nginx.
So this can be closed as a duplicate of 0006015

Best Regards,
2016-04-08 18:21   
would you mind to detail here Nginx config changes? it sure be useful for other people.

2016-04-11 07:46   
Sorry, I don't have access to the specific Nginx configuration, as this is managed by a separate department and I don't have access to these details.

Best regards,
2016-04-11 19:26   
IT will be great if you can get the details and put here, in order to share knowledge and save time for other users
2016-04-19 07:33   
please provide requested info to community
2016-04-19 09:18   
The following solved at least our local issue:

 location ~ \.php$ {
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
        # With php5-cgi alone:
        # fastcgi_pass;
        # With php5-fpm:
        fastcgi_pass unix:/var/run/php5-fpm.sock;
        fastcgi_index index.php;
        include fastcgi_params;
2016-04-19 09:18   
Forgot to mention, a nginx restart is required!

2016-04-19 18:26   
Thanks for info!!
2017-01-22 08:08   
1.9.16 released