Keep Server Online
  
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
  
or
  
 
  
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
  
Thank You! Steffen
  
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
 |    |   
 | 
     Topic: mod_aspdotnet httpd.conf problems | 
 |   
| Author | 
  | 
 
quantass
 
 
  Joined: 09 Oct 2007 Posts: 3
 
  | 
 Posted: Tue 09 Oct '07 19:12    Post subject: mod_aspdotnet httpd.conf problems | 
     | 
 
  | 
 
Im using the latets apache server on my win xp pro box.  I've also installed mod_aspdotnet latest.  What im trying to do is emulate what i had on my win2k3 box with IIS6 -- multiple asp.net v1.1 websites pointing to different paths.  The httpd.conf file is just killing me.
 
 
Im tyring to get the following virtual hosts to work:
 
desktop = c:/mydesktop/
 
www.mysite.com = c:/projects/mysite/
 
 
Both locations can have html files and .aspx pages.  When i attempt to connect to http://desktop/test.aspx  i get the asp.net error: "Path must be rooted."
 
 
My httpd.conf looks like:
 
 	  | Code: | 	 		  
 
AddHandler asp.net asax ascx ashx asmx aspx axd config cs csproj licx rem resources resx soap vb vbproj vsdisco webinfo
 
 
NameVirtualHost *
 
 
<VirtualHost *>
 
   DocumentRoot "c:/mydesktop/"
 
   ServerName desktop
 
   
 
   <Directory "c:/mydesktop/">
 
   Options ExecCGI FollowSymLinks
 
   Allow from all
 
   Order allow,deny
 
   DirectoryIndex index.htm index.aspx
 
   # default the index page to .htm and .aspx
 
  </Directory>
 
   
 
</VirtualHost>
 
 
# Keep the following as last virtual
 
#######################################################
 
<IfModule mod_aspdotnet.cpp>
 
  # Mount the ASP.NET /asp application
 
  AspNetMount / "c:/projects/mysite/"
 
  
 
  # /SampleASP is the alias name for asp.net to execute
 
  # "c:/SampleASP" is the actual execution of files/folders  in that location
 
  # Map all requests for /asp to the application files
 
  #Alias / "D:/My Projects/Rainbow/"
 
  
 
  # maps /SampleASP request to "c:/SampleASP"
 
  # now to get to the /SampleASP type http://localhost/SampleASP
 
  # It'll redirect http://localhost/SampleASP to "c:/SampleASP"
 
  # Allow from asp.net scripts to be executed in the /SampleASP example
 
  # For all virtual ASP.NET webs, we need the aspnet_client files
 
  # to serve the client-side helper scripts.
 
  AliasMatch /aspnet_client/system_web/(\d+)_(\d+)_(\d+)_(\d+)/(.*) "C:/Windows/Microsoft.NET/Framework/v$1.$2.$3/ASP.NETClientFiles/$4"
 
  AspNetVersion v1.1.4322
 
 
  <Directory "C:/Windows/Microsoft.NET/Framework/v*/ASP.NETClientFiles">
 
    Options FollowSymLinks
 
    Allow from all
 
    Order allow,deny
 
  </Directory>
 
  
 
  <Directory "c:/projects/mysite/">
 
   Options ExecCGI FollowSymLinks
 
   Allow from all
 
   Order allow,deny
 
   DirectoryIndex default.aspx index.aspx
 
  </Directory>    
 
    
 
  <VirtualHost *>
 
      DocumentRoot "c:/projects/mysite/"
 
   ServerName rainbow
 
   ServerAlias www.tourismoxford2.ca www.tillsonburg2.ca www.county.oxford2.on.ca
 
  </VirtualHost>
 
  
 
    <VirtualHost *>
 
        DocumentRoot "C:/Documents and Settings/jrain/Desktop/"
 
     ServerName desktop
 
     ServerAlias www.mysite.com
 
  </VirtualHost>
 
  
 
</IfModule>
 
 | 	 
  | 
 
  | 
 
| Back to top | 
 | 
 
 
 
 
 | 
 
 
 |  
 
 |  
  |   
 |