any one can help,thanks in advance

On Jan 20, 2:37 pm, CCC <qq263020...@gmail.com> wrote:
> hi ,now i want  to deploy my website to nginx,,use ubuntu,
> then myproject is located at /home/xxxxx/myproject/ ,
> here is my configuration,thank you very much:
> user www-data;
> worker_processes 2;
>
> error_log /var/log/nginx/error.log info;
>
> events {
>     worker_connections  1024;
>     use epoll;
>
> }
>
> http {
>     include         /etc/nginx/mime.types;
>     default_type    application/octet-stream;
>
> log_format main  '$remote_addr - $remote_user [$time_local] '
>             '"$request" $status $bytes_sent '
>             '"$http_referer" "$http_user_agent" '
>             '"$gzip_ratio"';
>
> client_header_timeout   3m;
> client_body_timeout     3m;
> send_timeout            3m;
> connection_pool_size            256;
> client_header_buffer_size       1k;
> large_client_header_buffers     4 2k;
> request_pool_size               4k;
>
> gzip on;
> gzip_min_length 1100;
> gzip_buffers    4 32k;
> gzip_types      text/plain text/html application/x-javascript text/xml
> text/css;
>
> output_buffers  4 32k;
> postpone_output 1460;
>
> sendfile        on;
> tcp_nopush      on;
> tcp_nodelay     on;
>
> keepalive_timeout       75 20;
>
> ignore_invalid_headers  on;
> index index.html;
>         server {
>                listen 80;
>                 server_name localhost;
>                 # site_media - folder in uri for static files
>                 location /site_media  {
>                         alias /home/xxxxx/myproject/media/;
>                        }
>       location ^~ /media {
>    alias /usr/lib/python2.5/site-packages/django/contrib/admin/media/;}
>
> location ~* ^.+\.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|
> exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js|mov) {
>   access_log   off; # po co mi logi obrazków :)
>   expires      30d;}
>
>                 location / {
>                         # host and port to fastcgi server
>                         fastcgi_pass 127.0.0.1:8080;
>                         fastcgi_param PATH_INFO $fastcgi_script_name;
>                         fastcgi_param REQUEST_METHOD $request_method;
>                         fastcgi_param QUERY_STRING $query_string;
>                         fastcgi_param CONTENT_TYPE $content_type;
>                         fastcgi_param CONTENT_LENGTH $content_length;}
>
>                 access_log        /var/log/nginx/localhost.access_log
> main;
>                 error_log        /var/log/nginx/localhost.error_log;
>                 }
>         }}
>
> how can i foung the js,css,files
> i have tried for l long time,thanks for advance
-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.


Reply via email to