access apache server with different name

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
paquin1
Forum Commoner
Posts: 36
Joined: Fri Aug 06, 2004 1:57 pm

access apache server with different name

Post by paquin1 »

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.
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Maybe you need to add information about the new server name into your DNS server or is it just a sub domain name?

Mac
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

worst comes to worst, you can do either of 2 things: change the server's NetBIOS name, or add to the HOSTS file on each computer in the network that needs access to this new name.
paquin1
Forum Commoner
Posts: 36
Joined: Fri Aug 06, 2004 1:57 pm

Post by paquin1 »

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?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

%WINDIR%\system32\drivers\etc\hosts is the file path.. reading it, you'll see something like:

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
each machine will need a new entry (line) with the machine's ip and the name you want it accessible under.
paquin1
Forum Commoner
Posts: 36
Joined: Fri Aug 06, 2004 1:57 pm

Post by paquin1 »

thanks feyd, I’ll probably do this instead.
Post Reply