Page 1 of 1

ASP.NET

Posted: Sun Jan 26, 2014 2:08 am
by jhewit
Are there any special things I would need to consider before installing ASP.NET, as I would like to provide ASP services to our clients and cannot find any documentation where it has been done or is included with VestaCP. Thank you to anyone who replies to help.

Re: ASP.NET

Posted: Mon Feb 10, 2014 10:31 am
by skid
Integration with ASP shouldn't be hard to do.

1. Install Mono, XSP and mod_mono for the apache web server.
2. Create new template /usr/local/vesta/data/templates/web/httpd/mono.tpl

Code: Select all

<VirtualHost %ip%:%web_port%>

    ServerName %domain_idn%
    %alias_string%
    ServerAdmin %email%
    DocumentRoot %docroot%
    ScriptAlias /cgi-bin/ %home%/%user%/web/%domain%/cgi-bin/
    Alias /vstats/ %home%/%user%/web/%domain%/stats/
    Alias /error/ %home%/%user%/web/%domain%/document_errors/

    MonoAutoApplication disabled
    MonoApplications "/:/home/%user%/web/%domain%/public_html"
    MonoServerPath "/opt/mono/bin/mod-mono-server2"
    AddHandler mono .aspx .ascx .asax .ashx .config .cs .asmx .axd

    CustomLog /var/log/%web_system%/domains/%domain%.bytes bytes
    CustomLog /var/log/%web_system%/domains/%domain%.log combined
    ErrorLog /var/log/%web_system%/domains/%domain%.error.log
    <Directory %docroot%>
        AllowOverride All
        Options +Includes -Indexes +ExecCGI
    </Directory>
    <Directory %home%/%user%/web/%domain%/stats>
        AllowOverride All
    </Directory>

    Include %home%/%user%/conf/web/%web_system%.%domain%.conf*

</VirtualHost>
and /usr/local/vesta/data/templates/web/httpd/mono.stpl

Code: Select all

<VirtualHost %ip%:%web_port%>

    ServerName %domain_idn%
    %alias_string%
    ServerAdmin %email%
    DocumentRoot %docroot%
    ScriptAlias /cgi-bin/ %home%/%user%/web/%domain%/cgi-bin/
    Alias /vstats/ %home%/%user%/web/%domain%/stats/
    Alias /error/ %home%/%user%/web/%domain%/document_errors/

    MonoAutoApplication disabled
    MonoApplications "/:/home/%user%/web/%domain%/public_html"
    MonoServerPath "/opt/mono/bin/mod-mono-server2"
    AddHandler mono .aspx .ascx .asax .ashx .config .cs .asmx .axd

    CustomLog /var/log/%web_system%/domains/%domain%.bytes bytes
    CustomLog /var/log/%web_system%/domains/%domain%.log combined
    ErrorLog /var/log/%web_system%/domains/%domain%.error.log
    <Directory %docroot%>
        AllowOverride All
        Options +Includes -Indexes +ExecCGI
    </Directory>
    <Directory %home%/%user%/web/%domain%/stats>
        AllowOverride All
    </Directory>

    SSLEngine on
    SSLVerifyClient none
    SSLCertificateFile %ssl_crt%
    SSLCertificateKeyFile %ssl_key%
    %ssl_ca_str%SSLCertificateChainFile %ssl_ca%

    Include %home%/%user%/conf/web/%web_system%.%domain%.conf*

</VirtualHost>

Re: ASP.NET

Posted: Mon Nov 14, 2016 5:39 pm
by ossiozac
Hello,

got anymore upto date info?

Thanks,
Zac.

Re: ASP.NET

Posted: Mon Nov 14, 2016 7:40 pm
by skurudo
ossiozac wrote: got anymore upto date info?
Sorry, but no.
At the moment, the task is not a priority. Don't see any activity, and votes for this .
https://bugs.vestacp.com/issues/362