Page 1 of 1

ASP.NET Core

Posted: Tue Oct 17, 2017 9:40 am
by kironet
Hey,

are you planning to implement support for ASP.NET Core 2.0 websites?

Thanks

Re: ASP.NET Core

Posted: Sat Sep 29, 2018 12:10 am
by kironet
My question is still UP :)

Re: ASP.NET Core

Posted: Sat Sep 29, 2018 2:23 am
by ScIT
no, there is no plan to support asp.net.

Re: ASP.NET Core

Posted: Mon Oct 01, 2018 10:48 am
by demian
for run asp.net applications on linux there is a project mono. in apache it is necessary to supply the necessary mod_mono module, and also create a template

template example(did not check because there are no sites on the servers):

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/
    #SuexecUserGroup %user% %group%
    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
    MonoServerPath %domain_idn% "/usr/bin/mod-mono-server2"  
    MonoSetEnv %domain_idn% MONO_IOMAP=all
    MonoApplications %domain_idn% "/:%docroot%"
    <Directory %docroot%>
        AllowOverride All
        Options +Includes -Indexes +ExecCGI
        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
        php_admin_value upload_tmp_dir %home%/%user%/tmp
        php_admin_value session.save_path %home%/%user%/tmp
    </Directory>
    <Location "/">
        Allow from all
        Order allow,deny
        MonoSetServerAlias %domain_idn%
        SetHandler mono
        SetOutputFilter DEFLATE
        SetEnvIfNoCase Request_URI "\.(?:gif|jpe?g|png)$" no-gzip dont-vary
    </Location>

    <Directory %home%/%user%/web/%domain%/stats>
        AllowOverride All
    </Directory>

    <IfModule mod_ruid2.c>
        RMode config
        RUidGid %user% %group%
        RGroups apache
    </IfModule>
    <IfModule itk.c>
        AssignUserID %user% %group%
    </IfModule>
    <IfModule mod_deflate.c>
        AddOutputFilterByType DEFLATE text/html text/plain text/xml text/javascript
    </IfModule>

    IncludeOptional %home%/%user%/conf/web/%web_system%.%domain_idn%.conf*

</VirtualHost>
to test the work you can use any template, adding an additional file /home/user/conf/httpd.you_site.conf, lines:

Code: Select all

    MonoServerPath your_application "/usr/bin/mod-mono-server2"  
    MonoSetEnv your_application MONO_IOMAP=all
    MonoApplications your_application "/:/home/user/web/you_site_name/public_html"

    <Location "/">
        Allow from all
        Order allow,deny
        MonoSetServerAlias your_application
        SetHandler mono
        SetOutputFilter DEFLATE
        SetEnvIfNoCase Request_URI "\.(?:gif|jpe?g|png)$" no-gzip dont-vary
    </Location>


    <IfModule mod_deflate.c>
        AddOutputFilterByType DEFLATE text/html text/plain text/xml text/javascript
    </IfModule>
remember your_application = you_site_name