Quantcast
Channel: All Forums
Viewing all 27852 articles
Browse latest View live

Passwords and usernames for sub-pages?

0
0

Hello all,

Can IIS have passwords and user names for sub-pages?

I only have general password for the top level now, but would like to have separate distinct passwords for each link for the sub-pages...

Thanks!

Deguza


Resources to become an IIS/ASP.net performance guru

0
0

Hi 

great site. 

I'm a sysadmin struggling to find resources that both 

  • describe the architecture internals (e.g. threads in iis and OS, memory allocation and garbage collection, etc etc)
  • talk through the performance considerations of all of the internals

e.g. that LeanSentry product looks nice. I'd like to be able to understand all of the things that are built into that software.

I guess my problem is that i'm looking in the normal sysadmin places but i should probably looking at more dev-oriented stuff. Google search is not bringing up what i need. 

Basically, i'm looking for something like this but updated for IIS8+: 

https://msdn.microsoft.com/en-us/library/ms998530.aspx

Some resources i've already looked at: 

ResourceDetails
Professional IIS 7Chapter 18/19 (performance and troubleshooting) are pretty brief
IIS7 Resource KitTroubleshooting/performance chapters seem a bit lite. They note lots of things to monitor, but not the "down in the trenches" kind of stuff like "watch out for thread exhaustion with counter x as this means y" etc
Professional Microsoft IIS 8Troubleshooting/performance chapters quite "lite"

 

Have found a few great threads on this site (e.g. below) but would prefer something formal - book, course, set of blog posts

IIS10 on Server2016 & Forcing Cookies to us SSL

0
0

Hi,

I have a need to force a site to transmit cookies over SSL only.  I tried editing the web.config file for the site by adding

<httpCookies requireSSL="true" />

as I had read in some posts.  However this just broke the site. 

What do I need to do?

Thanks

OCSP ReWrite Rule to local IIS Site

0
0

Good Day,

I have an OCSP server that is also the distribution point for my CDP and AIA. Due to corporate requirements I have the OCSP URL of "pki.domain.com/VirDir/OCSP which is in fact a VIP that redirects all traffic on the URL to the IP of the OCSP responder. The default OCSP web application is located on the responder at servername.domain.com/OCSP" which basically means I cannot get my OCSP responders to work correctly and my CA has already issued a ton of certs.

I Figured a URL Rewrite would be the logical answer here considering all I really need to do is take the OCSP URL and strip the "VirDir/OCSP and replace it with /OCSP" and before the GET/POST hit my web server so the OCSP ISAPI web application can respond. I have tried quite a few combinations using the URL Rewrite "Inbound Rule"and my GET and POST fail with error codes of 404 and 405 with the VirDir still present. Obviously my URL Rewrite is not configured correctly and I could sure use a hand. I am unsure if a simple Inbound Rule will work with OCSP requests, or if my approach is a valid one.

My Log and Rule are posted below, and thanks for taking the time to read fellow internet person.

IIS LOG OUTPUT

2017-11-22 20:17:54 10.5.20.33 POST /VIRDIR/OCSP - 80 - 10.10.0.250 Microsoft-CryptoAPI/6.3 - 404 0 2 0

2017-11-22 20:17:54 10.5.20.33 POST /VIRDIR/CRL/CANAME+-+DNSFOLDER.crt - 80 - 10.10.0.250 Microsoft-CryptoAPI/6.3 - 405 0 1 0

Inbound Rule

<?xml version="1.0" encoding="UTF-8"?>

<configuration>

    <system.webServer>

        <rewrite>

            <rules>

                <rule name="OCSP Inbound">

                    <match url="^/VirDir/OCSP" />

                    <conditions>

                        <add input="HTTP_HOST" pattern="^pki\.domain\.com" />

                    </conditions>

                    <action type="Rewrite" url="/OCSP" logRewrittenUrl="true" />

                </rule>

            </rules>

        </rewrite>

    </system.webServer>

</configuration>

</configuration>

How to create a website in IIS

0
0

i want to create a website in IIS....not virtual directory.

can we have two website in IIS which will have same 80 port?

tell me what i need to do if i need to give a name for my web site. suppose when i will browser my web site from iis then i want url in browser address bar will look likehttps://mysite.com/index.aspx and there will be no port in url. so tell me what i need to do?

