Forum

Ask, reply and learn. Join the community of Akaunting.

New Discussion

Acesso HTTPS

Marcos Souza   ( User )

Commented 4 years ago

Prezados,


 


Instalei em meu servidor um Certificado gratuito para dar mais segurança ao acesso dos meus sistemas. Estou utilizando a certificação da https://letsencrypt.org/. e está funcionando perfeitamente para meus sistemas, exceto o akaunting. O que preciso fazer? Deixe meu arquivo conf da segunite forma.


Alias /akaunting /var/www/html/akaunting


 


<Directory /var/www/html/akaunting>


   Options Indexes FollowSymLinks MultiViews


   AllowOverride All


 


    <IfModule mod_authz_core.c>


        Require all granted


    </IfModule>


    <IfModule !mod_authz_core.c>


#        Order deny,allow


        Allow from all


    </IfModule>


</Directory>


 


<Directory /var/www/html/akaunting/install>


 


    # Install is only allowed via local access (from the GLPI server).


    # Add your IP address if you need it for remote installation,


    # but remember to remove it after installation for security.


 


    <IfModule mod_authz_core.c>


        # Apache 2.4


#        Require local


        # Require ip ##.##.##.##


    </IfModule>


    <IfModule !mod_authz_core.c>


        # Apache 2.2


#        Order Deny,Allow


        Allow from All


        Allow from 127.0.0.1


        Allow from ::1


    </IfModule>


 


    ErrorDocument 403 "<p><b>Restricted area.</b><br />Only local access allowed.<br />Check your configuration or contact your administrator.</p>"


 


    <IfModule mod_php5.c>


        # migration could be very long


        php_value max_execution_time 0


        php_value memory_limit -1


    </IfModule>


</Directory>


 


 


# some people prefer a simple URL like http://site.example.com


 


<VirtualHost *:443>


 DocumentRoot /var/www/html/akaunting/


 ServerName gestao.servicedeskti.com.br


 Redirect / https://gestao.servicedeskti.com.br


</VirtualHost>


 


<IfModule mod_ssl.c>


 


<VirtualHost *:443>


 DocumentRoot /var/www/html/akaunting/


 ServerName gestao.servicedeskti.com.br


 Redirect / https://gestao.servicedeskti.com.br


 SSLCertificateFile /etc/letsencrypt/live/servicedeskti.com.br/cert.pem


 SSLCertificateKeyFile /etc/letsencrypt/live/servicedeskti.com.br/privkey.pem


 Include /etc/letsencrypt/options-ssl-apache.conf


 SSLCertificateChainFile /etc/letsencrypt/live/servicedeskti.com.br/chain.pem


</VirtualHost>


</IfModule>


 


 


 

Christopher Silva   ( User )

Commented 4 years ago

Oi Marcos, tem uma thread do mesmo tópico em Inglês.
https://akaunting.com/forum/discussion/installation-update/force-https

Você chegou a testar esta solução? http://stackoverflow.com/a/28403907/610880

Abs

Please login or register to leave a response.

Showing 1 to 2 of 2 discussions