|
|
|
|
||||||
| alt.apache.configuration Apache web server configuration issues. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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? |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
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". |
|
![]() |
| Outils de la discussion | |
|
|