Skip to Content
Menu
This question has been flagged
1 Reply
4635 Views

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"

Avatar
Discard
Best Answer

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

Regards.

Avatar
Discard
Author

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.

Related Posts Replies Views Activity
12
Nov 23
16039
0
May 15
3859
2
Nov 23
16904
2
Aug 19
10978
1
Mar 15
5433