Installed on Centos 7 (LAMP)
After proxying server in accordance with this article https://confluence.atlassian.com/kb/proxying-atlassian-server-applications-with-apache-http-server-mod_proxy_http-806032611.html
my Jira opens by new address, but unfortunatelly without media, picture etc.
My connector and context path in server.xml
...
<Connector port="8100" maxThreads="150" minSpareThreads="25" connectionTimeout="20000" enableLookups="false"
maxHttpHeaderSize="8192" protocol="HTTP/1.1" useBodyEncodingForURI="true" redirectPort="8443"
acceptCount="100" disableUploadTimeout="true" bindOnInit="false" scheme="http"
proxyName="******" proxyPort="80" />
...
<Context path="/jira" docBase="${catalina.home}/atlassian-jira" reloadable="false" useHttpOnly="true">
<Resource name="UserTransaction" auth="Container" type="javax.transaction.UserTransaction"
factory="org.objectweb.jotm.UserTransactionFactory" jotm.timeout="60"/>
<Manager pathname=""/>
<JarScanner scanManifest="false"/>
</Context>
My virtualhost in /etc/httpd/conf.d/
<VirtualHost *:80>
ServerName *********
ProxyRequests Off
ProxyVia Off
<Proxy *>
Require all granted
</Proxy>
ProxyPass /jira ***********************
ProxyPassReverse ***********************
</VirtualHost>
Please advice what should be changed?
Best!
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.
@Roman Lemtugovcan you add these comment also and try again
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
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.
after connection AJP and adding RewriteRule and some experiments the problem is gone.
Final virtualhost looks like:
<VirtualHost *:80>
ServerName ************
ProxyRequests Off
ProxyVia Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
RewriteEngine On
RewriteRule ^/jira(.*)$ ajp://***********:*******/jira$1 [P,L]
#RewriteCond %{HTTPS} off
#RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
ProxyRequests Off
ProxyPreserveHost Off
# ProxyPass /jira http://1*********100/jira/
# ProxyPassReverse /jira http://192*******00/jira/
ProxyPass /jira ajp://192*************/jira/
ProxyPassReverse /jira ajp://**********/jira/
ProxyPassReverseCookiePath /jira /
</VirtualHost>
Please help me understand how the problem was solved and why :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Roman Lemtugov for apache server we have two ways of Proxying Atlassian server applications with Apache server. One is 'mod_proxy_http' and second one is 'mod_proxy_ajp' protocol so you used the ajp protocol, and i am happy that it works! :)
Best !
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.