Skip to Content
Menu
This question has been flagged

This is a full guide for setting up Odoo 14 under Windows 10 Professional with Microsoft IIS.

1. Windows Professional or Windows Server is required. These instructions apply to Windows 10 Professional.

2.      Activate IIS. There are many instructions on how to do this on the Internet.  https://teckangaroo.com/enable-iis-windows-10/



3     URL Rewrite installieren  https://www.iis.net/downloads/microsoft/url-rewrite

        It is very important not to use "localhost" as a value in the reverse proxy rules, otherwise         various things will not work properly. Instead, http://127.0.0.1:8069 must be used. The           port must match the port you are using for Odoo.


4     Install Application Request Routing https://www.iis.net/downloads/microsoft/application-         request-routing  

5     Connect the domain to your own computer. The best thing to do here is to request a static IP from your provider and then forward the domain accordingly to the IP address of the router. Port forwarding must be set up in the router so that incoming requests are forwarded via port 80 and 443 to the computer on which Odoo is running. Example with the Fritz Box router https://www.cfos.de/en-us/cfos-personal-net/port-forwarding/avm-fritzbox-7490.htm Please  set up the forwarding  for port 80 (http) and for port 443 (https ). Nowadays one should not only work with http, because otherwise the files will not be exchanged in encrypted form, which is a very high security risk. However, this is now well known.



6 Create SSL certificate with https://certifytheweb.com/ You can find extensive instructions here to edit the bindings in the IIS.



7    Edit IIS bindings.  https://www.ssl.com/how-to/binding-in-iis-10/


8    Redirect http to https 

https://www.namecheap.com/support/knowledgebase/article.aspx/9953/38/iis-redirect-http-to-https/

9    Create reverse proxy rules in the ISS https://shyju.wordpress.com/2019/04/10/enable-iis-redirect-and-https-for-odoo-on-windows-server/ 

Activate the following values ​​under "Synchronize content": A, Form, Frame, IFrame, Img

It works fine for me without activating more values, but it may be possible to activate further. However, there are also problems if you activate the wrong values.


10.    Create the second "Outgoing Rule".


Pattern: & lt; iframe src = & quot; http://127.0.0.1:8069

Value: & lt; iframe src = & quot; https://yourdomain.com/

Then replace "Yourdomain" with your own domain address.


This specific IFrame is not covered by the normal rule, which in my opinion should be improved in the Odoo code so that the second rule is not needed. If you don´t do this, there will be a Problem in the Elearnig modul wich is also described here:       https://www.odoo.com/de_DE/forum/hilfe-1/odoo-14-elearning-iframe-address-of-the-content-wrong-localhost-8069-instead-of-the-url-of-my-domain-195119


11    Make Odoo web address static. You still have to change the web address within Odoo and make it static so that it does not always automatically reset itself to http: // localhost: 8069. This is important so that links that are to be shared also get the correct link address that points to the correct domain.

 

a    Activate developer mode as administrator via Settings and activate at the bottom of the page.

b    Open the settings again

c    Open technical parameters system parameters in the top line

d    Create a new value: "web.base.url.freeze" and enter "True" or "1" as the value without the quotation marks

