Solved

Host site in subfolder but redirect with CNAME?

Posted on 2011-03-17
2
1,152 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
[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
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Most DNS problems are VERY easily troubleshot and identifiable if you can follow the steps a DNS query takes. I would like to share the step-by-step a DNS query takes from the origin to the destination. _____________________________________________…
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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

717 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