Tuesday, February 10, 2015

Konfigurasi XAMPP untuk mengakses ASP.NET

Agar bahasa pemrograman ASP dapat dikenali oleh XAMPP, ada beberapa hal yang harus dikonfigurasi. Berikut adalah langkah-langkah untuk mengkonfigurasi modul ASP.NET :

1. Install XAMPP terlebih dahulu


2. Install modul ASP/ASP.NET (mod_aspdotnet) 
Selanjutnya install mod_aspdotnet yang digunakan untuk mengenali bahasa pemrograman ASP
Pilih path/folder sesuai dengan letak XAMPP tersebut diinstal.


3. Konfigurasi xampp-httpd.conf
Karena terbiasa menyimpan koding PHP di htdocs, jadi script ASP saya letakkan juga di folder D:/xampp/htdocs/asp. 
Tambahkan script dibawah ini ke dalam D:/xampp/apache/conf/extra/httpd-xampp.conf

# ASP.NET di XAMPP
LoadModule aspdotnet_module "D:/xampp/apache/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 /asp "D:/xampp/htdocs/asp"
Alias /asp "D:/xampp/htdocs/asp"
<Directory "D:/xampp/htdocs/asp">
Options FollowSymlinks ExecCGI
Order allow,deny
Allow from all
DirectoryIndex index.htm index.aspx index.asp
</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 di XAMPP

4. Silahkan test script ASP seperti contoh


NB:
Saya install XAMPP dan modul aspdotnet di drive D.