hometriangle-righttriangle-leftmenu3

Setting Up Sites on HS01 (And DS03)

Filesystem Setup

First up do the following:

  • Create folders in vs, upload and db with the client number (i.e. 1688)
  • The contents of the db folder should be copied to db/1688
  • The content folder (and any other folders requiring write permissions should be copied to upload/1688
  • Ensure these files are removed from the vs/1688 folder

We will revisit these folders and grant them permissions later.

 

IIS Setup

Open IIS, Right click sites 'Add Website…'

  • Site name: www.domain.co.uk
  • Physical Path: root url i.e. c:\web\vs\2812\public_html (ASP) or C:\web\vs\3581  (.NET)
  • Binding Host > www.domain.co.uk
  • Binding IP > IP4 Address i.e. 212.48.74.102

Click OK to save.

 

Edit Bindings

  • Add root domain i.e. domain.co.uk
  • Add preview domain i.e. 1688.spiderscope.co.uk

(Note: you will need to add a dns entry for customernumber.spiderscope.co.uk in Daily with CNAME set to the server i.e. hs01.spiderscope.com.)

 

Manage site in IIS > Click ASP

  • Behaviour > Enable Parent Paths: true
  • Limit properties > Max req entity body limit: 10 000 000
  • Debugging > Send Errors to Browser:  true

Click 'Apply Changes' to save.

 

Manage site in IIS > Authentication

  • Right click Anonymous Authentication
    • Select 'Application pool identity'

Click OK to save changes

 

Manage site in IIS > Error Pages

  • Right click 404 (when ASP site) and Edit
  • Execute a URL…: /404.asp

Click OK to save.

  • Deselect any selected items and click 'Edit Feature Settings' on the right hand side
  • Check "Detailed Errors for local requests and custom error pages for remote requests” (Enables detailed error messages to browser)

Click OK to save

 

IIS > App Pools

  • Right click app pool > Advanced Settings
    • >>> General > Enable 32 Bit Applications: true

Click OK to save changes

 

 

Content Virtual Directory Setup

 Repeat this for all folders in c:\web\upload\customernumber\* (usually this will be just the content folder)

  • Right click Site > Add Virtual Directory
    • Alias: folder name i.e. content
    • Phsyical path i.e. c:\web\upload\1688\content\

Click OK to save.

 

Mail Virtual Directory Setup (if required, hs01)

  • Right click Site > Add Virtual Directory
    • Alias: mail
    • Phsyical path i.e. C:\web\vs\1688mail\v1

Click OK to save.

Note: Ensure config and contact forms are set up to point to  www.domain.co.uk\mail\send.asp

  

File Permissions Setup

Root directory i.e. /vs/1688

  • Right click /vs/1688 folder > Properties > Security tab
    • Edit > Add…
      • Enter: IIS AppPool\www.domain.co.uk > OK
      • Allow only: READ (deselect others, not deny)
    • Click OK and then OK again to save 

 

Writeable Content folder i.e. /content/1688

  • Right click /content/1688 folder > Properties > Security tab
    • Edit > Add…
      • Enter: IIS AppPool\www.domain.co.uk > OK
      • Allow: Full Control (All)
    • Click OK and then OK again to save

 

DB Folder i.e. /db/1688

  • Right click /db/1688 folder > Properties > Security tab
    • Edit > Add…
      • Enter: IIS AppPool\www.domain.co.uk > OK
      • Allow: Full Control (All)
    • Click OK and then OK again to save

 

Mail Folder Permissions (vs and db folders) (HS01)

  • Right click C:\web\vs\1688mail > Properties > Security tab
    • Edit > Add…
      • Enter: IIS AppPool\www.domain.co.uk > OK
      • Allow only: READ (deselect others, not deny
      • Click OK and then OK again to save

 

  • Right click C:\web\db\1688mail > Properties > Security tab
    • Edit > Add…
      • Enter: IIS AppPool\www.domain.co.uk > OK
      • Allow only: READ (deselect others, not deny)
    • Click OK and then OK again to save