Multiple global.asa ?

F

FaYYaZ

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
 
A

Aaron Bertrand - MVP

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.
 
P

Paul O'Mahony \(Hotmail\)

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

global.asa 1
Global.asa 5
Share Global.asa 2
connection info in Global.asa 1
Global.asa 0
ENABLESESSIONSTATE and Global.asa 4
Filter table rows based on multiple checkboxes value 2
Global.asa 1

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top