Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Servers > Internet Information Services
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Internet Information Services Limit this to IIS questions and posts. ASP/ASP.NET questions should still go in the ASP/ASP.NET forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Internet Information Services section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old January 27th, 2009, 10:02 AM
Authorized User
 
Join Date: Nov 2005
Location: , , Spain.
Posts: 72
Thanks: 3
Thanked 0 Times in 0 Posts
Question Have more than 1 website on server and seperate them. HOW?

Hi everyone,

I have a website (Intranet) here at the office. And created a new one. They are:

http:\\192.168.100.1
and
http:\\192.168.100.1\forum

1) Now how can I seperate them so that users of group "A" can only see/acces the first site and the group "B" can only see/acces the second site.
2) is there a way I can give a name to the site so that it will be something like:

http:\\EMNTERPRISE
and http:\\FORUM


I have been trying some configuration, but now luck. All users have a unique IP adress (if neeed somehow)

Any help is welcome!!!!

thx

Johny
Reply With Quote
  #2 (permalink)  
Old January 27th, 2009, 04:13 PM
Friend of Wrox
 
Join Date: Jun 2008
Location: Snohomish, WA, USA
Posts: 1,652
Thanks: 3
Thanked 141 Times in 140 Posts
Default

What operating system???

With XP Pro, you can only have one site per server. *PROBABLY* the same with Vista except the most advanced premium version, whatever they call it.

You can certainly simply "split" the site and give permissions to each half to only one group. That is:
http://mysite/Enterprise
http://mysite/Forum
Reply With Quote
  #3 (permalink)  
Old January 28th, 2009, 05:33 AM
Authorized User
 
Join Date: Nov 2005
Location: , , Spain.
Posts: 72
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Old Pedant View Post
What operating system???

With XP Pro, you can only have one site per server. *PROBABLY* the same with Vista except the most advanced premium version, whatever they call it.

You can certainly simply "split" the site and give permissions to each half to only one group. That is:
http://mysite/Enterprise
http://mysite/Forum
Sorry, forgot to mention it. We have Windows 2003 Server with IIS6 I believe.
I read something about DNS ans stuff like that. Do I have to mess with them a bit? (never done it before)

The reason for the seperation is that all the people of the FORUM are NON administration personal, and may not see the other web.

Many thx already
Reply With Quote
  #4 (permalink)  
Old January 28th, 2009, 05:27 PM
Friend of Wrox
 
Join Date: Jun 2008
Location: Snohomish, WA, USA
Posts: 1,652
Thanks: 3
Thanked 141 Times in 140 Posts
Default

Sorry, never administered Windows 2003 Server. But should surely be able to find this in the IIS docs.

Hmmm... I just googled for "add domain to iis 6" and got plenty of helpful sites/links.
Reply With Quote
  #5 (permalink)  
Old January 28th, 2009, 11:32 PM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

You can achieve this with host headers to some degree. For example say that your primary site: http:\\192.168.100.1 is setup as a website and you have configured your DNS Server to map http://Mycompany.com to the website above. What you would then do is create a SECOND website in IIS (use the wizard) and provide the string you want this URL to respond to in the Host Header protion of the Wizard. So it could be, http://MyCompanyForum.com

Next you will need to add an A record to your DNS server for your second website otherwise your users will not be able to see it (I assume an A record is already in place for site 1).

Lastly, if you dont want to go to all the DNS trouble you could provide a HOST file hack and, assuming you are using AD, push down a HOSTS file to all of the client machines so that when they type : http://MyCompany.com into the browser they will be taken to the internal webserver. *GOTCHA*: If you use this method you will need to have a unique IP address for each website (as far as i know)

Some more info can be found here: http://www.gafvert.info/notes/iis_multiple_websites.htm

hth
-Doug
__________________
===============================================
Doug Parsons
Wrox online library: Wrox Books 24 x 7
Did someone here help you? Click on their post!
"Easy is the path to wisdom for those not blinded by themselves."
===============================================
Reply With Quote
  #6 (permalink)  
Old January 29th, 2009, 04:44 AM
Authorized User
 
Join Date: Nov 2005
Location: , , Spain.
Posts: 72
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Thx dparsons and Old Pedant

I am going to check it out today/tomorrow and will come back to you. i am getting the feeling I will get there.....

Thx again!
Reply With Quote
  #7 (permalink)  
Old February 2nd, 2009, 04:35 AM
Authorized User
 
Join Date: Nov 2005
Location: , , Spain.
Posts: 72
Thanks: 3
Thanked 0 Times in 0 Posts
Unhappy

Ok, it is driving me crazy.
I still can´t get it right. let me tell you what I did:

I have a server 2003 and there I have in DNS management the domain "intranet.mydomain.com" as an (A) Host.
Then in IIS I have a web which is pointed at 192.168.100.1, port 80. there is no use of any HostHeader (Should I change it?)
And if someone connects using http:\\192168.100.1 it will get the main webpage of our intranet
In the directory of the server all the files are at c:\inetpub\wwwroot

No I created a new directory at c:\inetpub\wwwroot\foro where I created the new website

But the only acces is using http:\\192.168.100.1\foro

But the problem is that all the comercials can also have acces to http:\\192.168.100.1, which I don´t like that much

So I want to seprate them. I tried using the "Deny/access" to the website using their IP. But if I say it is denied in the 192.168.100.1 website, it automaticcaly denies them in the 192.168.100.1/foro website.


Now I tried to do the next thing:
1) Created a new DNS Zone called Foro.mydomain.com (is this correct?)
2) Then I went to the IIS server aplication and created a new web without IP, and as HostHeader "FORO".

And from there I am lost.... as it doesn´t work.

Please help me!
Reply With Quote
  #8 (permalink)  
Old August 26th, 2009, 08:50 PM
Registered User
 
Join Date: Aug 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Dont know if you're still having this issue as i dont even know how i stumbled across this....


For the host header, use "foro.mydomain.com" the complete domain, as IIS determines which site to send you to by the URL actually requested...

You even need to add "www.mydomain.com" AND "mydomain.com" to the headers of the default site, so it can be accessed by omitting the "www" part of the domain... ie.. entering google.com into your browser gets google with or without the "www" part.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
seperate string by ^ bbvic XSLT 7 July 25th, 2007 02:00 AM
Why not seperate OBJ layer susahin80 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 0 January 19th, 2007 02:51 PM
connecting to SQL server from website CoolMcCool SQL Server ASP 1 February 22nd, 2006 10:44 AM
1 form, contains two seperate controls EricJ General .NET 2 August 10th, 2005 04:48 AM
Seperate Code JsonTerre1 BOOK: ASP.NET Website Programming Problem-Design-Solution 1 November 7th, 2004 03:38 PM



All times are GMT -4. The time now is 09:48 PM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.