Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

From PWS to IIS - Multiple sites question

Status
Not open for further replies.

Reesy

Programmer
Joined
Aug 7, 2002
Messages
60
Location
GB
I have two Intranet sites which have been running on PWS on a windows 98 PC - These sites have outgrown this system plus the imminent release of a third site has resulted in us getting a new machine running IIS on 'Windows 2000 Server'.

I was wondering if these sites should be set up as multiple sites using Host Header Names i.e.
Code:
[URL unfurl="true"]http://Sales[/URL]
[URL unfurl="true"]http://Customers[/URL]
[URL unfurl="true"]http://Products[/URL]

Or simply by using virtual directories under one site i.e.
Code:
[URL unfurl="true"]http://myServer/Sales[/URL]
[URL unfurl="true"]http://myServer/Customers[/URL]
[URL unfurl="true"]http://myServer/Products[/URL]
Apart for the naming of the site is there any difference between having them as seperate sites as opposed to using virtual directories?

Any advice is greatly appreciated.

Cheers, Reesy


Blood, Sweat But No Tears!
 
I hope this helps you out..

IIS 5.01 koolcat's Way

OPEN IIS, RIGHT CLICK ON YOUR DEFAULT WEB SITE FOLDER GO TO PROPERTIES AND CLICK HOME DIRECTORY AND SET TICK THE BOXES YOU WISH TO RUN (I TICKED SCRIPT SOUCE ACCESS, READ, DOCUMENT BROWSING,LOG VISITS AND INDEX THIS RESOURCE. "YOU MAY HAVE TO TICK WRITE ASWELL BUT THIS IS JUST THE BETA VERSION OF koolcat'S IIS WAY").

NEXT CLICK DOCUMENTS AND ADD index.asp,index.html,default.html,index.php and default.php YOU CAN ADD PRIOTY OVER THE PAGES BY MOVING THEM UP OR DOWN WITH THE ARROW KEY ON THE LEFT.

AFTER YOU HAVE DONE THE ABOVE SECTION CLICK APPLY THEN SELECT ALL AND CLICK OK.

CHECK THE ABOVE IS THE SAME IN THE DEFAULT WEB SITE SETTINGS, IF THIS IS SO WE MUST REMEMBER TO ALLOW SCRIPTS TO RUN ON THE LOCALHOST SO RIGHT CLICK ON DEFAULT WEB SITE AND CLICK ON PROPERTIES 'YET AGAIN' AND CLIK HOME DIRECTORY. THIS TIME WE NEED TO SET THE EXECUTE PERMISSION TO SCRIPTS ONLY FOR NOW!! (AS I SAID ABOVE THIS IS THE BETA VERSION SO LETS GET IT UP AND RUNNING FIRST BEFORE WE TINKER ANY FURTHER) CLICK APPLY THEN OK.

NEXT CREATING A VIRTUAL DIRECTORY FOR A WEB SITE.

"OH BOY HERE WE GO AGAIN" RIGHT CLICK ON THE DEFAULT WEB SITE ICON, GO TO NEW AND CLICK VIRUAL DIRECTORY YOU WILL BE GREETED WITH THE VIRTUAL DIRECTORY WIZARD, CLICK NEXT you will then be faced with the virtual directory creation wizard, enter an alias (THIS IS FOR MORE SECURITY LATER ON)I.E. MY WEB SITE. CLICK NEXT NOW YOU HAVE THE VIRTUAL DIRECTORY CREATION WIZARD, CLICK BROWSE AND BROWSE TO YOUR WEB SITE IN THE ROOT FOLDER. CLICK OK THEN NEXT.

TICK THE "EXECUTE (such as ISAPI application or CGI)" "and the Browse box" CLICK NEXT THEN FINISHED.

NOW WE NEED TO SET THE PERMISSIONS F THE DATABASE.

IN THE BIG WINDOW ("SOUNDS LIKE PLAY SCHOOL" LOL) BROWSE TO THE DIRECTORY WHERE YOU DATABASE IS LOCATED AND RIGHT CLICK ON IT. CLICK ON ALL TASKS AND CLICK THE PERMISSIONS WIZARD CLICK NEXT, TICK SELECT NEW SECURITY SETTINGS FROM A TEMPLATE. CLICK NEXT, HIGHLIGHT PUBLIC WEB SITE AND CLICK NEXT LEAVE THE DEFAULR SETTINGS AND CLICK NEXT. CLICK NEXT THEN FINISH.

THERE YOU GO EASY AND PAINLESS WASN'T IT

NOW ONE MORE IMPORTANT THING YOU NEED TO SET THE DSN UP AND CHECK THAT THE CONN IS WORKING OK BUT THAT ALAS IS SOMETHING YOU SHOULD ALREADY KNOW IF YOU ARE THIS FAR INTO IIS 5.1. IF NOT FOLLOW GORDONS TUTORIALS ON AND YOU CAN'T GO WRONG.

YOU NEED TO CREATE VIRTUAL DIRECTORY FOR ECAH SITE YOU SET UP.

REGARDS

koolcat

[thumbsup]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top