March 08, 2022 10:18AM
Hello Sergey,

I did what you told, update to nginx (1.16.1-0+xenial1).

And here is the config of server:

# The server directive says Nginx that this is a new server configuration
server {
# This has to be the domain you want to use
server_name webdav.inoprime.com.br;
# This is the document root
root /var/www/html/webdav/;
# This is the file which gets loaded by default. index.html gets loaded if there is no index.php
index index.php index.html server.php;

access_log /var/log/nginx/webdav.access.log;
error_log /var/log/nginx/webdav.error.log error;
#proxy_buffering on;
#proxy_request_buffering on;
# This configuration prevent the logger to log not found favicon
location = /favicon.ico {
log_not_found off;
access_log off;
}

# Same as favicon but for robots.txt
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}

# This says the Nginx server to rewrite any requests which do not access a valid file to rewrite on to the index.php
location / {
try_files $uri $uri/ /server.php?$args;
}

# This gets all requests from the location above and sends them to the php-fpm socket which will execute the php
location ~ \.php$ {
include fastcgi.conf;
fastcgi_intercept_errors on;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass unix:/run/php/php5.6-fpm.sock;
fastcgi_read_timeout 600;
}

# This says that all files with the given endings should be cached by the client
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires max;
log_not_found off;
}





listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/webdav.inoprime.com.br/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/webdav.inoprime.com.br/privkey.pem; # managed by Certbot
# include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
# ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot


}

server {


if ($host = webdav.inoprime.com.br) {
return 301 https://$host$request_uri;
} # managed by Certbot


server_name webdav.inoprime.com.br;
listen 80;
return 404; # managed by Certbot


}
Subject Author Posted

405 Not Allowed

felipesmendes March 08, 2022 09:04AM

Re: 405 Not Allowed

Sergey A. Osokin March 08, 2022 09:28AM

Re: 405 Not Allowed

felipesmendes March 08, 2022 10:18AM

Re: 405 Not Allowed

Sergey A. Osokin March 08, 2022 09:40PM

Re: 405 Not Allowed

felipesmendes March 09, 2022 06:16AM

Re: 405 Not Allowed

Sergey A. Osokin March 09, 2022 04:56PM

Re: 405 Not Allowed

felipesmendes March 10, 2022 06:43AM

Re: 405 Not Allowed

felipesmendes March 10, 2022 06:49AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 182
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready