I think I should rewrite the url, my nginx configuration like the below:
> server { listen 80; # IPv4 server_name localhost; ## Parameterization
> using hostname of access and log filenames. access_log
> logs/localhost_access.log; error_log logs/localhost_error.log; ## Root
> and index files. root C:/workspace/cakephp_demo/app/webroot/; index
> index.php; ## If no favicon exists return a 204 (no content error).location =
> /favicon.ico { try_files
> $uri =204; log_not_found off; access_log off; } ## Don't log robots.txt
> requests. location = /robots.txt { allow all; log_not_found off;
> access_log off; } location / { try_files $uri $uri/ /index.php?$uri&$args;
> } location ~ \.php$ { try_files $uri =404; include fastcgi_params;
> fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param
> SCRIPT_FILENAME $document_root$fastcgi_script_name; } } # end http server
>
在 2013年4月22日星期一UTC+8下午9时13分21秒,zhuyuan Xiang写道:
>
> I use the plugin [git:*github.com/josegonzalez/upload.git *] to upload a
> image file into the webroot/file directory, but now I can't get the image
> file to display it.
why I can directly request the files in css or img directory?
> 'who can help me that?
>
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.