Currently my company has an intranet and people access the html server by typing the name of the server in the browser, so the address is something like this
http://nameserver
What I want is to have people access the same pages and same server with a different name ex.
http://newservername
I'm using apache 2 and was thinking that I could use Virtual Host to do this, but when I try typing the new name it can't find it. Any suggestions on how can I do this? or maybe some can help me set up the Virtual host correctly.
access apache server with different name
Moderator: General Moderators
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
Well, about the DNS server... we are using a router to assign IPs and our ISP DNS, I don't think we are using an internal DNS server. I guess I can find out if I can add a name and redirect to the servers IP in our router. Also I can't change the name of the server since it’s our file server too and everyone in the company has already mapped network drives to it.
Feyd, how will I go about adding the HOSTS file on each computer?
Feyd, how will I go about adding the HOSTS file on each computer?
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
%WINDIR%\system32\drivers\etc\hosts is the file path.. reading it, you'll see something like:each machine will need a new entry (line) with the machine's ip and the name you want it accessible under.
Code: Select all
# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
127.0.0.1 localhost