Choose your language

Choose your login


Override the “host” header for redirects

This page applies to:

PaperCut NG/MF’s web server requires the ability to redirect users to new pages. When performing a redirect, the target location is based on the Host header that the web browser requested. If the host header is omitted (e.g. by manually crafting an HTTP request), the target location is based on the server’s own hostname or IP address. In a NAT environment this might not be ideal if the server’s IP address is considered private.

This can also apply if security audit software reports Web Server HTTP Header Internal IP Disclosure or similar.

Configure PaperCut NG/MF to always forward to a specified host

  1. In a text editor, open [app-path]/server/

    Add a new line:

    where is the fully qualified host name on which all users will access PaperCut NG/MF.

  2. Restart the service PaperCut NG/MF Application Server

  3. Test access to the web interface (using both HTTP and HTTPS if applicable).

Note that when this option is used, PaperCut NG/MF should not be accessed using any hostname other than the one configured. Doing so can cause problems.