Get a wrong on admin authentication page

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 vote
Ahmad Danial Atlassian Team Aug 12, 2012

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

Right,

in the server.xml my context path was

path="/"

instead of

path=""

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Off-topic

Get to know our Atlassian User Group Leaders from Bengaluru, India

Meet @Dinesh Dhinakaran, @Vishnu Vasudeva, @Rajeev Verma, and Jamshid Nalakath: Our extraordinary AUG leaders from Bengaluru, India. These four work together to strengthen the bonds of their local co...

137 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you