e    Now adjust the URL of the page under "web.base.url" (the default value is currently //localhost:8069). Important! Do not insert a slash “/” at the end of the URL. Otherwise problems arise:


Key: web.base.url

Value: https://yourdomain.com 


(replace Yourdomain with your own address)


f    Now save

g    After logging out and logging in again, check whether the URL under "web.base.url" remains the same. Here are also instructions:

https://www.odoo.com/de_DE/forum/hilfe-1/web-base-url-automatic-reset-31937


12 Look also here for more informations https://www\\.odoo\\.com/documentation/14\\.0/administration/install/deploy\\.html 

13 \ Look\ here\ for\ the\ security\ settings\ settings https://www.odoo.com/documentation/14.0/administration/install/deploy.html

14 In particular, the "proxy_mode" should be activated in Odoo when a reverse proxy is running. You can find the file in the installation folder under "Programs - Odoo Installation Folder - Server" Open the odoo.conf file with an editor such as Note ++ and set the value proxy_mode to True. Save and restart the server.


If something is not working properly or you have questions, just send a comment.


Avatar
Discard

Good effort..

Author

See step 3 in the descrition above, you have to use:  http://127.0.0.1:8069 insted of http://localhost. The descrition under this link was not realy working for me but the code at the end of this site looks correct:  https://shyju.wordpress.com/2019/04/10/enable-iis-redirect-and-https-for-odoo-on-windows-server/ 

In the end, however, I switched to linux. I recommend using nginx as web server on windows. The setup should be identical to Linux and it is much easier to implement. There are also a lot of guides online for Nginx. 

However, I haven't tested it on windows with nginx but it makes a lot more sense.


Best Answer

Thank you. I have one problem with that configuration.When I use 8069 http port on both side with two account, chat works.
But when I use proxy reverse with or without SSL.. I do not received messages in chat.

Avatar
Discard
Author

Hi Alen. I need some more information to help. Please note that there is a different port for the chat. You can see this in the NGINX configuration, you need to forward two ports to make it work. I recommend to use NGINX under Windows too, which I haven't tested yet but the setup is much easier in NGINX. There is also much more information available and NGIX is both fast and secure. You can find the basic setup for NGINX here:

https://www.odoo.com/documentation/14.0/administration/install/deploy.html

In this NGINX configuration, you can also see the second port which has to be forwarded for the chat, to work:

#odoo server
upstream odoo {
server 127.0.0.1:8069;
}
upstream odoochat {
server 127.0.0.1:8072;
}

Hi Fabian,

 

Yes thank you.. I removed IIS already and configure reverse proxy with Caddyserver on windows.. Everything work fine now!

 

 

Thank you..

 

 

Alen Antolković, direktor

+385 91 60 40 457

 

A2 IT d.o.o.

PRODAJA I URED: Zagrebačka ul. 43  I 10380 Sveti Ivan Zelina I Croatia

TEL: +385 1 4813 957

OIB: HR26641160014

M: info@a2it.hr  I   W: www.a2it.hr

 

 


IZJAVA O ODRICANJU ODGOVORNOSTI: Ova poruka elektroničke pošte, kao i svi privitci, može sadržavati povjerljive i/ili zakonski povlaštene informacije koje su namijenjene isključivo naznačenom(im) primatelju(ima). Ako ste ovu poruku primili greškom, odmah obavijestite pošiljatelja, a poruku kao i sve njezine kopije i privitke odmah i bez tiskanja, čitanja ili kopiranja trajno obrišite s računalnog sustava. Osim primatelju, strogo je zabranjena svaka uporaba, distribucija ili kopiranje ove poruke. Primatelj treba provjeriti ovu poruku e-pošte i sve privitke na zlonamjerne programe koji se mogu nalaziti u e-pošti usprkos implementiranim kontrolama.

 

DISCLAIMER: This e-mail, and any attachments, may contain confidential, and/or legally privileged information, and is intended solely for use only of the named addressee(s). If you have received this e-mail in error, please notify the sender immediately, and permanently delete the original and any copies of this e-mail, and any attachments, without printing, reading or copying them. Any use, distribution, or copying of this e-mail other than by the inteded recipient is strictly prohibited. The recipient should check this e-mail and any attachments against malicious code potentially transmitted by this e-mail despite implemented controls.

 

From: FabianF <notifications@mail.odoo.com>
Sent: Wednesday, February 8, 2023 3:28 PM
To: Alen Antolković I A2 IT <alen@a2it.hr>
Subject: Re: A Guide for setting up Odoo 14 on Windows 10 Professional with the IIS

 

Hi Alen. I need some more information to help. Please note that there is a different port for the chat. You can see this in the NGINX configuration, you need to forward two ports to [...] ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Odoo S.A.


Forumsbeitrag ansehen

  

A Guide for setting up Odoo 14 on Windows 10 Professional with the IIS

  


Hi Alen. I need some more information to help. Please note that there is a different port for the chat. You can see this in the NGINX configuration, you need to forward two ports to make it work. I recommend to use NGINX under Windows too, which I haven't tested yet but the setup is much easier in NGINX. There is also much more information available and NGIX is both fast and secure. You can find the basic setup for NGINX here:

https://www.odoo.com/documentation/14.0/administration/install/deploy.html

In this NGINX configuration, you can also see the second port which has to be forwarded for the chat, to work:

#odoo server
upstream odoo {
server 127.0.0.1:8069;
}
upstream odoochat {
server 127.0.0.1:8072;
}


Odoo S.A.

+32 81 81 37 00 | info@odoo.com | https://www.odoo.com

Powered by Odoo

Related Posts Replies Views Activity
0
Nov 24
49
1
Jul 24
881
1
Sep 18
6795
0
Mar 15
4345
0
Dec 24
34