SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot zalucius's Avatar
    Join Date
    Jul 2007
    Location
    Denmark
    Posts
    162
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Different websites running from different subfolders?

    Hi,

    I'm currently running into a bit of a problem.
    All I want is to have a collection of "independant" subfolders, from where I can run seperate asp.net websites.

    An example of my folder structure:
    Code:
    www.domain.com
    |-- [group1]
    |-- |-- [site1] (root of "site 1", with local Web.Config)
    |-- |-- [site2] (root of "site 2", with local Web.Config)
    |-- '-- [site3] (root of "site 3", with local Web.Config)
    |-- [group2]
    |-- |-- [site4] (root of "site 4", with local Web.Config)
    '-- '-- [site5] (root of "site 5", with local Web.Config)
    The problem I am running into, is that I have been using the tilde in my paths, when developing on my local system using VWD 2008 Express.
    Apparently the "~/" is looking for the "absolute" root of the website, not the "local" root, atleast not in the way I want it to behave.
    Furthermore, the websites are running on a hosted webserver, where I have no access for modifying any "machine" configuration.
    This leaves me to rely on the web.config file.

    The question is how do I set up the server with the web.config, and how do I prevent each "subsite" to look for the absolute root, instead of the folder where the "subsite's" web.config fil is located?

    I hope anyone can point me in the right direction, this is beginning to annoy me
    zalucius

  2. #2
    SitePoint Zealot zalucius's Avatar
    Join Date
    Jul 2007
    Location
    Denmark
    Posts
    162
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I wonder if I placed this post in the wrong forum?

    Any assistance with this problem would be appreciated.
    zalucius

  3. #3
    SitePoint Wizard
    Join Date
    Feb 2007
    Posts
    1,274
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You define each [sitex] as an "application" in IIS. You write URL root-relative references as "~/page.aspx". Defining the directories as applications in IIS requires your host to support this.

  4. #4
    SitePoint Zealot zalucius's Avatar
    Join Date
    Jul 2007
    Location
    Denmark
    Posts
    162
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for your reply honeymonster, even though the news wasn't good.

    Back to the drawingboard, and rethink the concept..
    zalucius


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •