Charles Robertson
03/03/2024, 10:38 PMserver admin -> overview -> web contexts
But when I try this, I just get the index page of my website and the not the Lucee web admin?
I have tried adding a mapping like:
this.mappings["/lucee"] = GetDirectoryFromPath(GetCurrentTemplatePath()) & "WEB-INF\lucee\context";
In my Application.cfc
But this just took me to the index page of my website, again.
I also tried adding a route like:
{"$*/lucee/admin/?$" = "/WEB-INF/lucee/context/"},
But this just took me to the index page of my website, again.
I also tried combining both the mapping & the route, and guess what, this just took me to the index page of my website, again.
The fundamental problem is that to break out of the FW1 framework, one must place an Application.cfc, inside the directory, you wish to access.
Environment:
Windows 2019
IIS10
Lucee 5.3.9.166
My web.config, looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="RewriteFW1" stopProcessing="true">
<match url="^(.*)$" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
<add input="{REQUEST_URI}" pattern="^.*\.(bmp|css|gif|htc|html?|ico|jpe?g|js|pdf|png|swf|txt|xml|map)$" negate="true" />
<add input="{REQUEST_URI}" pattern="^.*type=png$" negate="true" />
</conditions>
<action type="Rewrite" url="/index.cfm/{R:1}" />
</rule>
</rules>
</rewrite>
<httpErrors errorMode="Detailed" />
<security>
<requestFiltering>
<requestLimits maxQueryString="32768" maxAllowedContentLength="104857600" />
</requestFiltering>
</security>
</system.webServer>
<system.web>
<customErrors mode="Off" />
<httpRuntime maxRequestLength="102400000" executionTimeout="3600" />
</system.web>
</configuration>