I'm managing a site that I didn't create. It runs IIS-5. All of the pages have a .SHTML extension, which I understand. A number of pages have ASP code embedded in them. The ISP has configured IIS to allow the ASP code to execute even though the page extension is not .ASP. The people who set all of this up are long gone by several years.
I have a mirror of the site on my system but I haven't been able to figure out how to configure IIS to allow that behaviour. It just displays the scripts as text in line.
If you know how to accomplish this, I'd really appreciate your explanation.
Thanks.
Bob
5 6653
in IIS go to "properties" of the directory that holds the .shtml pages that have the ASP code, then on the Directory tab click on "Configuration", then choose the "Application Mappings" tab.
Ok, if you have got this far you are almost done.
find the .asp extension click edit
copy the path to the .dll file that handles the execution.
then close the window
now click "Add"
Paste the path that you just copied and add the extension .shtml
for verbs, you will add this
GET,HEAD,POST
thats it....
BUT
make sure that you copy the path to the existing .shtml .dll that handles the page configuration.
this should work, if not let me know
cheers!
Thanks Jake!
I modified the entry for .shtml to read: C:\WINDOWS\System32\inetsrv\asp.dll
The VB Scripts embedded in the .shtml worked as expected.
You mentioned:
"BUT
make sure that you copy the path to the existing .shtml .dll that handles the page configuration."
I'm not sure what you mean by this.
Before I modified the entry for .shtml, it read: C:\WINDOWS\System32\inetsrv\ssinc.dll
Should they both be there? Separated by a ";" ?
Thanks,
Bob
Thanks Jake!
I modified the entry for .shtml to read: C:\WINDOWS\System32\inetsrv\asp.dll
The VB Scripts embedded in the .shtml worked as expected.
You mentioned:
"BUT
make sure that you copy the path to the existing .shtml .dll that handles the page configuration."
I'm not sure what you mean by this.
Before I modified the entry for .shtml, it read: C:\WINDOWS\System32\inetsrv\ssinc.dll
Should they both be there? Separated by a ";" ?
Thanks,
Bob
No, they both do not need to be in there. I just wanted to make sure you kept the path to that dll saved, just in case you needed to change it back, or it did not work for some reason.
glad to help
-Jake
also, this technique can be applied to other static pages. I first discovered this when I was trying to secure static documents and images within a .NET application. so for "static" documents like .doc, .pdf, .jpg, .gif...etc....you can just add these extensions and use the dll that should handle them, like you did for your shtml page.
by doing that, if users were not logged into that directory, if they would try to access one of those static documents that resided in that specific directory, they would be redirected to the log in page...works something like this...
request (static document)
dll reference (i used the asp dll)
web.config (since it handles it like my other asp pages)
if not logged in, send to log in page, else view the "static document"
cheers!
Thanks Jake!
I appreciate your clarification and the info about other static pages.
Regards,
Bob
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Sean Berry |
last post by:
Hi there. I am relativly new to Python CGI and need a question answered.
I have made custom 404 error pages and have them in various web directories.
I have not been able to figure out a way...
|
by: Sherry Littletree |
last post by:
Hi All
I am working on a site that has a large amount of common html on all its web
pages.
I am looking for a way to place this in a single file so, if changes are
made, I can change this...
|
by: Glenn Mulno |
last post by:
Hi,
I am trying to create a report page for several teams. Each team runs the
same reports but the reports use different values.
For a while this was getting insane everytime I updated the...
|
by: Mutkey |
last post by:
Hi;
I have 2 sides of my website, which uses 2 different stylesheets.They
have in common a feedback (HTML02) page.
Currently I have duplicated the feedback pages in both sides of the
webpage...
|
by: EnjoyNews |
last post by:
I have a php site I have an include line called "include 'Cookie.php';"
In this Cookie.php file I have these codes.
<?php
$conn = mysql_connect("$db", "$user", "$pass");...
|
by: Kenneth Baltrinic |
last post by:
I am working on a static web site that uses server side includes. Thus the
files have the .shtml extention. The IDE does not recoginzis this extention
as being html and uses the generic text...
|
by: Jack |
last post by:
Hi,
I have a asp form where one element is a list box which lists four years
starting from 2004. This list is drawn from a database table which has YearID
and Year as two fields as shown below:...
|
by: Ju Hui |
last post by:
I wanna use urllib2 to get a page with a socks 5 proxy,who can give me
a sample code ?
example,
the proxy server is :123.123.123.123
and the port is :1080
and the username/password is :...
|
by: One Lazy Russian |
last post by:
Thanks in advance to anyone that can help.
I created an extension for firefox that acts as a bookmarklet for
Gmail, Yahoo, and all standalone clients (via the mailto function).
Upon clickin on...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |