Zend FR

Consultez la FAQ sur le ZF avant de poster une question

Vous n'êtes pas identifié.

#1 10-04-2014 17:14:33

FrancoisR
Nouveau membre
Date d'inscription: 10-04-2014
Messages: 1

403 Forbidden pour les controllers et les actions

Bonjour à tous,

Je travaille sur un projet qui doit être réalisé sur Zend et je rencontre des soucis pour visualier mes controllers ainsi que les actions. Je travaille sur un poste serveur sous Linux Mint et apache 2.2 et je dévellope sur un autre PC sur Linux Mint également par l'intermédiaire de NFS.

Voici le 000-default:

Code:

NameVirtualHost *
<VirtualHost *>
    ServerAdmin webmaster@localhost
    
    DocumentRoot /home/*/public_html
    <Directory />
        Options FollowSymLinks
        AllowOverride All
        
    </Directory>
    <Directory /var/www/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        allow from all
    </Directory>

    <Directory "/home/*/public_html">
        AllowOverride All
        Options Indexes FollowSymLinks MultiViews 
        Order allow,deny
        Allow from all
    </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>

    #Ajouter
    #{
    #<Directory "/home/*/public_html">
    #    AllowOverride None
    #    Options Indexes FollowSymLinks MultiViews ExecCGI 
    #    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>

</VirtualHost>

le .htaccess

Code:

SetEnv APPLICATION_ENV development
RewriteEngine On
# The following rule tells Apache that if the requested filename
# exists, simply serve it.
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
# The following rewrites all other queries to index.php. The 
# condition ensures that if you are using Apache aliases to do
# mass virtual hosting, the base path will be prepended to 
# allow proper resolution of the index.php file; it will work
# in non-aliased environments as well, providing a safe, one-size 
# fits all solution.
RewriteCond %{REQUEST_URI}::$1 ^(/.+)(.+)::$
RewriteRule ^(.*)$ - [E=BASE:%1]
RewriteRule ^(.*)$ %{ENV:BASE}index.php [NC,L]

Le mode rewrite d'apache est bien activé, la page d'accueil zend s'affiche correctement.
Merci de votre aide.

Hors ligne

 

Pied de page des forums

Propulsé par PunBB
© Copyright 2002–2005 Rickard Andersson
Traduction par punbb.fr

Graphisme réalisé par l'agence Rodolphe Eveilleau
Développement par Kitpages