Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. virtual domain with asp.net app without using isapi_rewrite

virtual domain with asp.net app without using isapi_rewrite

Scheduled Pinned Locked Moved ASP.NET
csharpphpasp-netcomtutorial
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    m khansari
    wrote on last edited by
    #1

    hi a project i'm going to undertake will require a user system which generates a virtual subdomain for users who register with my site. For example the user john signs up and is given a subdomain to access his account, john.website.com, which when rendered in the browser will automatically bring up http://website.com/profile.php?username=john or similar. How can this be acheived? I know it can be done with ISAPI_REWRITE I want to use my code for it. I work ASP.NET. tanks. MK4 MK4

    M 1 Reply Last reply
    0
    • M m khansari

      hi a project i'm going to undertake will require a user system which generates a virtual subdomain for users who register with my site. For example the user john signs up and is given a subdomain to access his account, john.website.com, which when rendered in the browser will automatically bring up http://website.com/profile.php?username=john or similar. How can this be acheived? I know it can be done with ISAPI_REWRITE I want to use my code for it. I work ASP.NET. tanks. MK4 MK4

      M Offline
      M Offline
      m khansari
      wrote on last edited by
      #2

      hi i find a way to do it. 1. DNS must be configured. like *.example.com IN A 10.10.10.10(the site's IP) 2.IIS must be configured such every request to example.com by every subdomain go through ASP ISAPI 3.A HttpModule must be created to handle those request and convert it to actual address. LIKE subdomain.example.com ----> www.example.com/query?id=subdoamin. thanks. bye.

      MK4

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups