diff -r 448b0d5bdee1 -r 53c01c16b1cb lighttpd/gpeasy --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lighttpd/gpeasy Mon May 30 16:21:31 2011 +0200 @@ -0,0 +1,37 @@ +Rewrite rules for gpeasy: + +url.rewrite-if-not-file = ( + "^(.+)$" => "/index.php?$1" +) + +Based on following article: configuring w/ nginx: + +http://www.computercorrect.com/2011/web-applications/configuring-nginx-for-gpeasy-cms/ + +First, you should edit the index.php file in gpEasy’s root directory. Uncomment +the line that mentions “gp_indexphp”, so that your file looks likes this: + +1 //define('gpdebug',true); +2 define('gp_indexphp',false); +3 //define('gptesting',true); +4 require_once('./include/main.php'); + +This tells gpEasy to use permalinks without “index.php” appearing in the URL. + +Next, you need to edit the appropriate nginx site configuration file so that is +has a conditional rewrite rule like the one below: + +1 location /gpeasy/ { +2 +3 index index.php index.htm index.html; +4 +5 if (!-e $request_filename){ +6 rewrite ^(.+)$ /gpeasy/index.php?$1 last; +7 } +8 +9 } + +(Note that if your gpEasy installation is in your site’s root directory, then +you’ll replace “/gpeasy/” with “/” throughout the block above.) + +Lastly, restart nginx and proceed with the installation of gpEasy.