I have 2 websites : myDomain1.com & myDomain2.com
Both run on the same apache server with Mono. However my issue is that i cannot get them working at the same time. When i go to myDomain2.com it shows the aspx content of myDomain1.com. Occassiononly this is inversed. So that myDomain1.com shows the content for myDomain2.com. I think this happens when i restart apache. Anythoughts on what might be happening here?
my Config. ( The config for myDomain2.com is exactly the same except all the relevant properties are called myDomain2.com )
<VirtualHost *:8014>
ServerAdmin [email protected]
DocumentRoot /home/advanced/myUserName/public_html/myDomain1.com
ServerName myDomain1.com
ServerAlias www.myDomain1.com devel.myDomain1.com
CustomLog logs/myDomain1.com-access.log combined
ScriptAlias /cgi-bin/ /home/advanced/myUserName/public_html/myDomain1.com/cgi-bin/
## Mono (ASP.NET)
MonoUnixSocket myDomain1.com /home/advanced/myUserName/tmp/mod_mono.sock
MonoWapidir myDomain1.com "/home/advanced/myUserName/tmp/"
MonoApplications myDomain1.com "/:/home/advanced/myUserName/public_html/myDomain1.com/"
AddMonoApplications myDomain1.com "/:/home/advanced/myUserName/public_html/myDomain1.com/"
<Location /myDomain1.com>
AddHandler mono .aspx .ashx .asmx .ascx .asax .config .ascx
MonoSetServerAlias myDomain1.com
</Location>
</VirtualHost>
<Directory /home/advanced/myUserName/public_html/myDomain1.com/cgi-bin/>
SetHandler cgi-script
</Directory>