Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # nginx.conf for running the Bricks PHP web framework
- # https://github.com/Circlepuller/Bricks
- #user www www; # Uncomment if using a UNIX-like OS
- worker_processes 5;
- error_log logs/error.log;
- pid logs/nginx.pid;
- worker_rlimit_nofile 8192;
- events {
- worker_connections 4096;
- }
- http {
- include mime.types;
- include fastcgi.conf;
- index index.html index.htm index.php;
- default_type application/octet-stream;
- log_format main '$remote_addr - $remote_user [$time_local] "$request" '
- '$status $body_bytes_sent "$http_referer" '
- '"$http_user_agent" "$http_x_forwarded_for"';
- access_log logs/access.log main;
- sendfile on;
- tcp_nopush on;
- server_names_hash_bucket_size 128;
- server {
- listen 80 default;
- server_name _;
- root html;
- # Hax in the simplest form
- location ~ ^/(authors|robots)\.txt$ {}
- location ~ ^/favicon\.ico$ {}
- location /assets {}
- location / {
- index index.php;
- try_files $uri @rewrite;
- }
- location @rewrite {
- rewrite ^(.*)$ /index.php$1 last;
- }
- location ~ ^/(index)\.php(/|$) {
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
- include fastcgi_params;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_param PATH_INFO $fastcgi_path_info;
- fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
- fastcgi_param QUERY_STRING $query_string;
- fastcgi_param REQUEST_METHOD $request_method;
- fastcgi_param CONTENT_TYPE $content_type;
- fastcgi_param CONTENT_LENGTH $content_length;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment