Excuse me if this mail has already been sent to you...
The problem with the session is this: in the second site I set a session
variable (Session("UserRecord") = myRecord) but, after a postback, the
session variable is lost.
I tried debugging my application and when I set the session the first time
it works fine but after the postback... puff... my session variable is set
to nothing.
Regards,
Gabriele Bianchini
-----Messaggio originale-----
Da: Todd L Hicks [mailto:[EMAIL PROTECTED]
Inviato: venerdì 15 luglio 2005 23.18
A: [email protected]
Oggetto: RE: [cli-users] mod_aspdotnet and VirtualHost
Gabrielle,
If I understand correctly, both of your virtual hosts are parsing asp.net
code correctly with the exception of some session problem.
What problem are you experiencing with sessions?
Can you attach some code that's demonstrates your error.
Regards,
Todd Hicks
-----Original Message-----
From: Gabriele Bianchini [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 14, 2005 3:51 AM
To: [email protected]
Subject: [cli-users] mod_aspdotnet and VirtualHost
Hello.
I'm trying to use mod_aspdotnet in conjunction with VirtualHost directive
but I cant get it to work.
I've a webserver on which I want to run multiple sites with name-based
virtual hosting, so in my httpd.conf I have the following instructions:
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot "C:/wwwroot"
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "C:/wwwroot/test1"
ServerName test1.local
</VirtualHost>
# -----------------------------------------------------------
# Site 1
# -----------------------------------------------------------
<VirtualHost *:80>
ServerName www.site-one.it
ServerAlias site-one.it *.site-one.it
DocumentRoot "C:/wwwroot/site-one.it/v4.0"
AspNetMount / "C:/wwwroot/site-one.it/v4.0"
<Directory "C:/wwwroot/site-one.it/v4.0">
Options FollowSymlinks Indexes Includes ExecCGI
Order allow,deny
Allow from all
DirectoryIndex default.htm default.aspx
</Directory>
</VirtualHost>
# -----------------------------------------------------------
# Site 2
# -----------------------------------------------------------
<VirtualHost *:80>
ServerName www.site-two.it
ServerAlias site-two.it *.site-two.it
DocumentRoot "C:/wwwroot/site-two.it/v2.0"
AspNetMount / "C:/wwwroot/site-two.it/v2.0"
<Directory "C:/wwwroot/site-two.it/v2.0">
Options FollowSymlinks Indexes Includes ExecCGI
Order allow,deny
Allow from all
DirectoryIndex default.htm default.aspx
</Directory>
</VirtualHost>
I want site-one to be an ASP.NET application and site-two to be a separate
application. They are distinguished only by the host name the client uses to
access my server.
Aside that the docs states that AspNetMount can be placed only OUTSIDE a
VirtualHost directive (but in this way apache always give me error when
doing a request), this configuration seem to work. If I access site-one it's
working perfectly.
If I access site-two it's warking also (aspx pages are served correctly) BUT
it doesn't handle session correctly.
The same site under IIS is working correctly.
It seems to me that it's a problem with the AspNetMount directive but I
tried different combinations and I just cant get it.
Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]