Webserver: Difference between revisions

Jump to navigation Jump to search
mNo edit summary
Tag: 2017 source edit
Tag: 2017 source edit
 
(3 intermediate revisions by 2 users not shown)
Line 4: Line 4:




=Example of setup of a virtual host file for Apache=
With a root access, create the configuration file '''/etc/apache2/sites-available/dolibarr.conf'''
Insert the following lines :


=Example of setup of a virtual host file for Apache=
<syntaxhighlight lang="console" line="1" start="1">
<VirtualHost *:80>
    LogLevel info
    ServerName dolibarr.local
    ServerAdmin admname@mail.com
    DocumentRoot /var/www/dolibarr
    ErrorLog ${APACHE_LOG_DIR}/error.dolibarr.log
    CustomLog ${APACHE_LOG_DIR}/access.dolibarr.log combined
</VirtualHost>
</syntaxhighlight>
 
ServerName is the URL base. You will use it in your web browser to access to Dolibarr. ServerAdmin should not use a real mail address.
 
Activate the configuration :
 
'''a2ensite dolibarr.conf'''


TODO...
Restart the apache server :


'''systemctl reload apache2'''


=Example of setup of a virtual host file for Nginx=
=Example of setup of a virtual host file for Nginx=


Voici un fichier de configuration Nginx qui fonctionne en HTTPS pour Debian 11, PHP7.4, Nginx 1.18 et Dolibarr 14 :
Here is a configuration file for Nginx working in HTTPS on Debian 11, PHP7.4, Nginx 1.18 et Dolibarr 14 :


<blockquote>server {
<blockquote>server {
4

edits

Navigation menu