ASP .NET di Apache dengan Mod Mono

Pastikan terhubung dengan repo...
apache dan mysql/ mariadb sudah terinstall
Memakai debain 6 atao 7
Langsung aja
untuk debian 6 hanya bisa  dotnet 2
#apt-get install libapache2-mod-mono mono-apache-server2
untuk debian 7 bisa  dotnet 2 dan 4
#apt-get install libapache2-mod-mono mono-apache-server4

Setelah selesai tambahin dikit vhost apache nya
<VirtualHost *:80>
    ServerAdmin webmaster@localhost
        ServerName dotnet-devel
        MonoAutoApplication disabled
        AddHandler mono .aspx ascx .asax .ashx .config .cs .asmx .axd
        MonoApplications "/:/var/www/"
        #untuk di debian 6 mod-mono-server2
        MonoServerPath default /usr/bin/mod-mono-server2
        #untuk di debian 6 dan 7 mod-mono-server2 atao mod-mono-server4
        #MonoServerPath default /usr/bin/mod-mono-server4

        DocumentRoot /var/www/
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/myapp>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
                SetHandler mono
                DirectoryIndex index.aspx index.html
        </Directory>

        ErrorLog /var/log/apache2/error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog /var/log/apache2/access.log combined
</VirtualHost>

<Location />
        SetHandler mono
</Location>

<Directory /var/www/>
        Options Indexes FollowSymLinks MultiViews
        Order allow,deny
        allow from all
</Directory>

trus restart apache
/etc/init.d/apache2 restart
hasil nya




Komentar

Postingan populer dari blog ini

Squid Proxy ssl bump untuk transparent HTTPS #2

Cloudflared argo tunnel zero trust service on Mikrotik

Optimasi Anti Spam Zimbra 8.7 / 8.8