Running ASPX on APACHE

Having problems with the panel? Have questions? Post here!
Post Reply
goddleyeke
Posts: 6
Joined: Thu Feb 25, 2010 9:35 pm

Running ASPX on APACHE

Post by goddleyeke »

I ran into the problem that I had a pre-existing web server and wanted to use my version, or at least base files of APACHE.

To run ASPX you must set this up in your HTTPD.CONF in \apache\conf .

Add these lines to the END of your HTTPD.CONF

Code: Select all

#asp.net
LoadModule aspdotnet_module "modules/mod_aspdotnet.so"
AddHandler asp.net asax ascx ashx asmx aspx axd config cs csproj licx rem resources resx soap vb vbproj vsdisco webinfo

<IfModule mod_aspdotnet.cpp>
AspNetMount / "PATH TO FILES*"
# Map all requests for asp to the application files--uncomment if UGCC is in a subdirectory of htdocs and update virtual path and path
#Alias /ugcc "PATH TO FILES*"

<Directory "PATH TO FILES*">
AspNet On
Options FollowSymlinks ExecCGI
Order allow,deny
Allow from all
DirectoryIndex Default.aspx index.htm index.aspx
</Directory>
# 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"
<Directory "C:/Windows/Microsoft.NET/Framework/v*/ASP.NETClientFiles">
Options FollowSymlinks
Order allow,deny
Allow from all
</Directory>
</IfModule>
#asp.net 
Make sure you change your directory to your UGCC web directory, IE: C:\xampp\www
goddleyeke
Posts: 6
Joined: Thu Feb 25, 2010 9:35 pm

Re: Running ASPX on APACHE (windows)

Post by goddleyeke »

Here are the full paths as a sample would be.

Code: Select all

#asp.net
LoadModule aspdotnet_module "modules/mod_aspdotnet.so"

AddHandler asp.net asax ascx ashx asmx aspx axd config cs csproj licx rem resources resx soap vb 

vbproj vsdisco webinfo

<IfModule mod_aspdotnet.cpp> 
  # Mount the ASP.NET /asp application
  AspNetMount /SampleASP "C:/wamp/www/SampleASP"
  #/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 /SampleASP "C:/wamp/www/SampleASP"
  #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"

  <Directory "C:/wamp/www/SampleASP">
    Options FollowSymlinks ExecCGI
    Order allow,deny
    Allow from all
    DirectoryIndex Default.aspx index.htm index.aspx
  </Directory>

  AliasMatch /aspnet_client/system_web/(\d+)_(\d+)_(\d+)_(\d+)/(.*) 

"C:/Windows/Microsoft.NET/Framework/v$1.$2.$3/ASP.NETClientFiles/$4"
  <Directory "C:/Windows/Microsoft.NET/Framework/v*/ASP.NETClientFiles">
    Options FollowSymlinks
    Order allow,deny
    Allow from all
  </Directory>
</IfModule>
#asp.net
Post Reply