PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > alt.apache.configuration > mod_rewrite on AppServ
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
alt.apache.configuration Apache web server configuration issues.

mod_rewrite on AppServ

Réponse
 
LinkBack Outils de la discussion
Vieux 19/01/2008, 06h39   #1
Raistlin Majere
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut mod_rewrite on AppServ

I am using:

AppServ 2.5.9

(Apache 2.2.4
PHP 5.2.3
MySQL 5.0.45
phpMyAdmin-2.10.2)

CakePHP 1.1.19.6305

I need to configure Apache to use pretty URLs like:

www.example.com/controllername/actionname/param

The CakePHP manual says:

"Make sure that an .htaccess override is allowed: in your httpd.conf,
you should have a section that defines a section for each Directory on
your server. Make sure the AllowOverride is set to All for the correct
Directory."

Where is that section? How do I set AllowOverride to All?

"Make sure you are loading up mod_rewrite correctly! You should see
something like LoadModule rewrite_module libexec/httpd/mod_rewrite.so
and AddModule mod_rewrite.c in your httpd.conf."

I searched for "libexec/httpd/mod_rewrite.so" and it is not in
httpd.conf.

I searched for "AddModule mod_rewrite.c" and it is notin httpd.conf.

What should I do?
  Réponse avec citation
Vieux 19/01/2008, 07h39   #2
Davide Bianchi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: mod_rewrite on AppServ

On 2008-01-19, Raistlin Majere <pedbessa@gmail.com> wrote:
> "Make sure that an .htaccess override is allowed: in your httpd.conf,
> you should have a section that defines a section for each Directory on
> your server. Make sure the AllowOverride is set to All for the correct
> Directory."
>
> Where is that section? How do I set AllowOverride to All?


Look in your config file for the <Directory...> block, you should
have at least one with the 'document root' defined. That's your
block. See also the Apache's documentation about "my .htaccess is
not used".

> I searched for "libexec/httpd/mod_rewrite.so" and it is not in
> httpd.conf.


The documentation talks about a generic installation, yours could be
in a different directory, check if mod_rewrite is referenced, otherwise
you'll have to add it to your configuration (if it's installed).

> What should I do?


Read the documentation of Apache about mod_rewrite.

Davide

--
These behaviors are unwelcomed by "people" who don't think and who let
themselves be driven more by political "reality" than by objective
"reality".
-- Mike A on alt.sysadmin.recovery about how Techies behave in meetings
  Réponse avec citation
Vieux 28/01/2008, 21h09   #3
Raistlin Majere
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: mod_rewrite on AppServ

On Jan 19, 3:39 am, Raistlin Majere <pedbe...@gmail.com> wrote:
> I am using:
>
> AppServ 2.5.9
>
> (Apache 2.2.4
> PHP 5.2.3
> MySQL 5.0.45
> phpMyAdmin-2.10.2)
>
> CakePHP 1.1.19.6305
>
> I need to configure Apache to use pretty URLs like:
>
> www.example.com/controllername/actionname/param
>
> The CakePHP manual says:
>
> "Make sure that an .htaccess override is allowed: in your httpd.conf,
> you should have a section that defines a section for each Directory on
> your server. Make sure the AllowOverride is set to All for the correct
> Directory."
>
> Where is that section? How do I set AllowOverride to All?
>
> "Make sure you are loading upmod_rewritecorrectly! You should see
> something like LoadModule rewrite_module libexec/httpd/mod_rewrite.so
> and AddModulemod_rewrite.c in your httpd.conf."
>
> I searched for "libexec/httpd/mod_rewrite.so" and it is not in
> httpd.conf.
>
> I searched for "AddModulemod_rewrite.c" and it is notin httpd.conf.
>
> What should I do?


Sharing the solution...

It was to uncomment "LoadModule rewrite_module modules/mod_rewrite.so"
and replace "Allow Override None" with "Allow Override All".
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 08h11.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,11423 seconds with 11 queries