Home > ASPX, PROGRAMMAZIONE > ASP.NET su Apache in 5 passi

ASP.NET su Apache in 5 passi

ASP.NET su server web Apache istallato su Windows: la soluzione è Mod AspDotNet.

Passo1: Istallate il framework 2.0.54 di Apache disponibile QUI

Passo2: Installate il modulo AspDotNet_Mod disponibile QUI

Alla fine dell’installazione basta stoppare il servizio httpd, inserire alla fine del file di configurazione situato in C:\Program Files\Apache Group\Apache2\conf\httpd.conf il seguente codice:

#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 /EsempioASP “c:/EsempioASP”

#/EsempioASP is the alias name for asp.net to execute

#”c:/EsempioASP” is the actual execution of files/folders  in that location

# Map all requests for /asp to the application files

Alias /EsempioASP “c:/EsempioASP”

#maps /EsempioASP request to “c:/EsempioASP”

#now to get to the /SampleASP type http://localhost/EsempioASP

#It’ll redirect http://localhost/EsempioASP to “c:/EsempioASP”

# Allow asp.net scripts to be executed in the /EsempioASP example

<Directory “c:/EsempioASP”>

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

Passo4: Create la cartella c:\EsempioASP ed inserite la vostra applicazione ASP.NET.

Passo5: Riavviate il servizio httpd.

Aprite il vostro browser e digitate l’indirizzo http://localhost/EsempioASP e tutto funzionerà a meraviglia

Articoli correlati

web2sp ASPX, PROGRAMMAZIONE

  1. Nessun commento ancora...
  1. Nessun trackback ancora...