Hello, I am trying to add "DELETE" method in apache allowed methods. Followed this KB : https://help.directadmin.com/item.php?id=700 and checked the forum for relevant post's but have not have found any definite solution.
There is only one httpd-directories.conf, checked custom folder and locate also only lists 1 file. Permissions on file are as follow, one odd thing is httpd-directories.conf symlinks to httpd-directories-old.conf and there is another file httpd-directories-new.conf in the extra folder. Is this standard ..
Any help would be appreciated. Thanks
There is only one httpd-directories.conf, checked custom folder and locate also only lists 1 file. Permissions on file are as follow, one odd thing is httpd-directories.conf symlinks to httpd-directories-old.conf and there is another file httpd-directories-new.conf in the extra folder. Is this standard ..
Code:
lrwxrwxrwx 1 root root 26 Oct 3 2019 /etc/httpd/conf/extra/httpd-directories.conf -> httpd-directories-old.conf
-rw-r--r-- 1 root root 503 Oct 3 2019 /etc/httpd/conf/extra/httpd-directories-new.conf
-rw-r--r-- 1 root root 366 Jun 25 09:59 /etc/httpd/conf/extra/httpd-directories-old.conf
Code:
cat /etc/httpd/conf/extra/httpd-directories.conf
<Directory />
Options All
AllowOverride All
</Directory>
<Directory /home>
AllowOverride All
Options -MultiViews -Indexes +FollowSymLinks +IncludesNoExec +Includes
AllowMethods GET HEAD POST DELETE
</Directory>
Include /etc/httpd/conf/extra/httpd-hostname.conf
<Directory /var/www/cgi-bin>
AllowOverride None
Options None
Require all granted
</Directory>
Code:
/etc/httpd/conf/extra/httpd-directories-old.conf
<Directory />
Options All
AllowOverride All
</Directory>
<Directory /home>
AllowOverride All
Options -MultiViews -Indexes +FollowSymLinks +IncludesNoExec +Includes
AllowMethods GET HEAD POST
</Directory>
Include /etc/httpd/conf/extra/httpd-hostname.conf
<Directory /var/www/cgi-bin>
AllowOverride None
Options None
Require all granted
</Directory>
Code:
cat /etc/httpd/conf/extra/httpd-directories-new.conf
<Directory />
Options SymLinksIfOwnerMatch
AllowOverride None
Require all denied
</Directory>
<Directory /home>
AllowOverride AuthConfig FileInfo Indexes Limit Options=Includes,IncludesNOEXEC,Indexes,ExecCGI,MultiViews,SymLinksIfOwnerMatch,None
Options IncludesNoExec Includes SymLinksIfOwnerMatch ExecCGI
AllowMethods GET HEAD POST
</Directory>
Include /etc/httpd/conf/extra/httpd-hostname.conf
<Directory /var/www/cgi-bin>
AllowOverride None
Options None
Require all granted
</Directory>
Any help would be appreciated. Thanks