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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,825 views 12 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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot