- Apache win32 binaries from Apache Download Mirrors
- ASP.NET module for Apache HTTP Server 2.x from sourceforge
- DotNetNuke Downloads
Config : Apache (out of scope of this article)
Config : mod_aspdotnet
# enable the Apache HTTP Server to correctly serve ASP.NET application content
AddHandler asp.net asax ascx ashx asmx aspx axd config cs csproj licx rem resources resx soap vb vbproj vsdisco webinfo</span>
<ifmodule aspdotnet_module>
# ----------------------------------------------------------------
# Enables mod_aspdotnet to process ASP.NET content
# ----------------------------------------------------------------
AspNet Files Directories Virtual
# ----------------------------------------------------------------
# Mount the ASP.NET application
# ----------------------------------------------------------------
AspNetMount /portal "<path to DotNetNuke>"
# ----------------------------------------------------------------
# Map all requests for to the application files
# ----------------------------------------------------------------
Alias /portal "<path to DotNetNuke>"
# ----------------------------------------------------------------
# Allow asp.net scripts to be executed
# ----------------------------------------------------------------
<directory <path to DotNetNuke>>
Options FollowSymlinks ExecCGI
Order allow,deny
Allow from all
DirectoryIndex index.htm index.aspx Default.aspx default.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 windows="" net="" framework="" netclientfiles="">
Options FollowSymlinks
Order allow,deny
Allow from all
</directory>
# ----------------------------------------------------------------
</ifmodule>
#asp.net
- Troubleshooting :
- AspNet Files Directories Virtual
This directive not included in most standard mod_aspdotnet configs. If you omit it Apache will be unable to serve virtual resources like WebResource.axd from aspnet_isapi.dll. This will affect inmod_aspdotnet: Forbidden, 'AspNet Virtual'is not enabled for: .../WebResource.axd
error in apache log andWebForm_PostBackOptions is undefined
in DotNetNuke pages. - In Host » Host Settings » Friendly Url Settings turn off "Use Friendly Urls?"
If you omit this step apache will replace all ~ in DotNetNuke friendly URL with "Home". Probably i'll resolve this later with Apache Module mod_rewrite.
No comments:
Post a Comment