Hi Everyone Any help would be very much appreciat...
# fw1
c
Hi Everyone Any help would be very much appreciated. I have created an FW1 website and I need to access the Lucee web admin, remotely, like: https://devtester-blog.establishmindfulness.com/lucee/admin/web.cfm This is the URL displayed in:
Copy code
server 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:
Copy code
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:
Copy code
{"$*/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:
Copy code
Windows 2019
IIS10
Lucee 5.3.9.166
My web.config, looks like this:
Copy code
<?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>