Hi folks,
I configured the first time in my life the apache webserver and tomcat using JIRA.
Now I have one bad issue left!
If I access JIRA through port 8080 (direct tomcat) all is ok.
If I access JIRA through port 80 (apache -> tomcat using AJP 1.3) the content I see is really bad.. It seems like I am getting no images and no formatting of text, no structure and so on..
Hope you can help me, thanks! :)
Here is how it works!! :)
I am so happy as it works now..
I don't know why I have to use such a RewriteRule..
Maybe there is a smarter solution - I don't know.
<VirtualHost x.x.x.x:80>
# JIRA Proxy Configuration:
ServerName jira.hostname
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
RewriteEngine On
RewriteRule ^/jira(.*)$ ajp://localhost:8009/jira$1 [P,L]
#RewriteCond %{HTTPS} off
#RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
ProxyRequests Off
ProxyPreserveHostOff
ProxyPass /ajp://jira.hostname:8009/jira/
ProxyPassReverse / http://jira.hostname/jira/
ProxyPassReverseCookiePath/jira /
</VirtualHost>
Hi Dave.
i assume you've read this KB article
did you set a "Context path" ?
can you post the proxy & proxyReverse settings for your host?
regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
yeah, I was going through this KB article! :)
I did set a context path: <Context path="/jira" ......
Here is my vh:
<VirtualHost *.*.*.*:80>
# JIRA Proxy Configuration:
ServerAdmin jira@domain
ServerName jira.domain
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
#RewriteEngine On
#RewriteCond %{HTTPS} off
#RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
ProxyRequests Off
ProxyPass / ajp://domain:8009/jira/
ProxyPassReverse / ajp://domain:8009/jira/
</VirtualHost>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
SSLProxyEngine On ProxyRequests Off ProxyPreserveHost On ProxyPass /jira ajp://localhost:8009/jira ProxyPassReverse /jira ajp://localhost:8009/jira
this is my config
why you connect to <domain> if your jira is on ajp at localhost?
i think you need the ProxyPreserveHost directive as well
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hm.. I have no idea whats going on..
I have now exactly your settings.. except SSLProxyEngine (but I actually have no SSL)..
Look at this path...?
http://jira.domain/jira/s/de_DE3hs8ib-418945332/849/3/18a4dc2c708dd57454fa134bf0dad058/_/download/contextbatch/css/atl.dashboard/batch.cssFailed to load resource: the server responded with a status of 404 (Not Found)
http://jira.domain/jira/s/de_DE3hs8ib-418945332/849/3/c2e41f2cf09f8b3c8914470a6617682d/_/download/contextbatch/css/jira.global/batch.cssFailed to load resource: the server responded with a status of 404 (Not Found)
http://jira.domain/jira/s/de_DE3hs8ib-418945332/849/3/ab0080b1e7b99e740b69e71918df70da/_/download/contextbatch/css/atl.general/batch.cssFailed to load resource: the server responded with a status of 404 (Not Found)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Oh YES! It works now! :)
This is my config now! I removed the jira path! ... Because in tomcat I have a context path = /jira ...
Thank you very much!
ProxyRequests Off
ProxyPreserveHostOn
ProxyPass / ajp://localhost:8009/
ProxyPassReverse / ajp://localhost:8009/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
it makes no difference... :(
in inspector :
path: /secure/Dashboard.jspathe only file which got found
all others, e.g:
path: /jira/s/de_DE3hs8ib-418945332/849/3/_/images/icon-jira-logo.png
HOW can I get rid of this /jira in the path. So.. why this prefix /jira is only on all files except Dashboard.jspa!?
I don't understand that....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
1. server base url: jira.localhost
2. I removed the context path = "/jira" - now its ""
3. proxypass is correct! it was correct all the time, if it would be wrong, I wouldn't see the jira startpage .. just without css, images etc... thats alone is my problem!
I deleted this and restartet tomcat etc..
It helped nothing.. :/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thats strange. do you remeber adding any redirect or something in your vhost.cfg file that points on ${you_host}/jira ?
atm i got no idea where this should be comming from
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am not sure what do you mean by content is bad, here are few pointers to start with
1. Check the root url configured in general settings
2. User firebug or any other developer tool on browser to see, what response you are getting for media files.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Looks like the media requests are not reaching jira, can you check if there are any other mappings in Apache that might be conflicting.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't know where I should look for this.. In my vhosts.conf I have only the virtual host for jira defined.
Maybe completely wrong but.. Do I have to specify mime types in httpd.conf?
What I tried is to remove in my ajp forwarding the /jira at the end of my url.. so it worked, but I had to go to jira.domain/jira, and I want just to go to jira.domain
Isn't it strange?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It would help if you can share your vhost config , I hope you followed instructions mentioned here https://confluence.atlassian.com/display/JIRA/Integrating+JIRA+with+Apache
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.