Unique .Net applications from subdomains?

riley

Perch
If I create a subdomain for my .Net site, can I run a unique application from the subdomain?s folder?

For example, if I have mydomain.com and create a subdomain named support (support.mydomain.com), the folders might look something like this:

/mydomain.com/
/mydomain.com/bin
/mydomain.com/index.aspx
/mydomain.com/support/
/mydomain.com/support/bin
/mydomain.com/support/support.aspx

Can the system be configured to execute support.aspx and its associated dll in the /mydomain.com/support/bin folder as a separate web application from main application in the /mydomain.com/ folder?

riley
 
Subdomains here are actually totally separate folders. They are not folders under your main domain. So your model would look more like this:

mydomain.com/
mydomain.com/bin
mydomain.com/index.aspx
support.mydomain.com
support.mydomain.com/bin
support.mydomain.com/support.aspx

And each subdomain is it's own virtual application folder and can have it's own web.config /bin directory the works. I hope this answers your question.
 
brawney said:
Subdomains here are actually totally separate folders. They are not folders under your main domain.

Thanks brawney, I think it does. But let me make sure I am understanding this completely. The way I interpret your reply, the mydomain.com and support.mydomain.com folders both appear under my account, as if each were an actual domain:
/myacct/mydomain.com
/myacct/support.mydomain.com
Did I understand this correcly?

If this is the case, can the application in support.mydomain.com get to information (data files, etc.) in the mydomain.com folder?

Thanks again for your reply,
riley
 
You are right. They are at the same level. So physically they are something like this:

c:\hshome\myacct\mydomain.com
c:\hshome\myacct\support.mydomain.com

It is preferable to store data files (like Access databases) in a directory not accessible from the web, such as c:\hshome\myacct\MyData. This way all websites/apps can get to them but nobody can get to them from the web.

Make sense?
 
brawney said:
You are right. They are at the same level. So physically they are something like this:

c:\hshome\myacct\mydomain.com
c:\hshome\myacct\support.mydomain.com

I created one last night and it works great. I didn't realize how much control we have over subdomains; it's almost like having another domain. I'm pleased.

brawney said:
It is preferable to store data files (like Access databases) in a directory not accessible from the web, such as c:\hshome\myacct\MyData. This way all websites/apps can get to them but nobody can get to them from the web.
Make sense?

I am aware of this, but when I was putting my first site up on jodohost 10 months ago, I could not get parent paths ("../") to work (even after they enabled them) -- .net seemed to have a problem with it.

Are you able to use MapPath() for your paths, or are you simply using physical paths?

riley
 
Back
Top