Tuesday, May 26, 2020

Windows Server : Configure and Set up Web Server on IIS

Creating a new website on IIS

If you have multiple servers, please configure same way on all server within the environment.

1. Login to your server and go to E: drive. Create a directory as the name of the application.
E:\iCare

2. Open Service Manager and Open IIS or start type IIS and press enter to open,
- Expand Site Tree
- R. Click on site tree and Click on Add website

3. On Add WebSite page, fillout the information as follow
  - Site Name: <Application Name>    # icare
  - Physical Path: E:\iCare
  - Binding: Leave default
  - Hostname: <Application Name> # all lower case  # icare
  - Verify start website immediately is checked and click ok

4. Go to site you just created.
  - Right Click on the site and click on Edit Bindings
  - Click on Add and specify type: Environment IP and available port.
    Note: port 80 by default and also add port for application for eg, 8001

Binding Info
<siteName> port 80
<IP Address> - Port - new application specific port
Make sure, the port is not used by any other application. You will have problem to reuse the port that is already in use.

5. Now, Go to Applicaion Pools
  - Browse to the Application Name you just created.
  - R click and click on Advance Settings
  - Under general tab, set "Enable 32-bit application" to false
  - Under Generate [rocess model event log entry:
  - Specify the account name and pw that is used to start this application. they also called service accounts.

Deploying the applicaiton
1. R click on the site and click on Deploy
2. Click on Import application
3. Specify the location of the applicaiton.

Issue/torubleshooting
- There might be misconfig on the web.config file which is located on E:\application directory

DNS entry update
1. Login to DNS server
2. Go to DNS and forward lookp -> domain and application
3. Use IP for the new site.
    - Click on "Create a pointer record" in the DNS box. Use the server IP. R. click on Domain and click on add New Host.

No comments:

Post a Comment