How to disable Coldfusion for one site?

I have several sites on my coldfusion web server. I want to create a new site that will not allow coldfusion to run. At the same time, I do not want to disable coldfusion on other sites.

I am launching the standard version of coldfusion.

+4
source share
5 answers

In IIS, find the application configuration window that lists all the extensions and what executables they are associated with.

Just delete the file for .cfm and any other extension that refers to the ColdFusion dll. alt text http://www.fastpics.net/sharepics/imih41904722.jpg

+10
source

As Zarko said, which web server are you linking to? If it's a native ColdFusion application server (JRun), you have a difficult task.

If you run things through a web server, such as IIS or Apache, before uninstalling CF, it is easiest to create files with the extensions .cfm, .cfc, etc.

Use HTML instead or remove JRun connections from the website / host that this other site will be running on.

-

The same applies if you want to run other languages, such as PHP, from the same server. Tell the web server which drivers to use for which site, and it will send the request to the correct application server for processing.

+2
source

Another thing to note is the CFIDE virtual directory. This will not be a problem if you create a new site from scratch, but if you disable CF on an existing site, you must delete the virtual directory.

+1
source

Which web server? If you run a standard standalone installation, I’m afraid that you won’t be able to do this without delving into the deep dark places of the configuration files. If it is IIS or Apache or something else than is possible.

0
source

Even simpler, just do not use the cfml code or create new data sources for other sites.

Just don't use Coldfusion code for your other site.

Or you can disable the http handler for coldfusion for this other site.

But if this other site does not contain .cfc or .cfm files, then this is not a coldfusion site. It is all there.

Why does it matter?

0
source

Source: https://habr.com/ru/post/1313756/


All Articles