Changes

Line 6: Line 6:  
=Example of setup of a virtual host file for Apache=
 
=Example of setup of a virtual host file for Apache=
   −
With a root access, create the configuration file /etc/apache2/sites-available/dolibarr.conf
+
With a root access, create the configuration file '''/etc/apache2/sites-available/dolibarr.conf'''
    
Insert the following lines :
 
Insert the following lines :
    
<syntaxhighlight lang="console" line="1" start="1">
 
<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. <syntaxhighlight lang="console" line="1" start="1">
 
<VirtualHost *:80>
 
<VirtualHost *:80>
 
     LogLevel info
 
     LogLevel info
Line 23: Line 34:  
Activate the configuration :
 
Activate the configuration :
   −
a2ensite dolibarr.conf
+
'''a2ensite dolibarr.conf'''
    
Restart the apache server :
 
Restart the apache server :
   −
systemctl reload apache2
+
'''systemctl reload apache2'''
     
4

edits