Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

URL rewrite with DNS in Windows 2008

Posted on 2015-02-19
14
Medium Priority
?
98 Views
Last Modified: 2015-02-25
Hi,

I have a web application in which i want to rewrite the URL rewrite as:
http://mysite.com.tr (a real domain name)
To an alias (http://foo/baz)

How can i do this via DNS in W2008? (Essentially i have 600 users and modifying hosts file is not manageable)

Br.
0
Comment
Question by:jazzIIIlove
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
14 Comments
 
LVL 19

Expert Comment

by:helpfinder
ID: 40618583
check IP address of real domain (e.g. do a ping of that page) and associate that IP address with your desired alias.

btw to change hosts could be done with simple batch file which distribute (copy) hosts file to your clients (I know you do not want to solve this like this, I am just saying)
0
 
LVL 36

Expert Comment

by:Kimputer
ID: 40618616
DNS will not help if you REALLY want the url change (not just host, but also url, you said in your example /baz)
Even then, if you don't have full admin access to the website, it might not even work, as the website has it's host headers configured on the original hostname.
0
 
LVL 12

Author Comment

by:jazzIIIlove
ID: 40619253
Hi helpfinder;

Thanks, but editting hosts file in client machine is out of question

Hi Kimputer;

What if my alias is not http://foo/baz but http://foo/ Can I still do this via DNS?

Br.
0
Looking for the Wi-Fi vendor that's right for you?

We know how difficult it can be to evaluate Wi-Fi vendors, so we created this helpful Wi-Fi Buyer's Guide to help you find the Wi-Fi vendor that's right for your business! Download the guide and get started on our checklist today!

 
LVL 36

Expert Comment

by:Kimputer
ID: 40619301
If you are in full control of the http://foo server, then it can be used (because the server has to accept the header)
0
 
LVL 12

Author Comment

by:jazzIIIlove
ID: 40622330
How can it be used?
0
 
LVL 12

Author Comment

by:jazzIIIlove
ID: 40622333
I need to know how i can set DNS on W2008. Please help..
0
 
LVL 12

Author Comment

by:jazzIIIlove
ID: 40622378
For URL rewrite action
0
 
LVL 2

Expert Comment

by:UnHeardOf
ID: 40623567
Not possible with DNS. You can do a cname record to point to the domain you want but that won't change the url to reflect the change of domains.

Some firewalls can do a redirect or the web server can do what your looking for.
0
 
LVL 12

Author Comment

by:jazzIIIlove
ID: 40624391
The web server in place is tomcat 7. How to do this with tomcat 7?
0
 
LVL 36

Assisted Solution

by:Kimputer
Kimputer earned 2000 total points
ID: 40625287
edit your server.xml file on the tomcat 7 server to look like this (not exactly, just pointing you to how it should look, make sure the syntax is correct, the dots .... are just an example):

<Host name="mysite.com.tr" ...>
  ...
  <Alias>foo</Alias>
  ...
</Host>

Open in new window

0
 
LVL 12

Author Comment

by:jazzIIIlove
ID: 40626000
Hi Kim,

hostname in server.xml is as localhost and when i try out the alias. It is actually not working..

Thanks for the interest btw.

Br
0
 
LVL 36

Expert Comment

by:Kimputer
ID: 40627733
Then you probably have one site there, and it should already work (because everything coming in will show the same website, wether it's mysite.com.tr or foo.
0
 
LVL 12

Author Comment

by:jazzIIIlove
ID: 40628862
The root of this question, i need to bookmark the aliased site. But when i want to reach via the bookmark, it fails.. (I couldn't make this work even in 'the above' state
0
 
LVL 36

Accepted Solution

by:
Kimputer earned 2000 total points
ID: 40630512
on the test PC:

ping foo
(has to be the same result as ping mysite.com.tr)

If this is true, tomcat 7 problem.
If this is not true, DNS has not been set correctly

So more results/logs/screenshots if possible.
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

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

BIND is the most widely used Name Server. A Name Server is the one that translates a site name to it's IP address. There is a new bug in BIND (https://kb.isc.org/article/AA-01272), affecting all versions of BIND 9 from BIND 9.1.0 (inclusive) thro…
Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
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…

609 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