Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

Http request methods - apache2

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
5 posts • Page 1 of 1
pht
Posts: 3
Joined: Tue Apr 09, 2019 5:50 am

Os: Debian 8x
Web: nginx + php-fpm
Http request methods - apache2
  • Quote

Post by pht » Tue Apr 09, 2019 6:25 am

Hi Guys

First of all I want tell you something about Vesta - it works awesome.

But...

I use VestaCP for couple years and now I have a little problem. My client wants to use his own api. He need a "GET, POST, PUT, DELETE, HEAD" HTTP requests methods. I tried many solutions to set these options but they change nothing. I'm very frustrated by this. Does somebody know where in VestaCP configs this methods are blocked (PUT, POST should be power on off default) and can tell me what I can do to fix my problem.

Apache version: Apache/2.4.25(debian)
PHP Version 7.0.33-0+deb9u3
OS: Debian 9
phpinfo() - http://new.malawishop.pl/info.php

PS. I read on this forum another thread - viewtopic.php?t=7258 I tried manipulated settings but still nothing
Top

dreiggy
Posts: 154
Joined: Thu May 17, 2018 8:05 pm
Contact:
Contact dreiggy
Skype

Os: CentOS 6x
Web: apache + nginx
Re: Http request methods - apache2
  • Quote

Post by dreiggy » Wed Apr 10, 2019 8:24 pm

Try create custom httpd include for domain:

/home/$USER/conf/web/httpd.$DOMAIN.TLD.conf-allowmethods

Code: Select all

<Directory /home/$USER/web/$DOMAIN.TLD/public_html>
	AllowMethods GET HEAD POST PUT DELETE CONNECT OPTIONS TRACE PATCH PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK
</Directory>
PS. Check if you have loaded apache module mod_allowmethods. More info please read here: https://httpd.apache.org/docs/2.4/mod/m ... thods.html
Top

pht
Posts: 3
Joined: Tue Apr 09, 2019 5:50 am

Os: Debian 8x
Web: nginx + php-fpm
Re: Http request methods - apache2
  • Quote

Post by pht » Thu Apr 11, 2019 12:50 pm

dreiggy wrote: ↑
Wed Apr 10, 2019 8:24 pm
Try create custom httpd include for domain:

/home/$USER/conf/web/httpd.$DOMAIN.TLD.conf-allowmethods

Code: Select all

<Directory /home/$USER/web/$DOMAIN.TLD/public_html>
	AllowMethods GET HEAD POST PUT DELETE CONNECT OPTIONS TRACE PATCH PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK
</Directory>
PS. Check if you have loaded apache module mod_allowmethods. More info please read here: https://httpd.apache.org/docs/2.4/mod/m ... thods.html
file added, mod_allowmethods enabled - still only GET
Top

dreiggy
Posts: 154
Joined: Thu May 17, 2018 8:05 pm
Contact:
Contact dreiggy
Skype

Os: CentOS 6x
Web: apache + nginx
Re: Http request methods - apache2
  • Quote

Post by dreiggy » Thu Apr 11, 2019 2:39 pm

Check if it is correctly loaded by apache:
httpd -l | grep mod_allowmethods
Top

pht
Posts: 3
Joined: Tue Apr 09, 2019 5:50 am

Os: Debian 8x
Web: nginx + php-fpm
Re: Http request methods - apache2
  • Quote

Post by pht » Fri Apr 12, 2019 5:22 am

Code: Select all

root@malawishop:~# httpd -l | grep mod_allowmethods
-bash: httpd: command not found
root@malawishop:~# apache2 -l | grep -i mod_allowmethods
root@malawishop:~# apache2 -l
Compiled in modules:
  core.c
  mod_so.c
  mod_watchdog.c
  http_core.c
  mod_log_config.c
  mod_logio.c
  mod_version.c
  mod_unixd.c
root@malawishop:~# apachectl -M | grep -i allowmethods
 allowmethods_module (shared)
httpd -l not worked for me, but i can listed modules by apachectl -M
Top


Post Reply
  • Print view

5 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password