ambrozy 0 Zgłoś post Napisano Listopad 20, 2014 Na serwerze na którym zainstalowaną mam aplikację group-office.com postanowiłem dodać nginxa jako reverse proxy. Niestety od tego momentu carddav, caldav (sabredav) oraz ActiveSync (z-push) przestało działać. Jak otwieram strony domain.com/carddav czy domain.com/Microsoft-Server-ActiveSync w przeglądarce wyskakuje okno uwierzytelnienia, czyli wszystko wporządku, jednak jak konfiguruję np carddav z telefonu z logach mam same 444 i nic nie działa ip - user [20/Nov/2014:10:12:45 +0100] "OPTIONS /Microsoft-Server-ActiveSync HTTP/1.1" 444 0 "-" "Apple-iPhone6C2/1202.411"ip - user [20/Nov/2014:10:18:05 +0100] "OPTIONS /Microsoft-Server-ActiveSync HTTP/1.1" 444 0 "-" "Apple-iPhone6C2/1202.411"ip - - [20/Nov/2014:10:32:26 +0100] "PROPFIND /carddav/ HTTP/1.1" 444 0 "-" "iOS/8.1 (12B411) accountsd/1.0" Problem opisałem na kilku forach, jednak jak na razie nikt nie pomógł, nawet nie odpowiedział. Support z GO nie ma doświadczenie z taką konfiguracją, więc też nie pomogą. Mam nadzieję, że na wht uda mi się uzyskać pomoc. Z góry dziękuję moja konfiguracja jest następująca: DirectAdmin 1.46.3CloudLinuxApache 2.4.10Nginx 1.6.2 z modułem dav oraz nginx-dav-ext-module-0.0.2lsphpapache:SuexecUserGroup groupoffic groupofficSetHandler fcgid-scriptFCGIWrapper '/usr/local/safe-bin/fcgid55.sh /usr/local/directadmin/data/users/groupoffic/php/www.domain.com.ini -d open_basedir="/home/groupoffic/:/tmp:/var/tmp:/usr/local/lib/php/:/usr/local/php55/lib/php/" -d mail.log="/home/groupoffic/.php/php-mail.log"' .phpOptions +ExecCGIServerName www.domain.comServerAlias www.domain.comServerAdmin webmaster@domain.comDocumentRoot /home/groupoffic/domains/domain.com/public_htmlUseCanonicalName OFFSuexecUserGroup groupoffic groupofficCustomLog /var/log/httpd/domains/domain.com.bytes bytesCustomLog /var/log/httpd/domains/domain.com.log combinedErrorLog /var/log/httpd/domains/domain.com.error.logAllowOverride AuthConfig FileInfo Indexes Limit Options=Indexes,Includes,IncludesNOEXEC,MultiViews,SymLinksIfOwnerMatch,FollowSymLinks,NoneOptions -ExecCGIFCGIWrapper '/usr/local/safe-bin/fcgid55.sh /usr/local/directadmin/data/users/groupoffic/php/www.domain.com.ini -d sendmail_from="groupoffic@domain.com" -d mail.log="/home/groupoffic/.php/php-mail.log"' .phpSetHandler fcgid-scriptOptions +ExecCGIRewriteEngine onRewriteOptions inheritSSLEngine onSSLCertificateFile /usr/local/directadmin/data/users/groupoffic/domains/domain.com.certSSLCertificateKeyFile /usr/local/directadmin/data/users/groupoffic/domains/domain.com.keySSLCACertificateFile /etc/httpd/conf/ssl.crt/CA.crtServerName www.domain.comServerAlias www.domain.com domain.comServerAdmin webmaster@domain.comDocumentRoot /home/groupoffic/domains/domain.com/groupoffice-com-6.1.2Header add Strict-Transport-Security "max-age=15768000"UseCanonicalName OFFSuexecUserGroup groupoffic groupofficCustomLog /var/log/httpd/domains/domain.com.bytes bytesCustomLog /var/log/httpd/domains/domain.com.log combinedErrorLog /var/log/httpd/domains/domain.com.error.logAllowOverride AuthConfig FileInfo Indexes Limit Options=Indexes,Includes,IncludesNOEXEC,MultiViews,SymLinksIfOwnerMatch,FollowSymLinks,NoneOptions -ExecCGIFCGIWrapper '/usr/local/safe-bin/fcgid55.sh /usr/local/directadmin/data/users/groupoffic/php/www.domain.com.ini -d sendmail_from="groupoffic@domain.com" -d mail.log="/home/groupoffic/.php/php-mail.log"' .phpSetHandler fcgid-scriptOptions +ExecCGIOrder allow,denyAllow from allOrder allow,denyAllow from allRewriteEngine onRewriteOptions inheritAlias /caldav /home/groupoffic/domains/domain.com/groupoffice-com-6.1.2/modules/caldav/calendar.phpAlias /carddav /home/groupoffic/domains/domain.com/groupoffice-com-6.1.2/modules/carddav/addressbook.phpAlias /Microsoft-Server-ActiveSync /home/groupoffic/domains/domain.com/groupoffice-com-6.1.2/modules/z-push21/index.php# Service discovery, required for iOS7Redirect 301 /.well-known/carddav /carddavRedirect 301 /.well-known/caldav /caldavnginx:server{listen ip:80;server_name domain.com www.domain.com ;access_log /var/log/nginx/domains/domain.com.log;access_log /var/log/nginx/domains/domain.com.bytes bytes;error_log /var/log/nginx/domains/domain.com.error.log;root /home/groupoffic/domains/domain.com/public_html;index index.php index.html index.htm;include /usr/local/directadmin/data/users/groupoffic/nginx_php.conf;location /{# access_log off;proxy_buffering off;proxy_pass http://ip:8080;proxy_set_header X-Client-IP $remote_addr;proxy_set_header X-Accel-Internal /nginx_static_files;proxy_set_header Host $host;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;}location /nginx_static_files/{# access_log /var/log/nginx/access_log_proxy;alias /home/groupoffic/domains/domain.com/public_html/;internal;}include /etc/nginx/webapps.conf;}server{listen ip:443 ssl spdy;server_name domain.com www.domain.com ;access_log /var/log/nginx/domains/domain.com.log;access_log /var/log/nginx/domains/domain.com.bytes bytes;error_log /var/log/nginx/domains/domain.com.error.log;root /home/groupoffic/domains/domain.com/private_html;index index.php index.html index.htm;ssl on;ssl_certificate /usr/local/directadmin/data/users/groupoffic/domains/domain.com.cert;ssl_certificate_key /usr/local/directadmin/data/users/groupoffic/domains/domain.com.key;ssl_trusted_certificate /etc/httpd/conf/ssl.crt/server.crt.combined;ssl_session_timeout 5m;ssl_session_cache shared:SSL:50m;ssl_protocols TLSv1 TLSv1.1 TLSv1.2;ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384HE-RSA-AES128-GCM-SHA256HE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHAHE-RSA-AES128-SHA256HE-RSA-AES128-SHAHE-DSS-AES128-SHA256HE-RSA-AES256-SHA256HE-DSS-AES256-SHAHE-RSA-AES256-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!3DES:!MD5:!PSK';ssl_prefer_server_ciphers on;ssl_dhparam /etc/ssl/certs/dhparam.pem;ssl_stapling on;ssl_stapling_verify on;resolver 8.8.8.8 8.8.4.4 valid=300s;resolver_timeout 5s;# HSTSadd_header Strict-Transport-Security max-age=15768000;add_header Alternate-Protocol 443:npn-spdy/3;add_header X-Content-Type-Options "nosniff";add_header X-Frame-Options DENY;include /usr/local/directadmin/data/users/groupoffic/nginx_php.conf;location /{# access_log off;proxy_buffering off;proxy_pass https://ip:8081;proxy_set_header X-Client-IP $remote_addr;proxy_set_header X-Accel-Internal /nginx_static_files;proxy_set_header Host $host;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;}location /nginx_static_files/{# access_log /var/log/nginx/access_log_proxy;alias /home/groupoffic/domains/domain.com/private_html/;internal;}include /etc/nginx/webapps.ssl.conf; Udostępnij ten post Link to postu Udostępnij na innych stronach
kafi 2425 Zgłoś post Napisano Listopad 21, 2014 Wyrzuć moduły DAV z nginx i apache. Do tego upewnij się (szczególnie, że to DirectAdmin), że nie masz gdzieś zablokowanych nietypowych żądań HTTP (w stockowym configu jest blokada wszystkiego poza GET, POST i chyba PUT). Udostępnij ten post Link to postu Udostępnij na innych stronach
ambrozy 0 Zgłoś post Napisano Listopad 24, 2014 Z samym apache działa, problem jest z nginxem. Wyłączyłem moduły dav ale bez zmian. Nie mam pomysłów. Udostępnij ten post Link to postu Udostępnij na innych stronach