|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Web Server
Dear Members,
first of all i wud say sorry as i cud not find the IIS forum so am posting my question here. now the question is i have Windows 2000 Server & i have IIS installed on it, now if i create my new Web Site i assign a new unique IP address to my server so that it can host the new site, till here no problem the problem is i can access the intranet site by the IP address (ie http://192.168.0.100/) only & am not able to give it a name like www.mycompany.com or something else mayb can u plz suggest how to change the IP address to a meaningful name thnx in advance Sumeet |
|
#2
|
|||
|
|||
|
If you want visitors from outside your local LAN to be able to use the Url www.mycompany.com you would do the following:
1. Find your public IP Address (assuming you are behind a router/NAT) 2. Setup a DNS A Record in your mycompany.com zone pointing to your public IP Address. 3. Create a cname from mycompany.com => www.mycompany.com 4. In IIS create host headers for your IP address to mycompany.com and www.mycompany.com You should also create a blank host header for that IP address if you want this to be the default site that is shown if you browse using the IP address only. Now, if you are simply looking to browse to www.mycompany.com from inside your LAN (or your local machine), just add a record to your hosts file. You are on Windows 2000 so in notepad open this file: c:\winnt\system32\drivers\etc\hosts In the first column add the IP Address and in the second column add the domain. For example: 192.168.0.100 mycompany.com 192.168.0.100 www.mycompany.com
__________________
__________________________________________________ _ Wil Moore III, MCP | Integrations Specialist | Senior Consultant Are You Listed...? | DigitallySmooth Inc. |
|
#3
|
|||
|
|||
|
well it worked but the problem is it only works on the server machine but on the client machines it shows the message that the page cannot be displayed.
wat probably cud b the problem??? |
|
#4
|
|||
|
|||
|
You have a couple choices:
1. If you have a public dns server add a zone for www.mycompany.com 2. You can copy the modified hosts file to the other machines 3. You can run DNS on windows only for your Local Lan. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > ASP Development > Web Server |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|