I am hosting a virtual directory behind a reverse proxy, and I'm enabling directory browsing on that virtual directory.
At the top of the directory browsing page it lists the server name and then the path to the folder from that domain. Because this is hosted behind a reverse proxy, the server domain listed is the local domain name that is only accessible behind the reverse proxy.
I would like to change or remove the server domain listing at the top of the page so that a local domain name isn't shown on the directory browsing page.
I've tried searching for information on this, but haven't found any documentation that allows you to change information listed at the top of the directory browsing page
Below is just an example to be clear about what I'm trying to change, but in my case, instead of localhost, the local domain name of the server is displayed.
I ended up creating a custom ASP page following an example given here https://support.microsoft.com/en-us/help/224364/creating-a-directory-browsing-page-using-asp
If using a custom ASP page, directory browsing needs to be disabled, and the
Default.asp
file placed in the folder that you want to be able to browse, and ASP functionality needs to be turned on for IIS.The relevant ASP code written in vb script is copied below from the linked article