我正在尝试将Jira安装到LXC容器中。容器位于作为代理运行nginx
的计算机上。 nginx
正在获取在端口443上传入jira
的请求,并将其重定向到jira's
容器端口80(jira
是在authbind的帮助下侦听端口80)。实际上一切正常,但jira无法连接到Atlassian Market。这是我的server.xml
<?xml version="1.0" encoding="utf-8"?>
<Server port="8005" shutdown="SHUTDOWN">
<Listener className="org.apache.catalina.startup.VersionLoggerListener" />
<!-- Prevent memory leaks due to use of particular java/javax APIs-->
<Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
<Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />
<Service name="Catalina">
<Connector
acceptCount="100"
connectionTimeout="20000"
disableUploadTimeout="true"
enableLookups="false"
maxHttpHeaderSize="8192"
maxThreads="150"
minSpareThreads="25"
port="80" protocol="HTTP/1.1"
redirectPort="8443"
useBodyEncodingForURI="true"
scheme="https"
proxyName="jira.ddos-guard.net" proxyPort="443"/>
<Connector port="80"
maxThreads="150"
minSpareThreads="25"
connectionTimeout="20000"
URIEncoding="UTF-8"
enableLookups="false"
maxHttpHeaderSize="8192"
protocol="HTTP/1.1"
useBodyEncodingForURI="true"
redirectPort="8443"
acceptCount="100"
disableUploadTimeout="true"
bindOnInit="false"/>
<Listener className="org.apache.catalina.core.AprLifecycleListener"
SSLEngine="on" SSLRandomSeed="builtin" />
<Engine name="Catalina" defaultHost="localhost">
<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true">
<Context path="" 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>
</Host>
<Valve className="org.apache.catalina.valves.AccessLogValve"
pattern="%a %{jira.request.id}r %{jira.request.username}r %t"%m %U%q %H" %s %b %D "%{Referer}i" "%{User-Agent}i" "%{jira.request.assession.id}r""/>
</Engine>
</Service>
</Server>
这是我在搜索插件时尝试tcpdump流向MarketPlace的ip的流量时得到的信息
09:01:24.208731 IP (tos 0x0, ttl 64, id 22452, offset 0, flags [DF], proto UDP (17), length 67)
jira.mydomain.net.60817 > mydns-address.domain: [bad udp cksum 0x4817 -> 0x8758!] 52973+ A? plugins.atlassian.com. (39)
09:01:24.210589 IP (tos 0x0, ttl 60, id 34505, offset 0, flags [DF], proto UDP (17), length 83)
mydns-address.domain > jira.mydomain.net.60817: [udp sum ok] 52973 q: A?
plugins.atlassian.com. 1/0/0 plugins.atlassian.com. [55m46s] A 131.103.28.7 (55)