Steve Bohler
asked on
Point subdomain to sub-directory
Hello,
I have an ASP.NET application.
let's call it www.myapp.com
I want to point a subdomain to a subdirectory of it
e.g., pub.myapp.com would point to www.myapp.com/pub
It wouldn't be a redirect. It would be more like an alias.
I tried creating an IIS website and pointing it's home directory to the subdirectory. But, it creates a web.config file and I get errors when I try to go to it via a browser. It wants the app root, seemingly, to be in that subdirectory.
What am I doing wrong?
Thanks in advance,
Steve
I have an ASP.NET application.
let's call it www.myapp.com
I want to point a subdomain to a subdirectory of it
e.g., pub.myapp.com would point to www.myapp.com/pub
It wouldn't be a redirect. It would be more like an alias.
I tried creating an IIS website and pointing it's home directory to the subdirectory. But, it creates a web.config file and I get errors when I try to go to it via a browser. It wants the app root, seemingly, to be in that subdirectory.
What am I doing wrong?
Thanks in advance,
Steve
ASKER
IIS 6
I'm getting an ASP.NET compilation error
BC30002: Type 'UserAuth' is not defined.
If I go directly to the subdirectory outside of using the subdomain, it works fine.
I'm getting an ASP.NET compilation error
BC30002: Type 'UserAuth' is not defined.
If I go directly to the subdirectory outside of using the subdomain, it works fine.
How did you create your subdomain (in other words did you create it as a new website under an existing website or as a new website directly under the server)?
You mention that you go directly to the subdirectory outside of using the subdomain, could you elaborate a bit?
-saige-
You mention that you go directly to the subdirectory outside of using the subdomain, could you elaborate a bit?
-saige-
ASKER
I created it as a new website on the same level as my other websites. Didn't know you can create a website under an existing website.
What I meant was that if I go to www.myapp.com/pub, I don't get the error.
What I meant was that if I go to www.myapp.com/pub, I don't get the error.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Yep, that's correct.
What errors are you receiving (associated error numbers and code would be helpful)?
-saige-