-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nginx reverse proxy back-circle to localhost in configuration? #1
Comments
@SaschaMuehl
Proxy pass is 127.0.0.1:92. Do you share the same server for Nginx and Jira? If yes, 127.0.0.1 is ok, if no you should use Jira server private IP or DNS record. Also, connector port in your server.xml is 8080, but you are using 92 port as a target in proxy. Use the following pattern for proxy pass: |
Thanks for your fast reply @totallytot,
(to say www.mypage.de/jiraX:80 or 111.222.333.444/jiraX:80--> 127.0.0.1:92 -->127.0.0.1:8080) Please correct me. Well it didn't work. So I opened the Port 8080 for anywhere and build a new server block for the Port 8080. This is also not working. Also I decommend the 8181 connector. I played a bit with and tried to call in browser with "403 Forbidden" result: This is the new File: [v2]_mypage.de.txt What am i doing wrong? |
@SaschaMuehl Your location block for Jira should look like (rows 187-193):
Do not add another server block, just location. If Jira is on another sever, use proxy_pass http://jira_internal_ip:8080/jira; Port 8080 should be open for Nginx server. Also, do not forget about Nginx logs. In this case when you access http://mypage.de/jira you will be redirected to https://mypage.de/jira based on first server block. Afterwards, Nginx will try to match location /jira in second server block and proxy request to 127.0.0.1:8080/jira (or jira_server_ip:8080/jira) and give the output to user's browser.
|
@totallytot proxy_pass http://127.0.0.1:8080/jira; in the first location Block ("location / ") ist working I tried in Browser:
Error Logs after (1):
The access-Log tells me for myself nothing: But (!) the jira.https.access.log is quite strange. There seems to be a circle. |
@SaschaMuehl
Why you cannot use |
@totallytot, sry for the late reply - the work distracted me. After setting up:
I still get passed to Sth. is still wrong with the code I think. According to the access.log I get a lot of inquerries like (...jirajirajirajirajirajira...): |
@SaschaMuehl Current config is not actual for your situation. |
First of all, thank you for sharing your configurations.
I tried to set up Jira in my LEMP-Stack but fail on my reverse NGINX proxy. After trying to set up the proxy i.a.w. Configure Jira server to run behind a NGINX reverse proxy | Jira | Atlassian Documentation
My target is to reach: mypage.de/jiraX
I tried the original Documentation and your config Files but just get back "404 Not Found - nginx" calling
mypage.de/jiraX.
Could you help me please to find the mistake in my settings? It would be awesome. Me and a friend of mine, we want to use the agile platform to bring a volunteering project to the next level. Thank you very much
My blocks are slightly different to yours. I do have a main nginx configuration file mypage.de which catches the http and https requests (including SSL Snippets etc. - works with other apps) und for each "mypage.de/.." an extra file with its own configuration which is leading to internal ports 127.0.0.1:PortX .
I think I my problem is the proxy passing but I'm not sure.
Here are the mentioned Nginx-Configurations
mypage.de.txt
mypage.de_jira.txt
My server.xml looks like this (I enabled http and https Connector):
and
<Context path="/jira" docBase="${catalina.home}/atlassian-jira" reloadable="false" useHttpOnly="true">
The text was updated successfully, but these errors were encountered: