FAQ

Page Discussion History

Pyrocms

Revision as of 14:38, 21 January 2011 by Swilla (Talk)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

pyrocms

Edit /installer/config/config.php:

$config['index_page'] = "";
$config['uri_protocol'] = "REQUEST_URI";

Edit /system/pyrocms/config/config.php

$config['index_page'] = "";
$config['uri_protocol'] = "REQUEST_URI";
server 
 {
     listen *:80;
     server_name yourdomain.com www.yourdomain.com;
     index index.php;
     root  /path/to/your_html;
     location /installer/
     {
             if (-f $request_filename) {
                     expires max;
                     break;
             }
             if (!-e $request_filename) {
                     rewrite ^/installer/(.*)$ /installer/index.php/$1 last;
             }
     }
     location /installer/index.php
     {
             fastcgi_split_path_info ^(.+\.php)(.*)$;
             include /usr/local/nginx/conf/fastcgi_params;
             fastcgi_index  index.php;
             fastcgi_param  SCRIPT_FILENAME  /path/to/your_html/installer/index.php;
             fastcgi_param  REQUEST_URI      $request_uri;
             fastcgi_param  QUERY_STRING     $query_string;
             fastcgi_param  REQUEST_METHOD   $request_method;
             fastcgi_param  CONTENT_TYPE     $content_type;
             fastcgi_param  CONTENT_LENGTH   $content_length;
             fastcgi_pass   127.0.0.1:9000;
     }
     location /
     {
             if ($request_filename !~ (js|css|images|img|robots\.txt|index\.php.*) ) {
                     rewrite ^/(.*)$ /index.php/$1 last;
             }
     }
     location ~ /index.php/
     {
             root  /path/to/your_html;
             fastcgi_split_path_info ^(.+\.php)(.*)$;
             include /usr/local/nginx/conf/fastcgi_params;
             fastcgi_index  index.php;
             fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
             fastcgi_param  REQUEST_URI      $request_uri;
             fastcgi_param  QUERY_STRING     $query_string;
             fastcgi_param  REQUEST_METHOD   $request_method;
             fastcgi_param  CONTENT_TYPE     $content_type;
             fastcgi_param  CONTENT_LENGTH   $content_length;
             fastcgi_pass   127.0.0.1:9000;
     }
     error_page   500 502 503 504  /50x.html;
     location = /50x.html {
           root   /usr/local/nginx/html;
     }
 }