1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
| <VirtualHost *:80>
ServerAdmin mon.adresse@free.fr
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order Deny,Allow
Deny from all
Allow from 127.0.0.1 # local
Allow from 192.168.0.0/24 # reseau
</Directory>
##ZONE PUBLIQUE
Alias /sites1 "/path/vers/mon/site1"
<Directory "/path/vers/mon/site1">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
Alias /sites2 "/path/vers/mon/site2"
<Directory "/path/vers/mon/site2">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
## ZONE PRIVEE
Alias /prive "/path/vers/mon/site_prive"
<Directory "/path/vers/mon/site_prive">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order deny,allow
Deny from all
Allow from 127.0.0.1 # Local
Allow from 192.168.0.0/24 # Réseau
</Directory>
Alias /dev "/path/vers/mon/site_dev"
<Directory "/path/vers/mon/site_dev">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order deny,allow
Deny from all
Allow from 127.0.0.1 # Local
Allow from 192.168.0.0/24 # Réseau
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
</VirtualHost> |