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

Hi there,

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

Regards,

Celso Yoshioka

<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]

Any idea?

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

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

503 views 1 18
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