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
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
Posted Wednesday in Jira

Join our webinar: How 1B+ feature flag events helped us build the new Jira

Every time you release software, there's a bit of risk – that there's a bug, that something breaks, or that the feature doesn't resonate with customers. Feature flagging helps make high stakes s...

127 views 0 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