Pages : 1
#1 Le 11/05/2007, à 09:12
- loulou75
Erreur dans la configuration d'apache
Bonjour.
Voila mon fichier /etc/apache2/apache2.conf qui comporte surement des erreurs car quand je veux redemarrer apache cela m'indique une erreur.
NameVirtualHost *
<VirtualHost *>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# 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/
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</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
ServerSignature On
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
<Directory />
Order Deny,Allow
Deny from all
Options None
AllowOverride None
</Directory>
<Directory /web>
Order Allow,Deny
Allow from all
</Directory>
<Directory /web>
Order Allow,Deny
Allow from all
Options -Indexes
Options -Includes
Options -ExecCGI
Options -FollowSymLinks
</Directory>
AccessFileName .httpdoverride
<Files ~ "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</Files>
</VirtualHost>
Pourriez vous m'indiquer ou sont elles et surtout comment y remedier?
Je suis debutant sur linux je viens d'arriver hier soir sur Ubuntu.
Merci d'avance et bonne journée.
#2 Le 11/05/2007, à 09:29
- Desintegr
Re : Erreur dans la configuration d'apache
Il serait bien de préciser l'erreur quand même.
Hoc Volo, Sic Jubeo !
Mon wiki : http://desintegr.free.fr
Hors ligne
#3 Le 11/05/2007, à 09:37
- loulou75
Re : Erreur dans la configuration d'apache
Pardon je me suis gouré dans un lien, c'est une erreur dans le fichier : /etc/apache2/sites-available/default
J'ai modifié mon code pour voir si ça marche mais rien du tout.
Regardez mon code:
NameVirtualHost *
<VirtualHost *>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# 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/
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</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
ServerSignature On
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
<Directory />
Order Deny,Allow
Deny from all
Options None
AllowOverride None
</Directory>
<Directory /web>
Order Allow,Deny
Allow from all
</Directory>
<Directory>
Options -Includes
Options -ExecCGI
Options -FollowSymLinks
</directory>
AccessFileName .httpdoverride
<Files ~ "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</Files>
</VirtualHost>
Voila l'erreur qu'il me met :
loulou75@loulou-desktop:~$ sudo /etc/init.d/apache2 reload
apache2: Syntax error on line 697 of /etc/apache2/apache2.conf: </VirtualHost> without matching <VirtualHost> section
...fail!
Je ne comprend pas...
#4 Le 11/05/2007, à 09:39
- loulou75
Re : Erreur dans la configuration d'apache
J'ai modifier le .conf j'ai fait une erreur toute bete.
Voici le nouveau message d'erreur :
Syntax error on line 57 of /etc/apache2/sites-enabled/000-default:
<Directory> directive requires additional arguments
...fail!
#5 Le 11/05/2007, à 18:02
- ecortex
Re : Erreur dans la configuration d'apache
J'ai le meme probleme que lui... Si quelqu'un avais la reponse sa serait sympa !
Hors ligne
Pages : 1