cancel
Showing results for 
Search instead for 
Did you mean: 

Corrupted files using Reverse Proxy

basruel
Champ in-the-making
Champ in-the-making
Hi,

I am using a NGINX as a reverse proxy to access tomcat webapp. Unfortunately my files are corrupted when they are uploaded to Alfresco WebDav. If I'm mapping the webdav volume directly without using the proxy I have no problem.

The proxy is working fine with Sharepoint protocol and share.

Do I need to do anything special in tomcat ?

Alfresco-4.2c
Ubuntu 12.04.2 LTS

This is my nginx configuration.

server {
   # Server for /share und /alfresco
   listen 443;
   server_name docs.mydomain.com;
   root /u005/alfresco-4.2.c/tomcat/webapps;
   ssl_certificate /etc/certificates/docs.chained.crt;
   ssl_certificate_key /etc/certificates/docs.decrypted.key;

   keepalive_timeout 60;
   ssl_ciphers  ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
   ssl on;
   ssl_protocols SSLv3 TLSv1;

   ignore_invalid_headers on;
    client_header_timeout 440;
    client_body_timeout 440;
    send_timeout 440;
    client_max_body_size 20000m;
    proxy_buffer_size 528k;
    proxy_buffers 8 528k;

   location / {
      proxy_pass http://localhost:8080;
      proxy_set_header   X-Real-IP $remote_addr;
      proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
      proxy_set_header   X-Forwarded-Proto https;
      proxy_redirect off;
            proxy_connect_timeout      440;
            proxy_send_timeout         440;
            proxy_read_timeout         440;
   }

}
3 REPLIES 3

tullo
Champ in-the-making
Champ in-the-making
did you enable webdav in nginx?
./configure –with-http_dav_module
http://wiki.nginx.org/HttpDavModule

basruel
Champ in-the-making
Champ in-the-making
It's the version compiled for Ubuntu 12.04.02 but yes Dav modules are included


nginx version: nginx/1.1.19
TLS SNI support enabled
configure arguments: –prefix=/etc/nginx –conf-path=/etc/nginx/nginx.conf –error-log-path=/var/log/nginx/error.log –http-client-body-temp-path=/var/lib/nginx/body –http-fastcgi-temp-path=/var/lib/nginx/fastcgi –http-log-path=/var/log/nginx/access.log –http-proxy-temp-path=/var/lib/nginx/proxy –http-scgi-temp-path=/var/lib/nginx/scgi –http-uwsgi-temp-path=/var/lib/nginx/uwsgi –lock-path=/var/lock/nginx.lock –pid-path=/var/run/nginx.pid –with-debug –with-http_addition_module –with-http_dav_module –with-http_flv_module –with-http_geoip_module –with-http_gzip_static_module –with-http_image_filter_module –with-http_mp4_module –with-http_perl_module –with-http_random_index_module –with-http_realip_module –with-http_secure_link_module –with-http_stub_status_module –with-http_ssl_module –with-http_sub_module –with-http_xslt_module –with-ipv6 –with-sha1=/usr/include/openssl –with-md5=/usr/include/openssl –with-mail –with-mail_ssl_module –add-module=/build/buildd/nginx-1.1.19/debian/modules/nginx-auth-pam –add-module=/build/buildd/nginx-1.1.19/debian/modules/chunkin-nginx-module –add-module=/build/buildd/nginx-1.1.19/debian/modules/headers-more-nginx-module –add-module=/build/buildd/nginx-1.1.19/debian/modules/nginx-development-kit –add-module=/build/buildd/nginx-1.1.19/debian/modules/nginx-echo –add-module=/build/buildd/nginx-1.1.19/debian/modules/nginx-http-push –add-module=/build/buildd/nginx-1.1.19/debian/modules/nginx-lua –add-module=/build/buildd/nginx-1.1.19/debian/modules/nginx-upload-module –add-module=/build/buildd/nginx-1.1.19/debian/modules/nginx-upload-progress –add-module=/build/buildd/nginx-1.1.19/debian/modules/nginx-upstream-fair –add-module=/build/buildd/nginx-1.1.19/debian/modules/nginx-dav-ext-module


I can view/create/delete directories

basruel
Champ in-the-making
Champ in-the-making
I tested with NetDrive on Windows XP and it work.

It's seems to be related to OS X Mountain Lion. I will ask on the apple forum.

Thanks for the support