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

Hi. I managed to setup SSL for Odoo.

https://www.odoo.com/forum/help-1/question/how-to-set-up-odoo-8-with-ssl-and-apache2-61282
I have did what was suggested above. The SSL connection works.


But there's a glitch.
When i connect to https://localhost/ it works. Selected a database "Trial"

But when i tried to login, it automatically switches to http://localhost/web?db=Trial
"Not Found. The requested URL /web was not found on this server. Apache/2.4.7 (Ubuntu) Server at localhost Port 80"

I edited the server address to https://localhost/web?db=Trial
(by editing to add the "https://") then it works.

How do i fix this (so that it doesn't change to port 80) during login (or logout)
Thanks


Just for Info

TransferLog /var/log/apache2/transfer.localhost.log

127.0.0.1 - - [27/Sep/2015:23:24:53 +0800] "GET /web/database/selector HTTP/1.1" 200 803

127.0.0.1 - - [27/Sep/2015:23:24:56 +0800] "GET /web?db=Trial HTTP/1.1" 200 150

127.0.0.1 - - [27/Sep/2015:23:24:56 +0800] "GET /web/login?redirect=http%3A%2F%2Flocalhost%2Fweb%3Fdb%3DTrial HTTP/1.1" 200 1011

127.0.0.1 - - [27/Sep/2015:23:25:04 +0800] "POST /web/login HTTP/1.1" 303 265

ErrorLog /var/log/apache2/ssl.localhost.log

127.0.0.1 - - [27/Sep/2015:23:24:53 +0800] "GET /web/database/selector HTTP/1.1" 200 2910 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:41.0) Gecko/20100101 Firefox/41.0"

127.0.0.1 - - [27/Sep/2015:23:24:56 +0800] "GET /web?db=Trial HTTP/1.1" 200 623 "https://localhost/web/database/selector" "Mozilla/5.0 (X11; Linux x86_64; rv:41.0) Gecko/20100101 Firefox/41.0"

127.0.0.1 - - [27/Sep/2015:23:24:56 +0800] "GET /web/login?redirect=http%3A%2F%2Flocalhost%2Fweb%3Fdb%3DTrial HTTP/1.1" 200 1566 "https://localhost/web?db=Trial" "Mozilla/5.0 (X11; Linux x86_64; rv:41.0) Gecko/20100101 Firefox/41.0"

127.0.0.1 - - [27/Sep/2015:23:25:04 +0800] "POST /web/login HTTP/1.1" 303 847 "https://localhost/web/login?redirect=http%3A%2F%2Flocalhost%2Fweb%3Fdb%3DTrial" "Mozilla/5.0 (X11; Linux x86_64; rv:41.0) Gecko/20100101 Firefox/41.0"

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

Hi, I'm having the exact same issue. Did you manage to solve it?

Regards.

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

In the /etc/apache2/sites-available there is anothe conf file that uses port 80. That should be the problem (perhaps a default conf file. You should remove it or change it.

Bài viết liên quan Trả lời Lượt xem Hoạt động
12
thg 11 23
17542
0
thg 5 15
4727
2
thg 11 23
18578
2
thg 8 19
12053
1
thg 3 15
6163