please answer my two question?

What is web garden in IIS

0
0

when we deploy web site in IIS with a default app pool have a one or two worker process then that kind of hosting will be consider as web garden in IIS or web garden is totally different one. please share the knowledge. thanks

IIS Rewrite rule: Attach country code with all hyperlinks in page

0
0

i have developed a web site with asp.net webform. i hosted the site my pc local iis. when i browser the site the url appear in my browser address bar looks likehttp://localhost:8800/gb/default.aspx

now my default.aspx page has many hyperlinks and those links look likes

http://localhost:53741/               
http://localhost:53741/About.aspx
http://localhost:53741/Contact.aspx

now i want to attach country code taken from browser address bar url with all the links in default.aspx page. so after attaching the new url will be looking like

http://localhost:53741/gb               
http://localhost:53741/gb/About.aspx
http://localhost:53741/gb/Contact.aspx

so i test a outbound rule to attach country code with all the links in my default.aspx page.

my outbound rule look like....a screen shot attached.

screen shot 1

enter image description here

screen shot 2

enter image description here

screen shot 3

enter image description here

after implementing my outbound rule when i am browsing my site then getting error due to outbound rule. i am weak in iis rewrite rule. may some where i made mistake but could not figure out my mistake. so please some one help me to fix this issue.

again i am telling what i am trying to do. when i am browsing my site then my address bar url look likehttp://localhost:8800/gb/default.aspx in this url there is a country code that is gb.

the country code i need to take from there with outbound rule and attach that country code with all the hyperlinks in default.aspx page. so my all hyperlinks in default.aspx page will be looking like below example.

http://localhost:53741/gb               
http://localhost:53741/gb/About.aspx
http://localhost:53741/gb/Contact.aspx

this iis rewrite rule i tried

<outboundRules><rulename="add outbound rule"preCondition="Ishtml"enabled="true"stopProcessing="true"><matchfilterByTags="A"pattern="([a-z]{2}/(.*))"negate="true"/><actiontype="Rewrite"value="gb/{R:2}"/></rule><preConditions><preConditionname="Ishtml"><addinput="{RESPONSE_CONTENT_TYPE}"pattern="text/html"/></preCondition></preConditions></outboundRules>

after applying the above rule i am getting error and error as follows

Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: The content in the application file is not valid.

still my objective not clear then please ask me. if anyone understand what i am trying to do then please help me to achieve my goal. thanks

How to capture two part from url with outbound rule using regex

0
0

suppose these are my address bar url http://localhost:53741/gb/default.aspx 

OR http://localhost:53741/gb/default.aspx?id=1

OR http://localhost:53741/gb/part/part.aspx?id=1&vref=2010

i need to extract two part from the above url.

first is country code and second is rest of the part

first is /gb/ and second isdefault.aspx  ORdefault.aspx?id=1 OR part/part.aspx?id=1&vref=2010

so tell me what regex pattern i should use to extract two area separately with one regex. i use ([a-z]{2}/(.*)) but it only gives second part from the url but not country code. so please give me right regex pattern. thanks


failed download

0
0

During installation of certain components like php and my sql using web platform of mirosoft. The  same has failed to install the desired components.

Link net.framework 4.6.2. windows 2012R2 to IIS

0
0

Hello,

I want to use framework 4.6.2. Windows 2012 R2 and IIS 

If I want to install 4.6.2. than the answer is "already installed by the updates". But I do not see it in Programs and Features.

How to link or register 4.6.2. so I can use it in the application pools of IIS

setting up iis rewrite rule to redirect not working

0
0

Im trying to create a rewrite redirect rule to redirect the user to a specific file hosted in the same site but served using a different domain but for some reason its not working. Ive never used the iis rewrite tool so perhaps im doing it wrong. Currently i have

<rule name="CityAndGuildsSiteMapRewrite" stopProcessing="true">

 <match url="ilm.local/(sitemap_website.xml)" />

 <action type="Redirect" url="http://cg.local/{R:1}" />

</rule>

Exclude file path from msdeploy command line

0
0

Hi

I'm trying to migrate IIS 6.0 sites to a new IIS 8.0 box using msdeploy.

