Posts

Showing posts with the label IIS

Webex file extension .wrf will not open or rendered by IIS web server

We recently moved our web application to new server and we noticed that the webex files with extension .wrf was not being shown to user or was not being rendered by IIS. So on doing further research, I came to know that we needed to set a MIME type for the wrf extension. The .wrf extension needs to be set to application/octet-stream. Go to IIS settings, select the website or the web root folder and right click and select properties. Click on HTTP Headers tab and the bottom click on MIME Types button. Click new button and add .wrf in extension and application/octet-stream in MIME Type text box. Click OK and Apply at next screen and you should be done. After I clicked OK and Apply, the screen Inheritance override was shown. I said cancel to all. Here is some info from IIS help. If you set or change a MIME type that conflicts with a setting at another node in the hierarchy, you are prompted with an Inheritance Override dialog box where you can specify the nodes to which the new setting a...

Redirect using Coldfusion or Redirect using IIS

Image
I have a client who has url say www.xyz.com. They want a new url www.abc.com so that when user enters www.xyz.com, the user should see www.abc.com in his address bar of browser. Basically an alias/redirection with address bar showing the new url. I could have done redirection by dns names/url redirection at website level but problem is I have a subfolder application i.e. www.xyz.com/subapp. Now if I do dns/url redirection, and user tries to access subfolder application with this url, www.xyz.com/subapp/home.cfm, it takes the user automatically to www.abc.com/home.cfm i.e. the main application without the subfolder application, and I dont want that. It should take user to www.abc.com/subfolder/home.cfm. So to avoid this redirection at the website level, I added this code in Application.cfm Code: <!-- Relocate if not a secure connection --> <cfif cgi.SERVER_PORT is "80" and CGI.SERVER_PORT_SECURE is "0"> <!---replace xyz with abc ---> <cfset x = ...