Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Resolve virtual directory in DNS

Status
Not open for further replies.

Empmark

IS-IT--Management
Oct 1, 2002
58
US
I have an application running in the default web site as a virtual directory. Instead of typing in I would like to resolve just using DNS. I can't figure out how to create an A record to point to a virtual directory instead of the site. And I am not even sure this can be done.

I don't want to point the default web site to the virtual directory because it is being used and the application doesn't work as a site, only a virtual directory.

Thanks in advance for any help or advice!
 
you can't have dns pointing to a subfolder, and if the application will only run as a virtual directory you probably won't be able to directly run it as an alias.
What should work is to create a new site with hostheader plus a dns alias/hostname, then redirect it to the sub-folder so typing in application.tld will redirect the browser to domain1.tld/application/



Chris.

Indifference will be the downfall of mankind, but who cares?
A website that proves the cobblers kids adage.
Nightclub counting systems

So long, and thanks for all the fish.
 
You can't. DNS resolves names to IP addresses only. Where the documentroot resides is up to the web server, using either different IP addresses or hostnames.

If "sitename" is only used for "application", then the easiest way might be to create an index.html in the documentroot which redirects to the application url.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top