One of the websites include 50GB of files.  I'd like to exclude all these files from the msdeploy backup and copy them over via another method.

This is what I've tried so far without success

msdeploy -verb:sync -source:metakey=lm/w3svc/1 -dest:package=D:\Backup\Site1.zip,encryptPassword=123456 -enablelink:AppPool -skip:dirpath=D:\Optimise > WebDeployPackage.log

Error: Unrecognized skip directive 'dirpath'. Must be one of the following: "objectName," "keyAttribute," "absolutePath," "xPath," "attributes.<name>."

Error count: 1.

msdeploy -verb:sync -source:metakey=lm/w3svc/1 -dest:package=D:\Backup\Site1.zip,encryptPassword=123456 -enablelink:AppPool -skip:Directory=D:\Optimise > WebDeployPackage.log

Error: The regular expression 'D:\Optimise' is invalid.

Error: parsing "D:\Optimise" - Unrecognized escape sequence \O.

Error count: 1.

Any Ideas?

Alex

tripod

0
0
how we open tripod?

How Best To Transfer An Installation To A New System Drive?

0
0

My system drive was just falling apart so I've relegated it to the sidelines as a data drive and I've installed a brand new drive and installed a fresh copy of Win10 on it.

Now I need to setup my IIS installation again.  And I wonder what's the best way?

I downloaded that Easy Migration Tool but at first looks it seems a little high tech - user unfriendly for such as I - and aimed for sys admins with relatively enormous IIS installations to manage.

I couldn't even find a 'quick start' point from their 'quick start guide' - no index list of things that need to be done... nothing...

Mine is very tiny on a home LAN, headache though it can be to me it'd be trivial amongst IIS installations.

Just a list of steps required to be completed would be a help.

Currently I've copied over the inetpub directory.

Then I will look at constructing all the virtual directories again.  And creating users.   And recreating all the user directories.  And implementing windows authentication...  and...  I don't know...  would that be it?

Wouldn't it be lovely if we could implement all our app installations in a similar way?  I've got heaps of them to reinstall and some of them are going to be problematic...   ah well....

Error 503 Service Unavailable.

0
0

I just build a new win10 installation and enabled iis.

I get an error 503 'service unavailable'.

All I have done is copy my old inetpub directory tree over to this new system drive, this new installation.

Apart from that: nothing.   I think IIS should work okay like that?  Just enable and it runs?

So I googled a bit and saw posts about the default app pool and the service so I've been there and

 the default app  pool is started

 and the default web site is started.

Is there some setup configuration I should have done?

What should I look at?


More than 2 paralel file download using https in Windows Server 2016 fail.

0
0

Hi to all,
I have found problems downloading files from IIS and Windows Server 2016 using HTTPS.
I found the problem trying to install a file sharing web application in a Windows 20016 Servers for our employees. At the beginning, I though the problem was related to the web application but after several tests It seems to be a Windows Server 2016 problem.

Doing some tests with the web application I've found that if I try to download more than a file at a time, the second file download is very slow. If I try a third  download the third download doesn't' start until one of the others is finished. Even more, If I try to navigate in the web application while 2 files are being downloaded the web server didn't respond.

To try to find which is the root cause I've installed a new windows 2016 server in a test enviroment:

 - Window Server 2016, virtual machine. Fresh Windows installation and IIS installed with default settings.
 - Add https support with a self signed certificate to IIS default web site.
 - In the default Web site root folder copy 3 files. This files are mp4 videos compressed in zip archives.
 - Test client computer used to download files is a Windows 10 dell computer. The test client computer and the server are connected to a Gigabit ethernet LAN network.
 - To simulate a slower network environment, I forced the network adapter in the test client computer to 10Mbps full. This is done trough the network adapter setting option in control panel.

To do the test I try to download 3 zip files from the server to the test client computer using HTTPS. The first file download starts OK. the second file donwload starts fine too, but the download in this case is much slower. When I try to  download the third file, the download doesn't start. It starts only after finshing or stoppping one of the other downloads. Even worst, If I try to browse the server using HTTPS while two files are being downloaded I get a server not responding error.
While files are being downloaded I run a netstat and I see only one HTTPS TCP connection between the client and the server.

