IIS 8 how to view site properties - web

I am trying to view the site properties so I can look at my extension mappings in an asp.net core app. I am trying to better understand asp.net at a more intricate or low level. I am learning about ISAPI and how it is the initial code point for an asp.net request.
Anyway when I right click on my site in IIS I do not see the properties tab. I am sure that this is related to the version of IIS that I am using, so my question is, how can I view the site properties? Or how can I get to the extension mappings?

iis 5 and 6 has a feature to see the site properties. after iis 7 there is no option like site properties. you can check iis site advance setting by following the below steps:
1)open iis manager
2)right-click on your site.
3)select manage website ->advance setting
Edit:
Request Filtering which is used to restrict the types of HTTP requests that IIS processes. By blocking specific HTTP requests, request filters help prevent potentially harmful requests from reaching the server. The request filter module scans incoming requests and rejects requests that are unwanted based upon the rules that you set up. and ISAPI Filter always runs on an IIS server, filtering every request until they find one they need to process. The ability to examine and modify both incoming and outgoing streams of data makes ISAPI filters powerful and flexible. you could refer to the below link for more detail on how to configure it in iis:
https://learn.microsoft.com/en-us/previous-versions/iis/6.0-sdk/ms524610(v=vs.90)
https://learn.microsoft.com/en-us/iis/configuration/system.webserver/security/requestfiltering/
https://learn.microsoft.com/en-us/previous-versions/iis/6.0-sdk/ms525937(v=vs.90)

Related

IIS HttpCompression Not Showing

I have a server where we have some local sites setup. Im looking on activating gzip on my specific website, but unfortunately, i cannot see the HTTPCOMPRESSION part in the system.webServer Configuration Manager (although it is in the web config itself).
Here is a screenshot of what it looks like:
No httpCompression though. I looked at the server level configuration manager and it has the httpCompression part, but not on the Site level.
IIS v8.5
For reference, to show the setting in the IIS Panel, we need to enable it in the appsettings config of IIS.
c:/windows/system32/inetsvr/config/applicationhost.config
Locate httpCompression and change the parameter for overrideModeDefault = "Deny" to Allow. This will make IIS apply your settings on site level.
Cheers!!!
You'll need to enable Dynamic Compression in IIS. This is done from features, web server (IIS), Web Server, Performance, Dynamic Content Compression.

How to use multiple ISAPI redirect dlls in IIS 6 (for each site its own isapi dll)

I have a configured IIS 6 where already a page is defined which is using a ISAPI dll for redirecting the incoming requests to the underlying tomcats. Now I want to add a new page and use for this page its own isapi dll, but this wont work on my side. The state of the isapi redirect wont change to active
Here you can see the missing state of the redirect
http://pbrd.co/TwXwCQ
Isnt that possible to have multiple sites on a iis where each one is using its own redirect dll? Or how can i achieve it that the requests to my site will be redirected to my underlying tomcats.
Thanks
What you are showing here is an ISAPI filter. These can be installed at the Service level making them global (affecting all sites) or they can be applied at the site level makign them local (only affect the single site).
If the filter in question is supported for use at the site level then there should be no problem configuring an instnaeof the filter for each site. If the filter is only supported at a global level then you would need to look into the configuration to see if there is some means of configuring the filter to take specfic action based on which site (or perhaps page) the request is initially directed to.
In this particular case I would suggest reviewing the Tomcat documentation to see how to configure their ISAPI filter properly.

How to compare settings of two websites on one IIS7.5 server

I have two websites running on one server in IIS7.5 and would like to find a way to compare the settings each one has. (I see the question has already been asked for IIS6.)
I want to do this so I can see why one website is handling HTTP 404 errors differently to the other. I am sure I've set all the options in IIS to be the same on each site. I've checked the web.config files have the same values in the <httpErrors> and <customErrors> nodes. I cannot see anything in applicationHost.config either.
Thanks.
Doh! After going back into IIS and comparing the two websites again, I realised I had ASP errors set to "Custom" (instead of "Detailed") on the site that was the problem. The ASP.NET error settings matched, but not the ASP ones. The page that handled 404s was a classic ASP page copied from another site to save time.
I'm still interested to hear whether web.config and applicationHost.config are the only places where website-specific settings are stored?

Why don't we use server side code in the customized pages of site pages

There are two types of pages in sharepoint. Application and site pages. In site pages if we want to customize them, are we not able to use the server side code? If so why? I saw an article related to this in MSDN.
Generally what is meant by customized here. Adding a webpart through the code is customization? Please explain me any one.
Without a web.config modification (not recommended), Site Pages do not support server side code (either inline or in a code behind file). This is primarily for security and performance reasons. Unlike Application Pages, Site Pages can be added or modified in SharePoint Designer and, in a limited fashion, through the browser.
Normally, there are many more users with these privileges than those users that have access to the web server. I'll leave it to your imagination to consider some of the insecure or inefficient server side code some of these users could create.
In addition to custom web parts, see Where's the code-behind for sharepoint aspx pages? for server side code options within Site Pages.
When you're doing application page, you're storing the aspx with the 12 / 14 hive (SharePoint installation directory) and you're free to use any code behind class / component that you want to use. The original aspx file will stay in the physical folder of the Web Frond End
On the other side, when you're creating site pages, you're adding a new entry within the content database and not on the file system. Even if you have a site page template, you need to add safe entries to your web.config to trust the assemblies.
For the site pages, it is suggested to work with WebParts. They will allow you do do any business / core logic with the actual page, list, web, site.
When they talk about customization, they talk about modification done to the site pages that will alter the original definition. A site page provisioned through a web definition will stay "uncustomized" (ghosted) in the file system until it is being edited.

Default IIS 7 Logon Domain

I need to change the default logon domain on our website, but for some reason it still puts the computer domain as the default at login. I tried the following: http://technet.microsoft.com/en-us/library/cc772009(v=ws.10).aspx but get the same results. what else could it be?
I can't seem to find any other solutions on the web, any ideas? I compared the IIS configuration to another server (that works) and it looks identical. can't for the life of me figure out what's going on.
When you authenticate to a website there are many points at which one can be presented with a login dialog. I'm going to assume you have a simple website made of only basic .HTM .CSS and .JS files. (Meaning, you aren't using ASP.NET and looking to have forms based authentication.)
The website itself, runs under the domain/user configured on the Application Pool the website runs under. I suspect you are NOT trying to adjust this. It is the security level under which the entire website's process runs. Meaning, without an end user logging in at all, this is what the website's security level is in regards to accessing the file system, network, registry, etc.
If you want ONLY users in one of your network's Windows domains to have access, you should go to the IIS website, click 'Authentication' and disable Anonymous, ASP.NET Impersonation and Forms Authentication. Then set just the domain in basic authentication to what you need it to be.
If this is what you've done, and it still fails. Then I suspect it's because the IIS machine probably needs to meet some requirement to allow this to happen. For example: It needs to be added as a member of the domain you are trying to configure. Another possibility is that some setting on the domain controller, or an inability to reach it, is preventing the webserver from presenting your web visitors with the option to log on to that domain.

Resources