Redirection

Anup August 18, 2013

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

0 votes
Anup August 21, 2013

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>

0 votes
CelsoA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 21, 2013

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
0 votes
Anup August 20, 2013

Any idea?

0 votes
Anup August 19, 2013
<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]
0 votes
CelsoA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 18, 2013

Hi there,

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

Regards,

Celso Yoshioka

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events