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

I installed odoo in amazon EC2 and configured nginX with an elastic IP (public/static). I can access odoo using just my elastic IP address (xx.xx.xxx.xx) without using the 8069 port number. For that I know nginX working properly. 

I have a domain name registered with namecheap and I pointed that to my server IP (elastic IP). but when I try my domain name (domain.xyz) it shows me the default "Welcome ro nginx page" rather than my odoo page.

How can I solve this?

Also I want to use two FQDN (domain.xyz & example1.com) for 2 different odoo database. I know there are options like --db-filter='^%d' for Host name and --db-filter='^%h' for full domain name filtering. but coudnt find any guide for doing it using nginX. How can I achieve this with nginx.


Always appreciates community help.

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

Wow, all this to configure multiple sites?  Come on Odoo, should be configureable and not have to go thru this kludge.

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

Well, using Google with the search terms Odoo and Nginx provides me with 345'000 search results, adding dbfilter as a search term provides me 9890 search results, but maybe your google is broken. A very good guide (which is on the first page of search results) is this one: https://antiun.github.io/odoo-reverse-proxy-howto/ (but please ignore the part about private SSL certificates).

Concerning your issue with showing the nginx welcome page: obviously you did not set up nginx properly (check your vhost and the logs), but without further information nobody can help you.

Concerning the proper setting of dbfilter you may want to study this answer: https://www.odoo.com/forum/help-1/question/odoo-8-0-apache2-how-to-configure-a-proxy-from-an-url-to-a-specific-database-in-a-multi-database-setup-110545#answer-110604


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 4 16
3794
0
thg 3 15
3584
3
thg 5 24
22721
0
thg 10 23
978
1
thg 11 20
4018