Redirection

We have hosted jira on apache and trying to redirect to a custom made page when jira is down. I have used redirection option in apache but it is not working.Any idea on how we set up?

5 answers

This widget could not be displayed.

Hi there,

Could you please add your vhost here so we can try to determine what is causing the issue?

Regards,

Celso Yoshioka

This widget could not be displayed.
<VirtualHost *:80>
ServerName jira_URL

<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyRequests Off
ProxyPreserveHost On
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/
# redirect everything to SSL except trusted connection app paths
RewriteEngine on
# basic match abstract
#RewriteCond %{REQUEST_URI} ^/sr.*$
RewriteCond %{REQUEST_URI} !^/sr/jira.issueviews:searchrequest.*$
RewriteCond %{REQUEST_URI} !^/secure/RunPortlet.*$
RewriteCond %{REQUEST_URI} !^/rest.*$
RewriteCond %{REQUEST_URI} !^/plugins.*$
ReWriteRule ^(.*)$
https://jira_URLt$1 [L,R]
RewriteEngine on
RewriteCond %{REQUEST_URI} ^/(signup|login)$
RewriteRule ^/(.*) /etc/httpd/conf.d/test.html [L]
RewriteEngine on
RewriteCond %{REQUEST_URI} ^/(signup|login)$
RewriteRule ^/(.*) /temp/test.html [L]
This widget could not be displayed.

Any idea?

This widget could not be displayed.

For JIRA, I use a simpler vhost without the redirects as they are controlled by JIRA itself.

The vhost that I use is here:

<VirtualHost *:80>
    #Creating virtual host
    ServerAdmin admin@domain.com
    ServerName jira.example.com
    ServerAlias jira.example.com
    ProxyRequests Off
    ProxyPreserveHost On
    <Proxy *>
        Order deny,allow
        Allow from all
    </Proxy>
    ProxyPass / http://your_jira_original_url:8080/
    ProxyPassReverse / http://your_jira_original_url:8080/
    <Location />
        Order allow,deny
        Allow from all
    </Location>
    ErrorLog /path/to/example.com-error.log
    LogLevel debug
    CustomLog /path/to/example.com-access.log combined
</VirtualHost>
 
Please give it a try and let me know how it goes.
 
Regards,
Celso Yoshioka
This widget could not be displayed.

Still the same.i made the below changes and shutdown jira.But i got a "this webpage not available error"..instead i want a customaized page

<VirtualHost *:80>

ServerName jira5-test

ProxyRequests Off

ProxyPreserveHost On

<Proxy *>

Order deny,allow

Allow from all

</Proxy>

ProxyPass / http://localhost:8080/

ProxyPassReverse / http://localhost:8080/

<Location />

Order allow,deny

Allow from all

</Location>

ErrorLog /etc/httpd/conf/error.log

LogLevel debug

CustomLog /etc/httpd/conf/error.log combined

</VirtualHost>

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

198 views 1 3
Join discussion

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