ngnix<-apache2+webdav is it possible?
August 11, 2015 01:54PM
hello all.

Can I configure Nginx as proxy for apache2+webdav ?

root@web-frontend:/etc/nginx/sites-enabled# cat site-dev
server {
listen 80;
server_name mydomain.spbstu.ru;

location / {
# proxy_pass http://192.168.0.2:82/;
# proxy_set_header Host $host;
# proxy_set_header Client-IP $http_client_ip;
# proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

proxy_set_header Destination $http_destination;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;

proxy_pass http://192.168.0.2:82;



}
}

I may view files from browser and auth, but can not connect share for client host. :(




Thanks.



Edited 1 time(s). Last edit at 08/11/2015 01:55PM by toptyg.
Re: ngnix<-apache2+webdav is it possible?
August 12, 2015 05:43AM
Solved.

1 I use
SetHandler default-handler
Options None
(because apache try to exec php)

2 I change auth type foe Digest
http://blog.tedd.no/2013/07/13/apache-webdav-setup-compatible-with-windows/

because of using Basic auth I cannot connect share in Windows client.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 285
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready