0
votes

I'm trying to create a custom static page on a domain that has a Umbraco site, something like -

www.myumbracosite.com/test/test.txt

After Googling it seems umbracoReservedPaths in Web.config is the property I want update - https://our.umbraco.org/Documentation/Reference/Config/webconfig/ - however after updating to

<add key="umbracoReservedPaths" value="~/umbraco,~/install/,~/test/" />

I get the following -

Page not found

No umbraco document matches the url '/login.aspx?ReturnUrl=%2ftest%2ftest.txt'.

This page can be replaced with a custom 404. Check the documentation for "custom 404".

1
It looks like it's trying to log you in first. The URL you're being sent to is the one for logging in with forms authentication. It's actually complaining that it can't find the login page. Do you have authentication set for the folder?Tim
No I wouldn't even know how to do thatcolouredFunk
It could be that the folder you've added doesn't have the right permissions set, so IIS is trying to log you in. Check that they're set up correctly, that would be my next guess.Tim
I've just added 'Everyone' to the folder via IIS, same issuecolouredFunk

1 Answers

0
votes

You're after umbracoReservedUrls instead.

umbracoReservedUrls

A comma-separated list of files to be left alone by Umbraco. IIS will serve these files, and the Umbraco request pipeline will not be triggered.