Solved

Host site in subfolder but redirect with CNAME?

Posted on 2011-03-17
2
1,137 Views
Last Modified: 2012-05-11
Can I have a website that is hosted a folder down on the server, like example.com/awebapp, yet redirect it to another domain with DNS settings like CNAME?  The idea is that I'd like to use an existing domain name to host multiple sites in subfolders on that domain, like mystuff.com which is really hosted at example.com/mystuff, or somejunk.com really hosted at example.com/somejunk.

To make things even more complicated, is there anyway that those sites can be covered by one SSL cert, even while they're being 'aliased' or 'forwarded' or what have you?
0
Comment
Question by:theamzngq
2 Comments
 
LVL 57

Accepted Solution

by:
giltjr earned 500 total points
Comment Utility
You could have a CNAME that points to example.com.  Say you have another domain, somethingelse.com, you could.  In the zone for somthingelse.com you do

www.somethingelse.com. CNAME example.com

You could still need to do http://www.somethingelse.com/awebapp, or if you were running something that supports virtual hosts (called host headers in IIS) you could just do http://www.somethingelse.com and set up the virtual  host so that the default directory is awebapp.

Or if you want to keep everything in the same domain you could.

awebapp.example.com. CNAME example.com.

Then setup a virtual host for awebapp.example.com so that it default directory is awebapp, then you could enter http://awebapp.example.com.


As for the SSL cert, that gets a bit more diffcult.  As long as every host name you want to use SSL for is in the same domain (example.com) you could get a wildcard cert that would cover *.example.com, but you still have to pay for the number of hosts names.  So if you have awebapp.example.com, mysite.example.com, aboutus.example.com, you would have 1 cert, but pay for 3 names.
0
 
LVL 2

Author Comment

by:theamzngq
Comment Utility
thank you, that's very helpful
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

I will assume you are running a non-server version of some sort of Windows throughout this article. There are many flavors of Windows since Windows Server 2000 - 2008, XP Home & Pro, Vista Home & Pro, and Windows 7 Starter, Home, Pro, Ultimate, etc.…
Occasionally you run into the website or two that will not resolve properly using your own DNS servers.  Some people simply set up global forwarders for their DNS server.  I don’t recommend doing this because it can cause problems resolving addresse…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

771 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