I installed Apache(httpd-2.2.17-win32-x86-openssl-0.9.8o.msi). Now I want to run asp.net web pages on apache server. I did install the mod_aspdotnet-2.2.0.2006-setup-r2.msi module, and configured the httpd.conf file like so(just added the content below):
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:/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:/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"
# Allow asp.net scripts to be executed in the /SampleASP example
<Directory "c:/SampleASP">
Options FollowSymlinks ExecCGI
Order allow,deny
Allow from all
DirectoryIndex index.htm index.aspx
#default the index page to .htm and .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
Now I restarted my server and It's giving me an internal server error. Error log says:
mod_aspdotnet: No AspNetMount URI for request: /index.aspx
How can I make Apache run .aspx web pages?
Note my documentroot is : "D:/Dave's_Server/RWC2011"
and I did create the "c:/SampleASP" folder with an index.aspx file in it...
Might be a dumb question, but your index.aspx file is in the /SampleASP folder, crorrect? And your URL is something like http://localhost/SampleASP/index.aspx, correct?
Good question...You see I learnt of apache before I knew about IIS(weird I know), so I started using apache for .html pages. As of late I started using asp.net, but since I couldn't get it to work on apache, I switched to IIS, which was the best thing I
ever did. Would just like to know, does IIS provide internal support(modules and so) for php as well?
DextrousDave
Member
124 Points
81 Posts
ASP.NET on Apache
Sep 28, 2011 04:07 PM|LINK
Hi.
I installed Apache(httpd-2.2.17-win32-x86-openssl-0.9.8o.msi). Now I want to run asp.net web pages on apache server. I did install the mod_aspdotnet-2.2.0.2006-setup-r2.msi module, and configured the httpd.conf file like so(just added the content below):
#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:/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:/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"
# Allow asp.net scripts to be executed in the /SampleASP example
<Directory "c:/SampleASP">
Options FollowSymlinks ExecCGI
Order allow,deny
Allow from all
DirectoryIndex index.htm index.aspx
#default the index page to .htm and .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
Now I restarted my server and It's giving me an internal server error. Error log says:
mod_aspdotnet: No AspNetMount URI for request: /index.aspx
How can I make Apache run .aspx web pages?
Note my documentroot is : "D:/Dave's_Server/RWC2011"
and I did create the "c:/SampleASP" folder with an index.aspx file in it...
DarthSwian
Star
12771 Points
2361 Posts
Re: ASP.NET on Apache
Sep 29, 2011 11:21 AM|LINK
Not to discourage you, but this is more a question for an apache forum. Most .Net people are probably running on IIS.
Seek and ye shall find or http://lmgtfy.com/
jeff@zina.co...
All-Star
87677 Points
11637 Posts
Moderator
Re: ASP.NET on Apache
Sep 29, 2011 11:32 AM|LINK
Might be a dumb question, but your index.aspx file is in the /SampleASP folder, crorrect? And your URL is something like http://localhost/SampleASP/index.aspx, correct?
Jeff
DextrousDave
Member
124 Points
81 Posts
Re: ASP.NET on Apache
Oct 04, 2011 01:16 PM|LINK
Yup, that's right. My url is my website domain name... http://mydomainname.com/index.aspx
kctt
Contributor
5004 Points
948 Posts
Re: ASP.NET on Apache
Oct 11, 2011 06:18 AM|LINK
What is your reason of running apache on a windows box then try to run asp.net from apache?
DextrousDave
Member
124 Points
81 Posts
Re: ASP.NET on Apache
Oct 11, 2011 08:04 AM|LINK
Good question...You see I learnt of apache before I knew about IIS(weird I know), so I started using apache for .html pages. As of late I started using asp.net, but since I couldn't get it to work on apache, I switched to IIS, which was the best thing I ever did. Would just like to know, does IIS provide internal support(modules and so) for php as well?
DarthSwian
Star
12771 Points
2361 Posts
Re: ASP.NET on Apache
Oct 11, 2011 12:14 PM|LINK
If you're running IIS 7+ you can install support for Php, use the Web Platform Installer http://www.microsoft.com/web/platform/phponwindows.aspx
Seek and ye shall find or http://lmgtfy.com/