Page 1 of 1
access apache server with different name
Posted: Thu Sep 30, 2004 1:26 pm
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.
Posted: Thu Sep 30, 2004 2:54 pm
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
Posted: Thu Sep 30, 2004 2:55 pm
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.
Posted: Thu Sep 30, 2004 5:01 pm
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?
Posted: Thu Sep 30, 2004 5:39 pm
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.
Posted: Fri Oct 01, 2004 9:44 am
by paquin1
thanks feyd, I’ll probably do this instead.