URL rewriting and CakePHP
URL rewriting and CakePHP
Hi everyone.
I'm using VestaCP since a month ago or so.
Everything is working fine by far, but I have an issue with URL rewriting.
My server has Centos 6.5 x64, and I'm using the last version of VestaCP. I modified /etc/httpd/conf/httpd.conf to allow reand when I use phpinfo() I can see that mod_rewrite module is being used. However, configuring CakePHP I have this error: "URL rewriting is not properly configured on your server. 1) Help me configure it 2) I don't / can't use URL rewriting". I followed the instructions in those links but the issue persists.
Do you think that is something I missed? I can read everywhere that for installing mod_rewrite I should do "sudo a2enmod rewrite", but I don't want to install anything to avoid conflicts with VestaCP...
If that is not a problem maybe is something I need to configure in nginx?
Thanks.
I'm using VestaCP since a month ago or so.
Everything is working fine by far, but I have an issue with URL rewriting.
My server has Centos 6.5 x64, and I'm using the last version of VestaCP. I modified /etc/httpd/conf/httpd.conf to allow reand when I use phpinfo() I can see that mod_rewrite module is being used. However, configuring CakePHP I have this error: "URL rewriting is not properly configured on your server. 1) Help me configure it 2) I don't / can't use URL rewriting". I followed the instructions in those links but the issue persists.
Do you think that is something I missed? I can read everywhere that for installing mod_rewrite I should do "sudo a2enmod rewrite", but I don't want to install anything to avoid conflicts with VestaCP...
If that is not a problem maybe is something I need to configure in nginx?
Thanks.
Re: URL rewriting and CakePHP
Hi,
I think that problem in your php script
don't change this file /etc/httpd/conf/httpd.conf
all modification you can doing in virtualhost of your web domain
/home/user/conf/web/httpd.conf
I think that problem in your php script
don't change this file /etc/httpd/conf/httpd.conf
all modification you can doing in virtualhost of your web domain
/home/user/conf/web/httpd.conf
Re: URL rewriting and CakePHP
I had experience with cakePHP before that had a hard time working with nginx + apache configuration
try turning off nginx and just use apache as your stand alone web server..
try turning off nginx and just use apache as your stand alone web server..