Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Apache2 SSL connection Glitch

Mohamed Alsagoff
on 9/27/15, 11:30 AM 794 views

Hi. I managed to setup SSL for Odoo.

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)

Just for Info

TransferLog /var/log/apache2/transfer.localhost.log - - [27/Sep/2015:23:24:53 +0800] "GET /web/database/selector HTTP/1.1" 200 803 - - [27/Sep/2015:23:24:56 +0800] "GET /web?db=Trial HTTP/1.1" 200 150 - - [27/Sep/2015:23:24:56 +0800] "GET /web/login?redirect=http%3A%2F%2Flocalhost%2Fweb%3Fdb%3DTrial HTTP/1.1" 200 1011 - - [27/Sep/2015:23:25:04 +0800] "POST /web/login HTTP/1.1" 303 265

ErrorLog /var/log/apache2/ssl.localhost.log - - [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" - - [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" - - [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" - - [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"

On 4/16/16, 3:04 AM

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


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.

Mohamed Alsagoff
on 4/17/16, 11:35 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

3 follower(s)


Asked: 9/27/15, 11:30 AM
Seen: 794 times
Last updated: 4/16/16, 3:04 AM