FAQ

Page Discussion History

Pyrocms

Revision as of 15:18, 5 January 2012 by Jondavidjohn (Talk)

pyrocms

Edit /installer/config/config.php:

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

Edit /system/cms/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 /path/to/your/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_connect_timeout 60;
             fastcgi_send_timeout 180;
             fastcgi_read_timeout 180;
             fastcgi_buffer_size 128k;
             fastcgi_buffers 4 256k;
             fastcgi_busy_buffers_size 256k;
             fastcgi_temp_file_write_size 256k;
             fastcgi_intercept_errors on;
 
             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 /path/to/your/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_connect_timeout 60;
             fastcgi_send_timeout 180;
             fastcgi_read_timeout 180;
             fastcgi_buffer_size 128k;
             fastcgi_buffers 4 256k;
             fastcgi_busy_buffers_size 256k;
             fastcgi_temp_file_write_size 256k;
             fastcgi_intercept_errors on;
 
             fastcgi_pass   127.0.0.1:9000;
     }
     error_page   500 502 503 504  /50x.html;
     location = /50x.html {
           root  /path/to/your/nginx/html;
     }
 }