在jira上运行jira。 .com

我有jira安装在我的服务器上。
它运行在http:// [我的 IP地址]:8100。 我将其更改为http:// jira。[我的域名] .com。

现在,我在http:// jira。[my domain] .com上访问它后,浏览器path变为http:// jira。[my domain] .com:8100 / secure / Dashboard.jspa。

  1. 港口为什么出现?
  2. 有没有办法从这个redirect中删除8100端口。 我想它是http:// jira。[我的域名] .com / secure / Dashboard.jspa
  3. 此外,我的杰拉现在对jira。[我的域名] .com和[我的ip地址]:8100都有回应。 后者是损坏的。 是否有可能阻止用户访问它?

正如你没有提到有JIRAconfigurationSSL可以包括需要在jira/conf/server.xml中可以redirect的地方放置一个proxyName条目我会假设你没有进入pipe理屏幕和更新您的Base URL设置。 你没有提到你在端口80上听jira主机名,但我认为它是Apache。

下面是我用于JIRA实例的Apacheconfiguration:

 <VirtualHost *:80> ServerName jira.example.net ErrorLog ${APACHE_LOG_DIR}/jira-error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog ${APACHE_LOG_DIR}/jira-access.log combined <Proxy *> Order deny,allow Allow from all </Proxy> RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L] # ProxyRequests Off # ProxyPreserveHost on # ProxyPass / http://jira.internal.host:8080/ connectiontimeout=5 timeout=300 # ProxyPassReverse / http://jira.internal.host:8080/ </VirtualHost> <VirtualHost *:443> ServerName jira.undergrid.net ErrorLog ${APACHE_LOG_DIR}/jira-error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog ${APACHE_LOG_DIR}/jira-access.log combined <Proxy *> Order deny,allow Allow from all </Proxy> SSLEngine on SSLProxyEngine on SSLCertificateFile /etc/ssl/certs/jira.example.net.crt SSLCertificateKeyFile /etc/ssl/private/jira.example.net.key SSLCACertificatePath /etc/ssl/certs/ ProxyRequests Off ProxyPreserveHost on ProxyPass / http://jira.internal.host:8080/ connectiontimeout=5 timeout=300 ProxyPassReverse / http://jira.internal.host:8080/ </VirtualHost> 

在我的情况下,Apache和JIRA服务器在两台不同的机器上运行,但configuration可以工作,无论如何。 然后,我更新了jira/conf/server.xml以包含以下内容:

  <Connector port="8080" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" connectionTimeout="20000" scheme="https" proxyName="jira.example.net" proxyPort="443" enableLookups="false" maxHttpHeaderSize="8192" protocol="HTTP/1.1" useBodyEncodingForURI="true" redirectPort="8443" acceptCount="100" disableUploadTimeout="true"/> <Connector port="8443" protocol="org.apache.coyote.http11.Http11Protocol" maxHttpHeaderSize="8192" SSLEnabled="true" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" disableUploadTimeout="true" acceptCount="100" scheme="https" secure="true" keystoreFile="${user.home}/.keystore" keyAlias="jira.example.net" clientAuth="false" sslProtocol="TLS" useBodyEncodingForURI="true"/> <Connector port="8009" redirectPort="8443" enableLookups="false" protocol="AJP/1.3" URIEncoding="UTF-8"/> 

最后一步是通过以JIRApipe理员身份loginJIRA并进入pipe理 – > 系统 – > 常规configuration并编辑Base URL来更新Base URL以准备https://jira.example.net