Get a wrong on admin authentication page

Eugene Suzyumov August 12, 2012

Dear Atlassian Support Team,

I have an issue configuring Jira with Apache 2.2.

What I want to do is to put Apache in front of Jira and let Apache manage the SSL certificate.

The issue I have is that I can authenticate on my Jira without problem, but when I get to administration pages my password is requested again (as usual), but when I validate the authentication form I get HTTP error 105 (net::ERR_NAME_NOT_RESOLVED). This is because the form action in the HTML source code is wrong. It is

see the double slash in the form action

{code}

<form action="//secure/admin/WebSudoAuthenticate.jspa" class="aui" id="login-form" method="post">

...

</form>

{code}

instead of, I beleive,

{code}

<form action="/secure/admin/WebSudoAuthenticate.jspa" class="aui" id="login-form" method="post">

...

</form>

{code}

or

{code}

<form action="https://www.mydomain.com/secure/admin/WebSudoAuthenticate.jspa" class="aui" id="login-form" method="post">

...

</form>

{code}

The 2 solutions above works whe I edit the HTML source code and replace the actions form with these solutions.

I read these topics, but did not find my solution there :

* https://confluence.atlassian.com/display/JIRA/Integrating+JIRA+with+Apache

* https://confluence.atlassian.com/display/JIRA/Configuring+Apache+Reverse+Proxy+Using+the+AJP+Protocol

* https://confluence.atlassian.com/display/JIRA/Running+JIRA+over+SSL+or+HTTPS

This is my Apache configuration :

{code}

<virtualhost 192.168.1.22:443="">

ServerName www.mydomain.com

ServerAlias www.mydomain.com

DocumentRoot /var/www/

SSLEngine on

SSLCertificateFile /etc/apache2/certificats/server.crt

SSLCertificateKeyFile /etc/apache2/certificats/server.key

JkMount / jiraworker

JkMount /* jiraworker

ErrorLog /var/log/apache2/ssl_www.mydomain.com-error.log

CustomLog /var/log/apache2/ssl_www.mydomain.com-access.log combined

</virtualhost>

{code}

This my workers configuration

{code}

# Tomcat and Java configuration

#

workers.tomcat_home=/usr/local/tomcat

workers.java_home=/usr/local/java

ps=/

worker.list=jiraworker, hudsonworker

#

# Worker for JIRA

#

worker.jiraworker.type=ajp13

worker.jiraworker.port=9003

worker.jiraworker.cachesize=20

{code}

Nontheless, I suspect this configuration to be correct, because I can browse Jira without problem.

In System / General configuration menus, Base URL is https://www.mydomain.com (without slash at the end, and with https:// at the beginning).

Thank you in advance for your assistance

Best Regards

2 answers

0 votes
Eugene Suzyumov August 20, 2012

Right,

in the server.xml my context path was

path="/"

instead of

path=""

0 votes
AhmadDanial
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 12, 2012

Kindly check the Context path in your server.xml. :)

Suggest an answer

Log in or Sign up to answer