Config apache

apache est un serveur web

l’ensemble de la configuration d’apache se trouve là:

/etc/apache2

Un premier fichier de config se trouve:

/etc/apache2/apache2.conf

Les configurations modifiées:


ServerName fredptigars.homelinux.org
ServerTokens Prod

Les host virtuel se trouve là:

/etc/apache2/sites-enabled/

La configurations des host virtuel

Le fichier de config:

/etc/apache2/sites-available/default


DocumentRoot /home/web/


Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all


Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order Deny,Allow
Deny from all
Allow from localhost
Allow from 192.168.0.0/24
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
# RedirectMatch ^/$ /apache2-default/
ErrorDocument 403 "http://fredptigars.homelinux.org

Pour activer des modules il faut faire ajouter un lien dans le repertoire:
/etc/apache2/mods-enabled a partir du repertoire : /etc/apache2/mods-available
Les modules actif:

– actions.conf
– actions.load
– alias.conf
– alias.load
– auth_basic.load
– authn_file.load
– authz_default.load
– authz_groupfile.load
– authz_host.load
– authz_user.load
– autoindex.conf
– autoindex.load
– cgi.load
– dir.conf
– dir.load
– env.load
– mime.conf
– mime.load
– negotiation.conf
– negotiation.load
– php5.conf
– php5.load
– rewrite.load
– setenvif.conf
– setenvif.load
– status.conf
– status.load