Hello Community,
I'm setting up a proxy reverse to Jira Service Desk with nginx on Ubuntu 20.04. I've followed the documentation provided by Jira, but something is not working or I'm making wrong. I'm clearly pulling out my hair from many days. I've also tryed many tutorials found on the web.
The desired result when a customer go to website is the flollowing :
http://www.subdomain.exemple.com => https://subdomain.exemple.com
https://www.subdomain.exemple.com => https://subdomain.exemple.com
http://subdomain.exemple.com => https://subdomain.exemple.com
https://subdomain.exemple.com => https://subdomain.exemple.com
Here is the part (215th version xD ) of my nginx.conf :
server {
listen 80;
server_name www.subdomain.exemple.com subdomain.exemple.com;
rewrite ^ https://subdomain.exemple.com$request_uri? permanent;
}
server {
listen 443 ssl;
server_name subdomain.exemple.com;
# NGINX usually only allows 1M per request. Increase this to JIRA's maximum attachment size (10M by default)
client_max_body_size 10M;
#ssl_dhparam /path/to/file/file.pem
ssl_certificate /path/to/file/file.crt;
ssl_certificate_key /path/to/file/file.key;
ssl_session_timeout 10m;
ssl_prefer_server_ciphers on;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers '!DHE-DSS-AES256-GCM-SHA384:!DHE-RSA-AES256-GCM-SHA384:!DHE-RSA-AES256-SHA256:!DHE-DSS-AES256-SHA256>
location / {
client_max_body_size 100m;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://subdomain.exemple.com:8080;
}
}
}Here is the connector in server.xml :
<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="subdomain.exemple.com"
proxyPort="443"
scheme="https"
secure="true"
relaxedPathChars="[]|"
relaxedQueryChars="[]|{}^\`"<>"
/>
I have a wildcard certificate for *.exemple.com.
The hostname of server is :
root@localhost:~# hostname
localhost
Any help would be appreciated. If you need more informations, let me know.
Thanks.
S