4
edits
(all in the same language, English) Tag: 2017 source edit |
Tag: 2017 source edit |
||
| 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> | |||
Activate the configuration : | |||
a2ensite dolibarr.conf | |||
Restart the apache server : | |||
systemctl reload apache2 | |||
edits