Multiple global.asa ?

Discussion in 'ASP General' started by FaYYaZ, Dec 2, 2003.

  1. FaYYaZ

    FaYYaZ Guest

    Hi All

    I have one application folder containing all ASP code files.
    I want host multiple sites pointing to same code.

    Can I do this ?
    If YES then how I can assign diffrent global.asa to each application.....


    Regards
    Fayyaz
     
    FaYYaZ, Dec 2, 2003
    #1
    1. Advertising

  2. > I have one application folder containing all ASP code files.
    > I want host multiple sites pointing to same code.
    >
    > Can I do this ?
    > If YES then how I can assign diffrent global.asa to each application.....


    Sorry, one application folder can only have one global.asa file.

    --
    Aaron Bertrand
    SQL Server MVP
    http://www.aspfaq.com/
     
    Aaron Bertrand - MVP, Dec 2, 2003
    #2
    1. Advertising

  3. I've done something like this before. Depends on what youwant to do in
    global.asa...

    You can only have one global.asa, but you can do something like this...

    Sub Session_OnStart()

    Select Case LCase (Request.ServerVariables("SERVER_NAME"))
    Case "www.site1.com"
    ' TODO: Insert Site 1 specific stuff here

    Case "www.site2.com"
    ' TODO: Insert Site 2 specific stuff here

    End Select

    End Sub

    HTH, Paul

    "FaYYaZ" <> wrote in message
    news:...
    > Hi All
    >
    > I have one application folder containing all ASP code files.
    > I want host multiple sites pointing to same code.
    >
    > Can I do this ?
    > If YES then how I can assign diffrent global.asa to each application.....
    >
    >
    > Regards
    > Fayyaz
    >
    >
     
    Paul O'Mahony \(Hotmail\), Dec 3, 2003
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Darlene Gauthier

    PostRequestHandlerExecute event in global.asa

    Darlene Gauthier, Jul 23, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    1,459
    Karl Seguin
    Jul 23, 2003
  2. Kevin Spencer

    Re: global.asa file (count sessions)

    Kevin Spencer, Jul 30, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    368
    Kevin Spencer
    Jul 30, 2003
  3. DevBoy

    Global.asa File ?????

    DevBoy, Aug 12, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    373
    Rick Strahl [MVP]
    Aug 13, 2003
  4. Wayne
    Replies:
    2
    Views:
    501
    Wayne
    Nov 11, 2003
  5. Raghu
    Replies:
    1
    Views:
    4,163
    Raghu
    Feb 17, 2005
Loading...

Share This Page