I just migrated several sites from a Windows 2012 ...
# adobe
j
I just migrated several sites from a Windows 2012 R2 / CF2016 environment to Windows Server 2022 / CF2021. I defined custom Handler Mappings for “.do” files to and also added the appropriate virtual directories in IIS. However, the server page is delivering the CFML as plain text in the browser and not processing the files. I’ve read about older instances of CF having issues with IIS Virtual Directories. Anyone have any thoughts or experienced something similar? The .do files are working elsewhere, as are the virtual directories - but together, I’m getting an issue.
b
Did you add the web.xml servlet mapping for the files too?
If IIS will pass upper and lower file.DO and file.do, make sure you add all possible servlet mappings so hackers can't trick your servlet's default servlet from sending the code back.
j
@bdw429s Yes, I added the mapping in web.xml. The .do files are working elsewhere, just not in the virtual directory instances.
Yes, I noticed the capitalization sensitive mappings and accounted for that. Thanks!
Admin setting - allowed extensions in cfinclude. eye roll Solved. Agh!
👍 2
👍🏻 1