Open ShaiMagal opened 2 months ago
Im not that familiar with Ubuntu. This could be because of the (lazy) Makefile that just compiles including /usr/include/httpd/ and /usr/include/apr-1/ for the header files. Check where id the file httpd.h and point the directory accordingly. If no httpd.h file is found you might need to install the httpd devel packages (or apache devel, not sure).
@IvnSoft folder "/usr/include/httpd/" doesn't exists on Ubuntu. (We have more servers, and all of them are Ubuntu and this folder doesn't exists) - in Ubuntu it's apache2, not httpd.
So, module "mod_vhost_limit" is not usable for Ubuntu?
Apache/2.4.59 Ubuntu 22.04 LTS Kernel 5.15.0-106-generic
git clone https://github.com/IvnSoft/mod_vhost_limit _Cloning into 'mod_vhostlimit'... remote: Enumerating objects: 37, done. remote: Counting objects: 100% (37/37), done. remote: Compressing objects: 100% (28/28), done. remote: Total 37 (delta 17), reused 24 (delta 8), pack-reused 0 Receiving objects: 100% (37/37), 11.56 KiB | 514.00 KiB/s, done. Resolving deltas: 100% (17/17), done.
cd mod_vhost_limit/
make _g++ -c -I/usr/include/httpd/ -I/usr/include/apr-1/ -fPIC mod_vhost_limit.cpp mod_vhost_limit.cpp:21:10: fatal error: httpd.h: No such file or directory 21 | #include "httpd.h" | ^
~~~~ compilation terminated. make: *** [Makefile:8: mod_vhostlimit.o] Error 1