I have done the same test using HTTP instead of HTTPS. With HTTP I dont' have any problem. I can download 3 files simultaneously and browse the web server at a time without problems. Using netsat I see that in this case, there is a HTTP TCP connection per each file beeing downloaded.

I have done the same test with different web browsers, firefox, Chrome, Internet Explorer, having the same result with all of them.

The problem is in some way related to the network bandwidth available between the server and the client. Because if I change the client computer network adapter link settings to auto-negotiation. I can download 3 files at a time using HTTPS without any problem.


To check if the problem is related just to Windows Server 2016 y have set up another server with Windows server 2012 R2. With exactly the same settings as the Windows 2016 Server. In this case otherwise, all the test go fine. I can download 3 or 4 files in parallel using HTTPS without problems.
I have tested to with Windows 2008 Servers and I didn't have any problems either.

So it seems something like a bug in Windows 2016. I have tried to found somebody in the internet having similar problems but found nothing, so I'm a bit lost. This behaviour is weird for me.

¿Any idea about this?

How to bind a certificate with my local iis

0
0

suppose i have developed a asp.net webform application which will have https instead of http and will be deployed in local iis then tell me how could i bind 3rd party purchased certificate in my local iis for my site. guide me with screen shot. thanks

Not being able to download Microsoft WebPI

0
0

I was thinking of configuring PHP with IIS which requires Microsoft WebPI. I tried to download WebPI several times , but unable to download that. Any help ? Thanks in advanced.

IIS rewrite rule change my current aspx page hyperlink href wrong way

0
0

when browse my site from local iis then address looks in browser address bar as http://localhost:8800/gb/default.aspx

i tried to extract country code from browser address bar and injected in all hyperlink's href with IIS rewrite outbound rule.

this is my outbound rule i used in my web.config file.

<outboundRules><rulename="add outbound rule"preCondition="Ishtml"enabled="true"stopProcessing="true"><matchfilterByTags="A"pattern="(\/[a-z]+\/)(.*)"negate="true"/><actiontype="Rewrite"value="{R:1}{R:2}"/></rule><preConditions><preConditionname="Ishtml"><addinput="{RESPONSE_CONTENT_TYPE}"pattern="text/html"/></preCondition></preConditions></outboundRules>

when i pattern test from iis rewrite module window then output looks like below one. here is screen shot.

enter image description here

so during test i saw {R:1} is /gb/ and {R:2} is default.aspx. so when this rule execute it change all hyperlink href in default.aspx page and all hyperlink href becomes now http://localhost:8800/gb/default.aspx

basically i need to inject country code from browser address bar url in all hyperlink href of current page.

i think i am bit closer to what i am trying to achieve but now i need little help to sort this issue. i guess this area need to be change bit <action type="Rewrite" value="{R:1}{R:2}" />

so please some help and drive me to right direction.

Create App pools in cluster using powerhsell

0
0

Hi,

I am trying to create an app pool  on a share configuration enviroment, (web farm) and it give me always  an error.

the powershell code is as follow:

$passCrypt = ConvertTo-SecureString -String 'PasswordEqualToAzureSharedStoragePassword' -AsPlainText –Force
$credenciais = New-Object -Typename System.Management.Automation.PSCredential -ArgumentList 'UserEqualToAzureSharedStorageUser', $passCrypt

Invoke-Command -ComputerName ServerIP -Credential $Credenciais -ScriptBlock {
Import-Module WebAdministration
New-WebAppPool -Name TestAppPool
}

It return da following error

Filename: \\?\UNC\Azure_sharedstorage_location\IISFXConfigShare\applicationHost.config
Error: Cannot write configuration file
+ CategoryInfo : InvalidArgument: (:) [New-WebAppPool], ArgumentException
+ FullyQualifiedErrorId : Filename: \\?\UNC\Azure_sharedstorage_location\IISFXConfigShare\applicationHost.config
Error: Cannot write configuration file
,Microsoft.IIs.PowerShell.Provider.NewAppPoolCommand
+ PSComputerName : ServerIP

the Same happen for virtual directories.

can someone help me?

Thanks in advanced

Miguel Moura

Viewing all 27852 articles
Browse latest View live




Latest Images