Hello, I’m just starting using Axelor and this is actually such a great software.
I have a question, right now, I have setup Axelor to be on the ROOT of the tomcat webapps, I have setup my Nginx Proxy Manager to point to my server using http port 8080.
Hello
I do also use NGINX to manage HTTPS and Proxy to port 8080
I think you have a wrong nginx configuration
See below configuration
# Tomcat config
upstream tomcat {
server 127.0.0.1:8080 fail_timeout=0;
}
server {
listen 80 default_server;
listen [::]:80 default_server;
# SSL configuration
#
# listen 443 ssl default_server;
# listen [::]:443 ssl default_server;
#
# Note: You should disable gzip for SSL traffic.
# See: https://bugs.debian.org/773332
#
# Read up on ssl_ciphers to ensure a secure configuration.
# See: https://bugs.debian.org/765782
#
# Self signed certs generated by the ssl-cert package
# Don't use them in a production server!
#
# include snippets/snakeoil.conf;
root /var/www/html;
# Add index.php to the list if you are using PHP
index index.html index.htm index.nginx-debian.html;
server_name _;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
#try_files $uri $uri/ =404;
include proxy_params;
proxy_pass http://tomcat/;
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
send_timeout 600;
}
}
server {
root /var/www/html;
# Add index.php to the list if you are using PHP
index index.html index.htm index.nginx-debian.html;
server_name www.staging.example.com staging.example.com; # managed by Certbot
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
#try_files $uri $uri/ =404;
include proxy_params;
proxy_pass http://tomcat/;
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
send_timeout 600;
}
listen [::]:443 ssl ipv6only=on; # managed by Certbot
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/staging.example.com/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/staging.example.com/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
And the certificate works.
We are on axelor 7.2.5.
We were able to setup APACHE(WEB) / APACHE (TOMCAT) / LET’S ENCRYPT in order to acheive that.
If this is the situation you are looking for, feel free to ask for configuration files.
I encountered the same issue today. After messing around with it. I used this under location for the SSL server block and I don’t get redirected to port 80 any longer when I log out
I don’t use NGINX proxy manager. I just use NGINX on ubuntu. Possibly just use regular NGINX instead of the proxy manager version? Could you show me the config file? I could compare it to mine. I definitely had the same issue you had and that worked for me.