Solved

Accessing a Web Server by Alias instead of IP Address

Posted on 2014-02-03
6
574 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
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 
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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Find out how to use Active Directory data for email signature management in Microsoft Exchange and Office 365.
A procedure for exporting installed hotfix details of remote computers using powershell
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 show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

813 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

12 Experts available now in Live!

Get 1:1 Help Now