How to Run CleanMyOrg in IIS Mode
Running IIS mode is a configuration option that allows the CleanMyOrg to be accessed via a standard web URL, rather than the default 8000 port, which provides a more streamlined and secure deployment. This setup is ideal for organizations looking to host CleanMyOrg behind a reverse proxy with support for enterprise authentication methods like ArcGIS logins or managed roles. Further context on reverse proxies can be located here. Setting this configuration allows for your CleanMyOrg setup to run on domain.com/cleanmyorg instead of domain.com:8000.
In this guide, you’ll learn how to correctly setup your CleanMyOrg files, install the required IIS modules, configure the application in Internet Information Services Manager (IIS), and enable reverse proxy routing.
Step-by-Step Guide
Unzip CleanMyOrg
You can unzip to C:\CleanMyOrg or any location you wish. Since the files that will be served client-side reside in the CleanMyOrg\html directory, it may be best to keep the folder out of the default inetpub\wwwroot directory and set the webpage up as an application item.Install MongoDB-windows-*.exe if needed. The .exe file is located in the following directory:
Your CleanMyOrg root directory/installsInstall Required IIS Modules
In the C:\CleanMyOrg/installs/IISstandalone folder, there are two files - rewrite_amd64_en-US.msi and requestRouter_amd64.msi. These IIS modules must be installed in the order just listed for CleanMyOrg to work properly. They are used by the application to create a reverse-proxy to forward requests through IIS to the server application.Make sure you have Websocket Protocol installed for IIS. If you need to install Websocket Protocol, click here.
Install & Start Windows Service as noted in the CleanMyOrg standard installation.
In Microsoft Internet Information Services (IIS): Under your machine name -> Sites -> Default Web Site, right click to open Add Application (located in Connections or left-panel in IIS)
Specify the name cleanmyorg as the Alias
Make the Physical Path C:\CleanMyOrg\html or wherever you have unzipped CleanMyOrg. Make sure the html directory is added.
This will access CleanMyOrg from yourdomain.com/cleanmyorg or localhost/cleanmyorg
IIS: Enable Application Request Router proxy
Under connections, click on the server entry under the start page
In the center panel under the IIS section, double click on the Application Request Routing icon, so that your domain, <domain>/cleanmyorg/api, properly reroutes to the http://127.0.0.1:8000.
Application Request Routing in IISClick the enable proxy checkbox in the center panel, then on the right panel click the apply button.
In C:\CleanMyOrg\html\config\config.json, set
"iisMode": true,You can now open a browser to (https://yourdomain.com/cleanmyorg) and use the application.
Since this URL will be available over the web and not on a specific port, we recommend you set up
useArcGISAuth.enabled = trueor use Managed Roles to access CleanMyOrg as noted here: How to Enable ArcGIS Login and Create Managed Roles in Backup My Org
Note: The referenced article is geared towards Backup My Org, but the same instructions will apply for Clean My Org.