Solved

Accessing a Web Server by Alias instead of IP Address

Posted on 2014-02-03
6
567 Views
Last Modified: 2016-12-08
A colleague of mine recently created a web server on our lan for JIRA.  I'd like to be able to access it by entering "JIRA" into chrome instead of the IP like so:

http://192.168.1.42:8080/login.jsp

We only have 1 domain on our Windows Server 2008R2 Domain Controller.  Figured this was simple... but have never done it before.
0
Comment
Question by:2_under_par
  • 2
  • 2
  • 2
6 Comments
 
LVL 26

Expert Comment

by:pony10us
ID: 39831117
You can place an entry in the DNS server or you can put an entry in your host file. The DNS server will work for everyone but the host file will only work for you.
0
 
LVL 11

Accepted Solution

by:
Manjunath Sullad earned 500 total points
ID: 39832026
you can check with your Server admin team to create DNS entry for "JIRA"

Server team needs to create DNS entries ( Preferably both A and PTR record)

Once its done, You can access through IP or JIRA name also
0
 

Author Comment

by:2_under_par
ID: 39836030
I added an A record for JIRA that points to 192.168.1.42.

http://jira =>> gets me to what looks like the default, blank page of the apache server.

http://jira:8080 =>> takes me to login to jira.  

I didn't mention this before & I probably should have, but I'd like to access Jira & a Wiki via that IP Address.

So,
http://Jira    ==>>  http://192.168.1.42:8080/login.jsp
http://Wiki  ==>>  http://192.168.1.42:some other port.jsp

Is there an elegant way to do this via DNS and not type in the PORT NUMBER, or is this an Apache web server issue?
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 11

Expert Comment

by:Manjunath Sullad
ID: 39836157
Try updating host files locally,

C:\windows\System32\drivers\etc\hosts  edit in notepad add the IP address and hostname.
0
 
LVL 26

Expert Comment

by:pony10us
ID: 39836580
According to the Apache website:  http://httpd.apache.org/docs/2.2/vhosts/examples.html

Running different sites on different ports.

You have multiple domains going to the same IP and also want to serve multiple ports. By defining the ports in the "NameVirtualHost" tag, you can allow this to work. If you try using <VirtualHost name:port> without the NameVirtualHost name:port or you try to use the Listen directive, your configuration will not work.


Server configuration

 Listen 80
 Listen 8080

 NameVirtualHost 172.20.30.40:80
 NameVirtualHost 172.20.30.40:8080

 <VirtualHost 172.20.30.40:80>
 ServerName www.example.com
 DocumentRoot /www/domain-80
 </VirtualHost>

 <VirtualHost 172.20.30.40:8080>
 ServerName www.example.com
 DocumentRoot /www/domain-8080
 </VirtualHost>

 <VirtualHost 172.20.30.40:80>
 ServerName www.example.org
 DocumentRoot /www/otherdomain-80
 </VirtualHost>

 <VirtualHost 172.20.30.40:8080>
 ServerName www.example.org
 DocumentRoot /www/otherdomain-8080
 </VirtualHost>
0
 

Author Comment

by:2_under_par
ID: 39839047
I created the DNS entries, but am waiting to hear back about the Linux box config.  Will post back then & divide up the points.  Thanks!
0

Featured Post

Don't lose your head updating email signatures!

Do your end users still have the wrong email signature? Do email signature updates bore you or fill you with a sense of dread? You can make this a whole lot easier on yourself by trusting an Exclaimer email signature management solution. Over 50 million users do...so should you!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now