Click to See Complete Forum and Search --> : XP professional & IIS


Hooman
05-25-2003, 08:44 PM
Hello,
I have XP professional,... installed IIS... seems to be working....doesn't show the asp pages yet...
Any comments or suggestions appreciated...

Ribeyed
05-26-2003, 02:19 PM
Hi,
sure how can i help?

Ribeyed
05-26-2003, 04:49 PM
Hi Dave,
No problem will help you as much as I can. I am going to assume you have Windows XP installed but not IIS.
Put in your windows XP disk and select Install Optional Windows Components.
Once it has loaded select IIS from the list, you will notice that the box will be grey and checked. If you select IIS and the click the detail button more options will appear. It is up to you if you want to add the FTP and SMTP services to your install. Select the options you will be requiring. If you are running IIS on Windows 2003 or 2002 Server then you would install the NNTP service from there as well.
Ok once that’s installed you can access IIS from control panel, administration options, Internet Information Server.
You will notice that you now have a new folder appeared in root on the C: called

C:\inetpub
And in that:
C:\inetpub\wwwroot
And
C:\inetpub\ftproot
C:\inetpub\mailroot
And a few others

C:\inetpub\wwwroot is now the default for all your web pages; of course you can change this in IIS but for now that is fine.
If you haven’t started up IIS the start it up now.
Click the cross beside your server to expand the options.
You should now see a folder called web sites and others depending on what you installed for example if you installed ftp then ftp sites will also be there.
Again expand the cross beside the web sites to display the default web site.
IIS on windows OS that is not server can only support 1 web site at a time. IIS on windows server can host multiple sites.
If you right click the default web site and click properties to display the options.
First thing you will see is Web site identification and IP address, this you can change to suit your self, and you don’t need to select an IP address unless you are using a static IP address.
Now select the Home Directory tap. This is where you can change the path of the root for you web site files. Make sure that all the options are check apart from source access and directory browsing. The application is mainly for XML so you don’t need to configure that just yet. Only thing left to do on this tab is to set the execute permissions to scripts only and set the application protection to medium pooled.
Now click on the documents tab. This is where you specify the default document that is displayed when your site is hit. You can add and remove document names from here.
Next click on the server extensions this is where you can tune IIS for the number of pages you have in the site, select the client scripting type you are going to be using for the site and configure your SMTP mail settings.
Custom errors is self explanatory if you create your own custom error pages this is where you would come to configure IIS to display them.
In the HHTP Headers you can set the expiree date for you pages, you can edit your content rating for you web site here and you can add additional MIME types that are to be allowed to be send to the HTTP headers.
Lastly the directory security tab is where you can set the permissions for the web site. Click the button edit in the anonymous access and authentication control.
Make sure that you allow the IUSR_YOURSERVERNAME user access to the site. You should have allowed anonymous connections and integrated windows authentication checked.
Back on the Directory security tab the last option server certificate is where you configure any SSL to be used for you web site. If you need any more information on configuring this part let me know.
To access your pages open your browser and use one of the following:

http://localhost
http://intepub/wwwroot
http://youripaddress

Hope this helps you Dave.

Hooman
05-26-2003, 09:38 PM
Thanks for the comprehensive explanation.....
I guess my problem was (Script Only)..
Now it's all working....

Thanks alot

Hooman
05-26-2003, 10:45 PM
It wasn't set to script only before, and wasn't working,
I changed it to script only, and now it's working.\
Thanks again,

Do you have any idea for my next question? being:

At work I'm not allowed to have IIS, because of security...., there I have win 2000, is there any way that I can look at my asp pages on my own computer, without having IIS, I might be able to install other programs on my own, but not IIS.
It would really help me, if you know the answer,

Thanks again,

Hooman
05-27-2003, 09:05 AM
Thanks Dave for the information,

this is very helpful, although my question is if there's a way to get my work computer work with asp's without having IIS.
If maybe there's an external program to create some sort of virtual asp server for me on my work computer, so that I can write asp codes and check them at work. Since they don't allow installing IIS for my machine at work.
I liked the programs on your machine...specially the ants one...
Thanks,

Hooman
05-27-2003, 10:19 AM
I tried apache, doesn't seem to work....
I'll try the other one..
thanks alot

Ribeyed
05-27-2003, 02:42 PM
Hi Dave,

In regard to the SMTP question here is the Microsoft’s explanation, much better that what mine would be :D

http://support.microsoft.com/?kbid=293800

On the HTTP header question, the referrer is already sent. I retrieve and split it like so:


FullReferer = Request.ServerVariables("http_referer")
if len(FullReferer) <= 7 then
RefererDomain = "-"
RefererQuery = "-"
else
SlashPosition = instr(8, FullReferer, "/")
if SlashPosition = 0 then
RefererDomain = FullReferer
RefererQuery = "-"
else
RefererDomain = left(FullReferer, SlashPosition - 1)
RefererQuery = right(FullReferer, len(FullReferer) - SlashPosition)
end if
end if


Sending the lastmodified I’m sorry not sure about that one, maybe if you find information in it you can share it with us.