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

Hello anyone help plz

i have error with discus & live chat it not work properly

The discus could not show the message after i load the page plz see the video

https://www.youtube.com/watch?v=f7lLM27okPY&feature=youtu.be

The live chat not work after successful installation plz help 


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

Im done with this code below and it work now :) i hop that im right

~# vim /etc/rc.local

add 2 line bellow at the end of rc.local

iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8069iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 443 -j REDIRECT --to-port 8070

then save

if the rc.local doesn't exsit just create rc.local file then run commend:

chmod +x /etc/rc.localsh /etc/rc.local

add following code to rc.local file.

#!/bin/sh -e## rc.local## This script is executed at the end of each multiuser runlevel.

# Make sure that the script will "exit 0" on success or any other# value on error.

## In order to enable or disable this script just change the execution# bits.

## By default this script does nothing.

iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8069iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 443 -j REDIRECT --to-port 8070exit 0

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

Hi Chau Le,

Chat runs on a separated service on port 8072 (default), on a linux system, you need --workers parameter in your startup script to get it works:

odoo.py --addons-path=addons --db_user=odoo --workers=3


And also, it seems to be that you are running Odoo under nginx proxy, so please forward /longpolling request to "longpolling-port":

nginx:

location /longpolling {
     proxy_pass http://127.0.0.1:8072;
}


And to make sure longpolling is the cause, pleas turn on F12 mode of your browser and verify that requests to /longpolling fail

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 8 23
43837
0
thg 4 25
830
0
thg 11 24
1209
0
thg 5 24
20
0
thg 2 24
1189