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.
Good effort..
https://shyju.wordpress.com/2019/04/10/enable-iis-redirect-and-https-for-odoo-on-windows-server/ hope its not redirecting in top
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.