Solved

Host site in subfolder but redirect with CNAME?

Posted on 2011-03-17
2
1,141 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
ID: 35169867
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
ID: 35192580
thank you, that's very helpful
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
DNS Scavenging configuration 5 69
DNS @ Naked Domain Record 5 83
MacBook wifi issues 6 37
DNS spf record 14 53
I wrote this article to explain some important DNS concepts that should be known to avoid some typical configuration errors I often see in forums. I assume that what is described here is the typical behavior of Microsoft DNS client. I don't know …
Resolve DNS query failed errors for Exchange
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

776 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