Précédent   Forum des professionnels en informatique > Webmasters - Développement Web > Serveurs (Apache, IIS,...) > Apache
Apache Forum d'entraide Apache. Avant de poster : Cours Apache, FAQ Apache
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 26/11/2011, 19h07   #1
Invité régulier
 
Étudiant
Inscription : avril 2009
Messages : 21
Détails du profil
Informations professionnelles :
Activité : Étudiant

Informations forums :
Inscription : avril 2009
Messages : 21
Points : 6
Points : 6
Par défaut Apache: You don't have permission to access

Bonjour,

je suis novice dans le développement avec symfony. J'utilise wamp et je suis entrain de faire le tuto Jobeet Jour 1 (http://www.symfony-project.org/jobee...Doctrine/fr/01) et j'ai un problème avec les virtualhosts ...

Voici mon fichier httpd-vhosts.conf

Code :
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
NameVirtualHost *:80

<VirtualHost *:80>
      ServerName jobeet
      DocumentRoot "C:\development\sfprojects\jobeet\web"
      DirectoryIndex index.php
	  
      <Directory "C:\development\sfprojects\jobeet\web">
      AllowOverride All
      Allow from All
      </Directory>
	  
      Alias /sf "C:\development\sfprojects\jobeet\lib\vendor\symfony\data\web\sf"
 
      <Directory "C:\development\sfprojects\jobeet\lib\vendor\symfony\data\web\sf">
      AllowOverride All
      Allow from All
      </Directory>
</VirtualHost>

# Pour conserver son localhost
<VirtualHost *:80>
    DocumentRoot "C:\wamp\www"
    ServerName localhost
    ServerAlias localhost
</VirtualHost>

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
<VirtualHost *:80>
    ServerAdmin webmaster@dummy-host.localhost
    DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/docs/dummy-host.localhost"
    ServerName dummy-host.localhost
    ServerAlias www.dummy-host.localhost
    ErrorLog "logs/dummy-host.localhost-error.log"
    CustomLog "logs/dummy-host.localhost-access.log" common
</VirtualHost>

<VirtualHost *:80>
    ServerAdmin webmaster@dummy-host2.localhost
    DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/docs/dummy-host2.localhost"
    ServerName dummy-host2.localhost
    ErrorLog "logs/dummy-host2.localhost-error.log"
    CustomLog "logs/dummy-host2.localhost-access.log" common
</VirtualHost>

Mon fichier httpd.conf

Code :
1
2
3
# Virtual hosts
#NameVirtualHost *:80
Include conf/extra/httpd-vhosts.conf

et dans hosts :

Code :
127.0.0.1       localhost jobeet

Et après je peux accéder sans soucis à http://localhost/ mais quand je veux accéder à http://jobeet/ j'ai l message suivant :
Citation:
Forbidden

You don't have permission to access / on this server.
Si quelqu'un put m'aider MERCI beaucoup !!!!!
nynnie7 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 01/12/2011, 17h35   #2
Rédacteur/Modérateur
 
Avatar de Siguillaume
 
Homme Guillaume SIGUI
Chef de projet en SSII
Inscription : août 2007
Messages : 2 388
Détails du profil
Informations personnelles :
Nom : Homme Guillaume SIGUI
Localisation : Côte d'Ivoire

Informations professionnelles :
Activité : Chef de projet en SSII
Secteur : High Tech - Produits et services télécom et Internet

Informations forums :
Inscription : août 2007
Messages : 2 388
Points : 3 190
Points : 3 190
Envoyer un message via Yahoo à Siguillaume Envoyer un message via Skype™ à Siguillaume
Bonjour, quelques pistes:
Qu'obtiens-tu en ajoutant
Citation:
ServerAlias jobeet
dans la configuration de ton virtualhost?

Voir aussi les droits sur ton répertoire.
__________________
Un gros problème est la somme de plusieurs petits problèmes.
Resolvez chacun des petits problèmes: vous aurez resolu le gros problème!
Mes tutos || Mon blog || Développeurs ivoiriens
Siguillaume est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 14h57.


 
 
 
 
Partenaires

Hébergement Web