Показать сообщение отдельно

  #3  
Старый 13.04.2009, 12:48
Vinsik
Участник форума
Регистрация: 04.10.2008
Сообщений: 154
Провел на форуме:
203408

Репутация: 7
По умолчанию

Цитата:
Сообщение от razb  
Ну ты хоть намекни в чем проблема то, тут же не телепаты и сигвин далеко не у каждого стоит что б проверить
проблема в том что я незнаю как собрать это все из исходников в win сервер
вот кстати забыл конфиг для него
оригинал
PHP код:
server {
        
listen {IP}:80;
        
server_name   {vhost_name};
        
upload_set_form_field $upload_field_name.name "$upload_file_name";
        
upload_set_form_field $upload_field_name.mime "$upload_content_type";
        
upload_set_form_field $upload_field_name.path "$upload_tmp_path";
        
upload_aggregate_form_field $upload_field_name.sha "$upload_file_sha1";
        
upload_aggregate_form_field $upload_field_name.size "$upload_file_size";
        
upload_pass_form_field "^desc$|^folder_id$";
        
upload_store /files/tmp;

        
upload_cleanup 400-599;

        
location / {
                
proxy_pass   http://127.0.0.1:80;
                
proxy_set_header   Host             $host;
                
proxy_set_header   X-Real-IP        $remote_addr;
                
proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
                
track_uploads proxied 30s;
        }

        
location /doupload {
                
upload_pass   /doneupload;
                
track_uploads proxied 30s;
        }

        
location /doneupload {
                
proxy_pass   http://localhost:80/doupload;
                
proxy_set_header   Host             $host;
                
proxy_set_header   X-Real-IP        $remote_addr;
                
proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
        }

        
location /media {
                
root /www/share;
        }
        
location ^~ /progress {
                
expires off;
                
add_header Pragma no-cache;
                
add_header Cache-Control no-cache,must-revalidate;
                
report_uploads proxied;
        }

        
location /uploaded_files {
                
root /files;
                
internal;
                
limit_conn   one  20;
        }

        
location /previews {
                
root /files;
        }

подправленый мной под себя
PHP код:
server {
        
listen 81.1.195.197:80;
        
server_name   share.unreal-music.ru;
        
upload_set_form_field $upload_field_name.name "$upload_file_name";
        
upload_set_form_field $upload_field_name.mime "$upload_content_type";
        
upload_set_form_field $upload_field_name.path "$upload_tmp_path";
        
upload_aggregate_form_field $upload_field_name.sha "$upload_file_sha1";
        
upload_aggregate_form_field $upload_field_name.size "$upload_file_size";
        
upload_pass_form_field "^desc$|^folder_id$";
        
upload_store c:/webserv/share.unreal-music.ru/files/tmp;

        
upload_cleanup 400-599;

        
location / {
                
proxy_pass   http://127.0.0.1:80;
                
proxy_set_header   Host             $host;
                
proxy_set_header   X-Real-IP        $remote_addr;
                
proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
                
track_uploads proxied 30s;
        }

        
location C:/webserv/share.unreal-music.ru/files/doneupload {
                
upload_pass   /doneupload;
                
track_uploads proxied 30s;
        }

        
location C:/webserv/share.unreal-music.ru/doupload {
                
proxy_pass   http://localhost:80/doupload;
                
proxy_set_header   Host             $host;
                
proxy_set_header   X-Real-IP        $remote_addr;
                
proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
        }

        
location /media {
                
root /www/share;
        }
        
location ^~ /progress {
                
expires off;
                
add_header Pragma no-cache;
                
add_header Cache-Control no-cache,must-revalidate;
                
report_uploads proxied;
        }

        
location /uploaded_files {
                
root /files;
                
internal;
                
limit_conn   one  20;
        }

        
location /previews {
                
root /files;
        }

я пробовал в Cygwin собрать но так и не понял как,
на строку
PHP код:
$ ./configure --with-debug --with-http_stub_status_module --add-module=nginx_up load_files --add-module=nginx_uploadprogress_module --with-pcre=/usr/local/ngin x/auto/lib/pcre
вывод
PHP код:
Configuration summary
  
using PCRE library: /usr/local/nginx/auto/lib/pcre/
  + 
OpenSSL library is not used
  
md5 library is not found
  
sha1 library is not found
  
using system zlib library

  nginx path prefix
"/usr/local/nginx"
  
nginx binary file"/usr/local/nginx/sbin/nginx"
  
nginx configuration prefix"/usr/local/nginx/conf"
  
nginx configuration file"/usr/local/nginx/conf/nginx.conf"
  
nginx pid file"/usr/local/nginx/logs/nginx.pid"
  
nginx error log file"/usr/local/nginx/logs/error.log"
  
nginx http access log file"/usr/local/nginx/logs/access.log"
  
nginx http client request body temporary files"/usr/local/nginx/client_body_
temp"
  
nginx http proxy temporary files"/usr/local/nginx/proxy_temp"
  
nginx http fastcgi temporary files"/usr/local/nginx/fastcgi_temp" 
я как понимаю это все должно получится одним exe файлом..... но как....
 
Ответить с цитированием