iis

ASP.NET Web Dev: Map one directory to another?

Hi! We are thinking of renaming our web directory schema to be more user friendly. However, we need any URL requests for the old directory structure to forward to the new one. so.... How do I forward requests for all of these: http://mydomain.com/OLDdirname/ http://mydomain.com/OLDdirname/samesubdir/ http://mydomain.com/OLDdirname/...

Why isn't IIS executing the PHP code of my site root index.php file?

IIS is literally sending <?php ... ?> code to the browser rather then executing it. But, only for the root http://domain.com/index.php file. All other .php files in that folder and index.php files in subfolders execute as expected. How can I get my root index.php code to execute? Update: "index.php" is a Default Document of my Web...

Why does IIS crash when I print to stderr in Perl?

This has been driving me crazy. We have IIS (6) and windows 2008 and ActiveState Perl 5.10. For some reason whenever we do a warn or a carp it eventually corrupts the app pool. Of course, that's a pretty big deal since it means that our errors actually cause problems. This happened with the previous version of Perl (5.8) and Windows ...

How do I get current page full URL in PHP

I moved a WordPress installation to a new folder on a Windows/IIS server. I'm setting up 301 redirects in PHP, but it doesn't seem to be working. My post URL's have the following format: http:://www.example.com/OLD_FOLDER/index.php/post-title/ I can't figure out how to grab the /post-title/ part of the URL. $_SERVER["REQUEST_URI"] - ...

Add a IIS host header to website programmatically

I would like to setup a admin page (ASP.NET/C#) that can add IIS host headers to the website that the admin page is hosted on. Is this possible? I dont want to add a http header - I want to mimick the action of going into IIS manually, bringing up the properties of the website, clicking advanced on the website tab, and in the advanced ...

Installing ASP.Net 2.0 after IIS

I just got a dedicated server from a hosting company, and for some reason, it didn't have IIS installed. It did have .Net 2.0, though. So I installed IIS, but now my ASP.net websites won't work. I just get a 404, no event log entries, nothing... I noticed in the redistributable package information that: "To access the features of ASP.N...

Guidelines for asp.net website loading estimation?

I wonder if there is any good guideline for system administrators to calculate the resources needed to host an ASP.NET website? I want to do some estimates on the processing power needed so I know what kind of VPS/Cloud I need to get. ...

Can php.ini settings be overridden in by a website using PHP + IIS6?

We have PHP 5.2.6 deployed to c:\php and in that folder there is the php.ini file. On Windows, can a website override these settings similar to the way that apache has .htaccess? e.g. DirectoryIndex index.php index.html <IfModule mod_php5.c> php_flag magic_quotes_gpc off php_flag register_globals off </IfModule> <IfModule mod_php4.c> ...

Test to see if an image exists in C#

I am writing a diagnostic page for SiteScope and one area we need to test is if the connection to the file/media assets are accesible from the web server. One way I think I can do this is load the image via code behind and test to see if the IIS status message is 200. So basically I should be able to navigate to within the site to a ...

URL Case Sensitivity causing Caching problems! Is there a quick fix header??

Is a http header that I can set in IIS that will essentially tell the users browser that url "/something/img.gif" and url "/SomeThing/IMG.gif" are in fact the same thing and that the browser should NOT re-download that resource? I'm running into cache issues where some urls are cased differently, and so users browsers are re-downlo...

IIS Manager IIS6 Rights Management on Windows Server 2003

We are using a dedicated hosting provider to host several of our public websites. There are two development teams/divisions within our company who each maintain public websites on these same servers. Is there a way through ACLs or some sort of rights management (e.g. individual logins) that I would only be able to see and maintain only...

IIS 6 Tuning Guide?

I have been a developer for 10+ years and so far my IIS knowledge is just enough for deploying stuff on it and get it running. Recently I have been playing with IIS 6 and realize the huge difference on the worker process model. I think I would need some good guide to update my knowledge in this area. Any good article/book recommendation?...

Switch Requests to Content Specific to Requesting Domain

Lets say I have several web sites on my web server, all as applications under one domain. How could I register other domains to point to the same web server, and redirect requests to, e.g. a web site linked to the requesting domain? I know I'll have to have a root site, and I'm guessing I may have have to do some voodoo in the request ...

"Could not load type..." when upgrading to W2K3 and IIS6

Hi, I have a c# .NET 2.0 application that has been running on W2K/IIS5 quite happily for several years. The sysadmin team are currently setting up a W2K3 box for the app, using the same install files, but are running into the dreaded "Could not load type..." error. The type in question is the class (i.e. code behind) for the page being ...

Timeout when using WCF host on IIS 6

Hi There, I have a problem regarding hosting of a WCF service on IIS 6. My host is fine, I assume, and I can connect to it from a normal app, and get my stuff done. But now I want to stress test the service and I wanna do it from a web client, normal aspx page calling the wcf service with a click of a button, and being able to scale it...

Can I use commas in a URL?

I typically use URL rewriting to pass content IDs to my website, so this Foo.1.aspx rewrites to Foo.aspx?id=1 For a specific application I need to pass in multiple IDs to a single page, so I've rewritten things to accept this: Foo.1,2,3,4,5.aspx This works fine in Cassini (the built-in ad hoc web server for Visual Studio) but...

How to deploying a self signed SSL certificate to multiple servers

I need to create a self signed SSL certificate and the install the same certificate on two different web servers. For this specific scenario I have two web servers (Win2K3 w/ II6) in a network load balanced configuration. I have installed the IIS resource tool kit and can use the SelfSSL tool to make a certificate. However my confusion...

mcrypt and IIS - module does not load in PHP

I have Windows 2003 Standard, IIS 6, PHP, MySQL and amy trying to get mcrypt working so I can use phpMyAdmin. I have uncommended php_mcrypt.dll in php.ini and this file is in my extensions folder (c:\php). I have downloaded libmcrypt.dll to c:\php, c:\php\ext, c:\windows, c:\windows\system32. I have also found a second version of this ...

IE: Choose a digital certificate from a blank, empty list

I've created a web application that I've hosted with IIS 7 on a Windows Server 2008 machine. I've loaded a security certificate for secure.xxxxx.com. When I browse to the web site with Microsoft Internet Explorer, I get this prompt: Choose a digital certificate Identification The website you want to view requests identificati...

How to diagnose IIS fatal communication error problem

I've a a customer using IIS and an application, developed by us, in Asp.NET 1.1. Monday, for 4 times in a row the error “A process serving application pool 'xxxx' suffered a fatal communication error with the World Wide Web Publishing Service. The process id was 'yyyy'. The data field contains the error number.” appeared. Any idea about...