Publish through IIS
The engine now answers on its own HTTP port. Users reach it through the IIS that
already serves DocuWare, on the same host name, under /ivy.
Download the scripts
Extract it on the Windows server that runs DocuWare — the commands below assume
you are in the extracted scripts\ folder. It contains:
File |
What it is |
|---|---|
|
The script that publishes Ivy under |
|
Takes the backup to run first |
|
Puts IIS back |
|
Every parameter of all three, and what each one changes |
|
What has not been evaluated, and what to decide before going live |
|
The guideline these scripts belong to |
Before you start
Four things have to be true. The first is already done for you.
What |
Detail |
|---|---|
The engine serves under |
Shipped that way. IIS forwards the path unchanged; nothing to do. |
|
Customer-specific, so it ships commented out in |
The licence covers the public DNS name |
Give every public name to the DocuWare Ivy team when you request the
licence. Ask early: without it the engine answers |
Application Request Routing 3.0 is installed |
URL Rewrite is already on a DocuWare server; ARR is not. The script refuses to run without it rather than installing it. |
Run the script
In an elevated PowerShell session on the Windows server, in this order:
.\Backup-IisConfiguration.ps1 -Label pre-ivy-proxy
.\Set-IisIvyProxy.ps1 -WhatIfOnly
.\Set-IisIvyProxy.ps1 -IvyHost <linux-host> -IvyPort 8080 -PublicHost <public-host>
The second line changes nothing and prints what the third will do. Take a fresh backup even if an older one exists: a rollback restores the site configuration as it stood in that set, so anything added since is lost with it.
What it changes:
two rewrite rules at the top of the site's
web.config, matching/ivyonlyX-Forwarded-Proto: https, which the engine needs because IIS terminates TLS and forwards plain HTTPthe upload limit for
/ivyonly, raised to 100 MBone server-wide ARR setting,
reverseRewriteHostInResponseHeaders, which must be false or no external sign-in can complete
It touches no existing rule, binding, certificate or authentication setting. Running it twice replaces only its own rules.
Verify
Four checks. The last two are the ones that catch a setup which otherwise looks fine.
The portal loads with its styling at
https://<public-host>/ivy/docuware/project-ivy/. Check it in a browser:curlanswers200on a working and a broken setup, because the first response is a small redirect stub.DocuWare still answers at
https://<public-host>/DocuWare/Platform. Allow for a slow first request on an idle server — retry before believing an error.A full DocuWare login completes, not just a page load. ARR settings are server-wide and login is the most sensitive path.
A task notification mail whose link works from a client machine. This is the only check that exercises
BaseUrl.
Two limits IIS imposes
Both apply to every request through IIS, and neither can be lifted from the engine's side.
Limit |
What to do |
|---|---|
A request is cut off after 2 minutes |
This is ARR's timeout and it is server-wide, so the script does not change
it. If a customer needs longer, either give Ivy its own ARR server farm,
which carries its own timeout, or raise the machine-wide value with
DocuWare's agreement:
|
Uploads over 100 MB are refused |
The script sets this for the |
Roll back
.\Restore-IisConfiguration.ps1 -List
.\Restore-IisConfiguration.ps1 -SetName <set> -Mode Files -Only site
If something goes wrong
Symptom |
Cause |
Fix |
|---|---|---|
|
The licence does not cover the public name |
Add the name to Public URLs on the licence. Do not work around it by rewriting the host — the engine would then run on a URL its licence does not cover |
|
The context name does not match |
The engine must serve under |
The portal loads as bare HTML, no styling |
Asset URLs fall outside the proxied path |
Check |
Sign-in with an external provider never completes |
|
Set it to false. The script does this; check it if the script was not used |
Links in notification mails point somewhere wrong, browsing is fine |
|
Set it in |
DocuWare's Web Client shows an error page after loading, Ivy works |
Ivy is published on a host name DocuWare was not configured with |
Publish Ivy on DocuWare's own host name, or register the new name in DocuWare. Its Identity Service log is the only place that reports this |
Users who arrive over |
The forwarded protocol always says https |
Redirect port 80 to 443 on the site. The script warns when it finds an HTTP binding |
A long-running task fails with a gateway error |
The 2-minute ARR timeout |
See the limits above |
A large upload fails with an IIS error page |
The upload limit |
See the limits above |
The proxied paths answer |
The wrong restore mode was used |
Restore again with |