WebDAV Configuration Failed (F4-210)

Using Web Server, PHP, MySQL, MariaDB.
Post Reply
User avatar
cwright1986
Posts: 1
Joined: 29 Oct 2023, 22:34

WebDAV Configuration Failed (F4-210)

Post by cwright1986 »

So this is kind of a multi-part question; sorry in advance.

I installed the "Web Server" application directory (public/sites)
HTTP Server Nginx
PHP: 7.4
HTTP Port: 9900
HTTPS: 5443

Then, I went to enable WedDAV, where I keep getting Configuration Failed.
Settings:
Enable HTTP & HTTPS (ports 9900 & 5443)
Nginx Configuration: I have a server block listening on port 8181 for HTTP and 5443 for HTTPS
I added this to the config and the test came back successful:

Code: Select all

location /public/site/ {
    root /mnt/md0/public;
    dav_methods PUT DELETE MKCOL COPY MOVE;
    autoindex on;
}
I suppose, at the end of the day, I am trying to creat a "public" facing site that I can view outside of my network but I'm not sure I am even going about it the right way, since I am fairly new to this.

Logs:
error:

Code: Select all

2023/10/26 01:41:37 [notice] 4873#4873: signal process started
2023/10/26 12:32:38 [error] 4889#4889: *5 open() "/usr/www/favicon.ico" failed (2: No such file or directory), client: 101.36.122.161, server: znasnginx, request: "GET /favicon.ico HTTP/1.1", host: "69.242.45.194:8181"
2023/10/28 09:40:29 [error] 4889#4889: *18 open() "/usr/www/favicon.ico" failed (2: No such file or directory), client: 10.0.0.215, server: znasnginx, request: "GET /favicon.ico HTTP/1.1", host: "10.0.0.240:8181", referrer: "http://10.0.0.240:8181/"
2023/10/28 21:43:39 [notice] 3554#3554: signal process started
2023/10/28 21:52:32 [error] 3560#3560: *3003 open() "/usr/www/images/icons/mysql.png" failed (2: No such file or directory), client: 10.0.0.215, server: znasnginx, request: "GET /images/icons/mysql.png HTTP/1.1", host: "10.0.0.240:8181", referrer: "http://10.0.0.240:8181/mod/4.Application/2.mysql.php"
2023/10/29 20:31:26 [notice] 13707#13707: signal process started
2023/10/29 21:44:56 [notice] 14942#14942: signal process started
2023/10/29 21:48:34 [notice] 8549#8549: signal process started
2023/10/29 21:50:48 [emerg] 11759#11759: "location" directive is not allowed here in /etc/nginx/nginx.conf:83
2023/10/29 21:50:49 [emerg] 12014#12014: "location" directive is not allowed here in /etc/nginx/nginx.conf:83
2023/10/29 22:04:48 [emerg] 3026#3026: "location" directive is not allowed here in /etc/nginx/nginx.conf:25
2023/10/29 22:12:21 [emerg] 24752#24752: unknown directive "dav_ext_methods" in /etc/nginx/nginx.conf:34
2023/10/29 22:18:07 [notice] 24198#24198: signal process started
2023/10/29 22:20:18 [error] 24240#24240: *31 "/mnt/md0/public/site/webdav/index.html" is not found (2: No such file or directory), client: 10.0.0.215, server: znasnginx, request: "GET /webdav/ HTTP/1.1", host: "10.0.0.240:8181"
2023/10/29 22:21:11 [error] 24240#24240: *1 open() "/usr/www/public/site" failed (2: No such file or directory), client: 10.0.0.215, server: znasnginx, request: "GET /public/site HTTP/1.1", host: "10.0.0.240:8181"
2023/10/29 22:30:48 [emerg] 27718#27718: unknown directive "dav_ext_methods" in /etc/nginx/nginx.conf:36
2023/10/29 22:32:24 [notice] 21196#21196: signal process started
The most recent nginx -t came back:
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

Other settings/Information that may be relevant:
Running TOS 4.2.43
I changed the permissions of shared folders to allow WebDav.
Under General>Network, HTTP Access port for TOS is 8181 and HTTPS is 5443 with enable Server header in the HTTP response checked for nginx. Ennable custom HTTP maximum simultaneous connections is NOT checked

AFP and FTP services are not on. NFS file service enabled. Download station disabled and iSCSI Target is disabled
UPnP and Bonjour are not on

Under security, SSL is active and DoD protection is checked

Under service status, Web Server shows Enabled on port 8805, DDNS Service Enabled, MySQL enabled.


Any insight is greatly appreciated, thank you!
User avatar
louisesmith
Posts: 1
Joined: 21 Nov 2023, 15:23

Re: WebDAV Configuration Failed (F4-210)

Post by louisesmith »

Hello, I think the error logs indicate that the "location" directive is not allowed at the specified locations in the Nginx configuration file. Please ensure that the "location" block for WebDAV is placed within a valid context, such as inside a server block. You should check your Nginx configuration file (usually located at /etc/nginx/nginx.conf) and verify that the "location" block for WebDAV is properly nested within a valid context.
User avatar
depictestate
Posts: 1
Joined: 24 Mar 2023, 12:43

Re: WebDAV Configuration Failed (F4-210)

Post by depictestate »

I also think it's an error because the location cannot be determined or is not within the allowed range.
Post Reply

Return to “Web Server/PHP/MySQL/MariaDB”