News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Chris Hartjes' Blog:
CakePHP + Nginx Configuration Update
January 26, 2009 @ 10:21:57

In this new post from Chris Hartjes today he continues his look at combining a CakePHP application with the Nginx web server. This time the focus is on the configuration of the web server side of things to make the CakePHP routing work.

I'm in the process of creating the website for my upcoming book *and* had recently switched back from using Apache to using Nginx again, so I thought it might be time to roll up my sleeves and figure out how to make it work in a subdirectory. After much gnashing of teeth and pissing and moaning, I figured it out.

A simple configuration example is included as a part of the post showing how to correctly configure the rewrite routes to catch everything and send it back to the index.php file. His is a two-part process: it tries to match anything with "/foo" in it then, if it wasn't caught there, it sends it off to be rerouted to the front controller.

0 comments voice your opinion now!
cakephp framework nginx webserver rewrite rule configure


blog comments powered by Disqus

Similar Posts

Henrik Bjørnskov's Blog: Symfony2: How to do a Wizard (multistep form) with Doctrine2

Symfony Blog: symfony 1.1 branch

Jim Plush\'s Blog: New AJAX/PHP framework - My-BIC is LIGHT and TASTY!

Felix Geisendörfer's Blog: Learning from the CakePHP Source Code (Part 1)

DevShed: 7 PHP Frameworks Tested For Speed - Benchmarking PHP Frameworks


Community Events

Don't see your event here?
Let us know!


library example opinion series xdebug community release performance symfony2 voicesoftheelephpant extension laravel introduction podcast version conference php7 interview api framework

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework