Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to run Jira on local server

staffbot office January 15, 2019

I installed Jira using this 

https://community.atlassian.com/t5/Jira-Software-articles/How-to-setup-a-secured-Jira-Software-7-9-0-on-Ubuntu-16-04-4-in/ba-p/779988

I put to web [removed by moderator]

Response next:

Welcome to nginx!

If you see this page, the nginx web server is successfully installed and working. Further configuration is required.

For online documentation and support please refer to nginx.org.
Commercial support is available at nginx.com.

Thank you for using nginx.

Could you plese help me to understand my situation
Thanks

3 answers

0 votes
Bastian Stehmann
Community Champion
January 15, 2019

Hi @staffbot office,

welcome to the community.

I just removed your IP, as this is a public forum and you probably do not want to publish it to the public.

You tried to connect on port 8080, where obviously your nginx is listening.

The nginx configuration you posted is listening on port 443. So you might try if you can reach your Jira on that port.

And if you did not anonymize the server name for posting it here, you should change that to the correct server name.

staffbot office January 16, 2019

@Bastian Stehmann 

Could you help me understand where I need to fix it ? 

0 votes
Nic Brough -Adaptavist-
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.
January 15, 2019

From that nginx config, I would say you need to visit https://jira.mycompany.com to see Jira.

staffbot office January 15, 2019

https://jira.mycompany.com - it is not real 

You mean what I need to use real domain for checking Jira ?

Nic Brough -Adaptavist-
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.
January 15, 2019

Yes, replace jira.mycompany.com with whatever you have on the "server" line in your nginx settings.  Note that you will need to have set up that url in your DNS too.

Like staffbot office likes this
staffbot office January 15, 2019

I try to do it after getting right dnsname from my provider.

Thanks a lot. I will come back soon  

staffbot office January 16, 2019

@Nic Brough -Adaptavist- hello, 

1\ I changed parametr on 

/etc/nginx/sites-available/jira

proxy_pass http://localhost:8080 to my "IP":8080 

2\ I put web link "IP":8080 and get next link with error (Page not found) 
http://IP:8080/startup.jsp?returnTo=%2Fdefault.jsp

Could you please help me.

jira.jpg

Nic Brough -Adaptavist-
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.
January 16, 2019

What have you set in the connector in Jira (well, Tomcat) - the server.xml in <jira install>/conf has a line in it that includes "context" - what have you got in the active connector?

Also, try dropping the 8080 - one of the reasons for using a proxy is to avoid having to use the port - exposing Jira on just the ip address of the proxy in your case.

staffbot office January 16, 2019

@Nic Brough -Adaptavist- 

I have it: 

<Connector port="8080" maxThreads="150" minSpareThreads="25" connectionTimeout="20000" enableLookups="false"
maxHttpHeaderSize="8192" protocol="HTTP/1.1" useBodyEncodingForURI="true" redirectPort="8443"
acceptCount="100" disableUploadTimeout="true" bindOnInit="false" proxyName="jira.mycompany.com" proxyPort="443" s$

Nic Brough -Adaptavist-
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.
January 16, 2019

Ok, that's good.  Now drop the 8080 for the "outside" of the proxy, as you don't need it, just go to http://IP  as that's what your proxy will be set to serve.  (I'm assuming the s$ on the end is a miskey)

0 votes
staffbot office January 15, 2019

server {
listen 443 ssl;
server_name jira.mycompany.com;
keepalive_timeout 70;
ssl_certificate /etc/nginx/ssl/jira.crt;
ssl_certificate_key /etc/nginx/ssl/jira.pem;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 1d;
large_client_header_buffers 4 32k;
gzip on;
gzip_min_length 10240;
gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/xml;
location / {
proxy_pass http://localhost:8080;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 30M;
proxy_connect_timeout 300;
proxy_send_timeout 300;
proxy_read_timeout 300;
send_timeout 300;
}
}

Suggest an answer

Log in or Sign up to answer