Hi
I have a pc with windows server 2008 (standard) installed. My broadband provider also provides me with a dedicated ip address. Can anyone help with how I configure the server to enable me to host a website using IIS7. I'll apologise in advance as I am very new to managing my own server but I have plenty of web development (vbscript, asp etc) experience.

Dani AI

Generated

Quick checklist for : with a clean Windows Server 2008 install and a dedicated IP you need to (1) install the Web Server (IIS) role with the right role services, (2) assign that dedicated IP to the server NIC (or forward ports if the server sits behind a router), (3) bind your site in IIS to the IP, and (4) open firewall ports and set NTFS permissions for the app pool identity. 's point about roles is exactly the right starting place; add the ASP role service if you plan to run classic VBScript/ASP.

  1. Install IIS and required role services via Server Manager -> Add Roles -> Web Server (IIS). Under Application Development enable ASP and ISAPI Extensions if needed.
  2. Assign the dedicated IPv4 address to the server NIC (Control Panel -> Network Connections -> IPv4 properties). If the server is behind a home/office router, configure port-forwarding of TCP 80/443 to the server IP.
  3. Open the firewall for HTTP/HTTPS. Example commands:
    netsh advfirewall firewall add rule name="IIS_HTTP" dir=in action=allow protocol=TCP localport=80
    netsh advfirewall firewall add rule name="IIS_HTTPS" dir=in action=allow protocol=TCP localport=443
  4. In IIS Manager create your site and Edit Bindings -> choose the dedicated IP (or use host headers if sharing an IP). For SSL note IIS7 does not support SNI—each SSL site normally requires its own IP.

Set NTFS permissions for the site folder so the application pool identity can read/execute. On IIS7 (Server 2008) the default app pool runs as Network Service, so grant that account appropriate rights, for example:

icacls "C:\inetpub\wwwroot\yoursite" /grant "NETWORK SERVICE:(OI)(CI)RX"

If the site works locally but not from the Internet, check: Windows Firewall, router NAT/port-forwarding, whether your ISP blocks inbound ports, and that the public IP reported by the router matches the ISP’s dedicated IP (CGNAT can prevent hosting). For ASP errors enable detailed errors in IIS or consult IIS logs (%SystemDrive%\inetpub\logs\LogFiles) and Event Viewer. pointed to a deeper configuration guide earlier — that kind of checklist is useful after the basic steps above. For official reference see the IIS documentation: IIS documentation.

Recommended Answers

All 5 Replies

Hi Zaphodb;

Firstly, have you installed any roles on your server? or are we working with a fresh clean install here?

Lewis.

Hi,

apologies for the delay in responding. It is a clean install. I have added some roles and played with the settings but there is no data on server so changing the settings is not a problem.

Take a look at on my web site that talks about the best practices for configuring IIS. The document is currently not formatted properly.. if you send me an email from my web site, I'll send you the MS-Word doc. I keep meaning to convert it to a PDF.. :(

Glenn

Hi,

apologies for the delay in responding. It is a clean install. I have added some roles and played with the settings but there is no data on server so changing the settings is not a problem.

Home > Horror | Drama | Sci-Fi/Fantasy >

I converted the document to PDF - this is the correct URL for the Web Server Configuration best practice document.

Glenn

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.