Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
4 Trả lời
2621 Lượt xem

Seeking assistance with the following issue: When I install Odoo 17, accessing Odoo through IP:port works perfectly without any errors. However, when I use Nginx to access Odoo via IP, I encounter a problem. Clicking on the menu bar and selecting 'Website' causes the system to hang, and it continuously spins at the following web address: https://domain/web#menu_id=124&action=197&cids=1. Please help. Clicking on other fields still works normally, only the 'Website' is affected."

Ảnh đại diện
Huỷ bỏ
Tác giả

Could you please help me with this issue?

When I click on the website, it keeps spinning and does not redirect to the home page.

If I still use IP:8069, I can still click and use it normally.

However, if I use the domain with Nginx, the above error occurs.

Tác giả

This is my config file located at the path sudo nano /etc/nginx/sites-available/odoo17_https.conf
server {
listen 80;
server_name 192.168.7.101;

# Chuyển hướng tất cả các truy cập HTTP sang HTTPS
return 301 https://$host$request_uri;
}

server {
listen 443 ssl;
server_name 192.168.7.101;

ssl_certificate /etc/nginx/ssl/ssl_certificate.crt;
ssl_certificate_key /etc/nginx/ssl/ssl_certificate_key.key;

# Cấu hình SSL
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers 'TLS_AES_128_GCM_SHA256:TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384';
ssl_prefer_server_ciphers off;
ssl_session_timeout 1d;
ssl_session_cache shared:SSL:10m;

access_log /var/log/nginx/odoo_https_access.log;
error_log /var/log/nginx/odoo_https_error.log;

# Cấu hình proxy
proxy_read_timeout 720s;
proxy_connect_timeout 720s;
proxy_send_timeout 720s;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;

location / {
proxy_redirect off;
proxy_pass http://192.168.7.101:8017;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}

location ~* /web/static/ {
proxy_cache_valid 200 90m;
proxy_buffering on;
expires 864000;
proxy_pass http://192.168.7.101:8017;
}

gzip_types text/css text/less text/plain text/xml application/xml application/json application/javascript;
gzip on;
}

Tác giả

https://upanh.tv/image/y7Kpsg Here is a link to the image of my problem:

Câu trả lời hay nhất

Hi, you can follow this: https://youtu.be/-3wV7A_4s-w

Hope it helps

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

Please refer to our blog to set odoo with nginx as reverse proxy

https://www.cybrosys.com/blog/how-to-configure-odoo-with-nginx-as-reverse-proxy


Hope it helps

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Please provide detailed information about issue.

Ảnh đại diện
Huỷ bỏ
Tác giả

Here is a link to the image of my problem: https://upanh.tv/image/y7Kpsg

Tác giả

Could you please help me with this issue?

When I click on the website, it keeps spinning and does not redirect to the home page.

If I still use IP:8069, I can still click and use it normally.

However, if I use the domain with Nginx, the above error occurs.

Tác giả

This is my config file located at the path sudo nano /etc/nginx/sites-available/odoo17_https.conf
server {
listen 80;
server_name 192.168.7.101;

# Chuyển hướng tất cả các truy cập HTTP sang HTTPS
return 301 https://$host$request_uri;
}

server {
listen 443 ssl;
server_name 192.168.7.101;

ssl_certificate /etc/nginx/ssl/ssl_certificate.crt;
ssl_certificate_key /etc/nginx/ssl/ssl_certificate_key.key;

# Cấu hình SSL
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers 'TLS_AES_128_GCM_SHA256:TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384';
ssl_prefer_server_ciphers off;
ssl_session_timeout 1d;
ssl_session_cache shared:SSL:10m;

access_log /var/log/nginx/odoo_https_access.log;
error_log /var/log/nginx/odoo_https_error.log;

# Cấu hình proxy
proxy_read_timeout 720s;
proxy_connect_timeout 720s;
proxy_send_timeout 720s;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;

location / {
proxy_redirect off;
proxy_pass http://192.168.7.101:8017;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}

location ~* /web/static/ {
proxy_cache_valid 200 90m;
proxy_buffering on;
expires 864000;
proxy_pass http://192.168.7.101:8017;
}

gzip_types text/css text/less text/plain text/xml application/xml application/json application/javascript;
gzip on;
}

Have you purchased IP address or using local network IP??

Tác giả Câu trả lời hay nhất

This problem has been resolved Thank ALL


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 5 25
2688
2
thg 5 25
6119
1
thg 3 25
1802
4
thg 3 25
4680
3
thg 2 25
5762