server { listen 80; server_name mydomain.com; access_log /home/mydomain.com/log/access.log; error_log /home/mydomain.com/log/error.log; root /home/mydomain.com/public/; index index.php index.html; charset utf-8; # Gzip gzip on; gzip_min_length 1000; gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript; gzip_disable "MSIE [1-6]\."; location ~ /\. { return 404; } location / { if (-f $request_filename) { break; } if (-d $request_filename) { break; } rewrite ^/(.+)$ /index.php?kohana_uri=$1 last; } location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /home/mydomain.com/public/$fastcgi_script_name; include /usr/local/nginx/conf/fastcgi_params; } location ~* ^/(modules|application|system) { return 403; } }
probably url was too long.. no? shortened here: http://bit.ly/hEFAinFoo Bar wrote on Sunday 1st of May 2011:404
Andrew Smith wrote on Saturday 20th of August 2011:Here is my nginx config http://scrp.at/age I haven't had any trouble with it to date. The only thing I am yet to figure is how to setEnv in a nginx config. Note: The client_max_body_size and client_body_buffer_size are optional, I needed them in order to upload large video files in a specific project.
Jaroslav Petrusevic wrote on Saturday 20th of August 2011:Because I can't find any working example to work with uris which contain the ' : ' in them.
All paths are working, every part of the site is working nicely but not the urls with ' : ' inside the uri string
<?php return array( 'blog/:test/:womble' => 'welcome/entry', ); ?>
<?php class Controller_Welcome extends Controller { public function action_entry() { echo "<h1>Test = ".$this->param('test')."</h1>"; echo "<h1>Womble = ".$this->param('womble')."</h1>"; } }
Jaroslav Petrusevic wrote on Saturday 20th of August 2011:Hello everyone, can you guys share more configs for nginx + fuelphp? Because I can't find any working example to work with uris which contain the ' : ' in them.
All paths are working, every part of the site is working nicely but not the urls with ' : ' inside the uri string Thank you
It looks like you're new here. If you want to get involved, click one of these buttons!