Enable Put request

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Enable Put request

Postby tedderic » 28. May 2018 21:24

Hello so basically i want to enable put request for the apache server on XAMPP, I tried adding

<Directory "C:/xampp/htdocs">
AllowOverride All
<Limit GET HEAD POST PUT DELETE OPTIONS>
Order Allow,Deny
Allow from all
</Limit>
</Directory>

to the httpd.conf file and

<Limit GET POST PUT DELETE>
Allow from all
</Limit>

in the .htaccess file as mentioned here: https://stackoverflow.com/questions/44543438/xampp-delete-and-put-requests-on-localhost-doesnt-work?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa

But it doesn't seem to be working... I tried a simple put request using my linux server:
curl -T "/root/lmtrainingARK.zip" http://mtl-bl20-vm248.nuance.com:80

but I am getting the following:
<body>
<h1>Method not allowed!</h1>
<p>


The PUT
method is not allowed for the requested URL.

</p>
<p>

Am I missing something somewhere? Any help would be greatly appropriated, Thanks!
tedderic
 
Posts: 1
Joined: 28. May 2018 21:07
XAMPP version: 3.2.2
Operating System: Windows 7

Re: Enable Put request

Postby Nobbie » 29. May 2018 09:44

Order and Allow clause are old and deprecated since Apache 2.3

Use Require all granted instead.

Also you cannot use AllowOverride neither <Directory> in a .htaccess file, these must be configured in the Apache configuration (httpd.conf etc.)
Nobbie
 
Posts: 13183
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 116 guests