4
edits
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 : | |||
= | <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''' | |||
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= | ||
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 { | ||
edits