?
Solved

IIS redirect custom DNS "mysite.myhost.com" to another port on a dedicated server

Posted on 2010-09-22
11
Medium Priority
?
1,244 Views
Last Modified: 2013-11-30
Hi, I've a dedicated server (Windows 2008 R2) with a my application that wait incoming connection on a port like 1234.
I need to redirect a specified url (I've configured the DNS) to same IP but on a different port, without specific the mysite.myhost.com:1234.
Can I do that?
0
Comment
Question by:ISIGest
11 Comments
 
LVL 9

Expert Comment

by:Gianpiero Rossi
ID: 33732451
if you don't specify the port it will assume you are using the 80.
if you want to do something dynamicalli you can set up a custom asp.net page that make the redirect following the condiction that you want
0
 

Author Comment

by:ISIGest
ID: 33732820
I want to redirect an url to specified port but the url in the browser must be without the port.
Can you tell me how I can do it with a custom asp.net page?
0
 
LVL 30

Expert Comment

by:Brad Howe
ID: 33735404
Hi,
Yes, you can use IIS URL Rewrite with a Proxy rule OR correctly set the IIS Bindings and change the port to 80.
Based on the question you have
SITE1 - mysite.myhost.com:1234
SITE2 - mysite.myhost.com
And want http://mysite.myhost.com to show content of mysite.myhost.com:1234.
What are you trying to accomplish?
-Hades666
 
0
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

 

Author Comment

by:ISIGest
ID: 33735891
Yes, but on my server there is a windows service that listening on 1234 port and not a website:
I want an url mysite.myhost.com point to internal port of my dedicated webserver on same pc.
0
 
LVL 30

Expert Comment

by:Brad Howe
ID: 33735987
??
So you want a DNS record to point to a Windows Service port?
EG: MSSQL on 1433. I create a DNS for mssql.domain.com and I want to connect to that database without hte port 1433 specified?
This is not possible.
Hades666
0
 

Author Comment

by:ISIGest
ID: 33736063
So like that....
It's not possible??
0
 
LVL 30

Expert Comment

by:Brad Howe
ID: 33736178
Well, yes if what i think you are asking.
Does this load a web service or site?  http://mysite.myhost.com:1234
Does this load a web service or site? http://mysite.myhost.com 
Is this site use Apache/J2EE etc webserver? If so, the the URL Rewrite Module is what you need to create the proxy.
Let us know, Hades666
 
 
0
 

Author Comment

by:ISIGest
ID: 33741566
http://mysite.myhost.com:1234 is a webservice and I use Windows 2008 R2 with IIS 7.
This is a dedicated machine for my website.
0
 
LVL 30

Expert Comment

by:Brad Howe
ID: 33742791
Yes, so it is a WEBSERVICE. Which means it runs on IIS as a Virtual Host.  So, if you open IIs Manager do you see 2 Virtual Hosts?
1. SITE1 - mysite.myhost.com:1234
2. SITE2 - mysite.myhost.com
Please provide a screenshot of your IIS manager virtual host setup and bindings.
-Hades666
0
 

Author Comment

by:ISIGest
ID: 33745850
I've a Dedicated Web SERVER
0
 
LVL 8

Accepted Solution

by:
GeneralTackett earned 2000 total points
ID: 33746810
you can do this ..
in the index/default.htm page

<META http-equiv="refresh" content="0; URL=http://www.yoururl.com:1234">

or write an ISAPI filter

or set the port number of the website to 1234 in IIS management console for that web site

or enable custom headers and do it there .. Dont remember the procedure.. but it allows multiple sites to share the same ip.  
0

Featured Post

Transaction-level recovery for Oracle database

Veeam Explore for Oracle delivers low RTOs and RPOs with agentless transaction log backup and transaction-level recovery of Oracle databases. You can restore the database to a precise point in time, even to a specific transaction.

Question has a verified solution.

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

WARNING:   If you follow the instructions here, you will wipe out your VTP and VLAN configurations.  Make sure you have backed up your switch!!! I recently had some issues with a few low-end Cisco routers (RV325) and I opened a case with Cisco TA…
In this article I will be showing you how to subnet the easiest way possible for IPv4 (Internet Protocol version 4). This article does not cover IPv6. Keep in mind that subnetting requires lots of practice and time.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

755 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