Solved

Accessing a Web Server by Alias instead of IP Address

Posted on 2014-02-03
6
560 Views
Last Modified: 2014-09-24
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 11

Expert Comment

by:Manjunath Sullad
Comment Utility
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
Comment Utility
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
Comment Utility
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

Why spend so long doing email signature updates?

Do you spend loads of your time carrying out email signature updates? Not very interesting are they? Don’t let signature updates get you down. Let Exclaimer Cloud - Signatures for Office 365 make managing email signatures a breeze.

Join & Write a Comment

I had a question today where the user wanted to know how to delete an SSL Certificate, so I thought that I would quickly add this How to! Article for your reference. WHY WOULD YOU WANT TO DELETE A CERTIFICATE? 1. If an incorrect certificate was …
I was supporting a handful of Windows 2008 (non-R2) 2 node clusters with shared quorum disks. Some had SQL 2008 installed and some were just a vendor application that we supported. For the purposes of this article it doesn’t really matter which so w…
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…

772 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

10 Experts available now in Live!

Get 1:1 Help Now