We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
How to install mod_unique_id
How to install mod_unique_id
Hey guys, I want to enable mod security on my centos server but received this error:
[error] ModSecurity: ModSecurity requires mod_unique_id to be installed.
I also find this tutorial:
https://redbeardtechnologies.wordpress. ... installed/
but apparently it doesn't work with my Vesta Apache web server because I cant find this folder:
/usr/local/apache2/bin/apxs
Do you guys now how can I use apxs in vesta or how can I install mod_unique_id? I appreciate your help.
[error] ModSecurity: ModSecurity requires mod_unique_id to be installed.
I also find this tutorial:
https://redbeardtechnologies.wordpress. ... installed/
but apparently it doesn't work with my Vesta Apache web server because I cant find this folder:
/usr/local/apache2/bin/apxs
Do you guys now how can I use apxs in vesta or how can I install mod_unique_id? I appreciate your help.
Re: How to install mod_unique_id
freddie wrote:Hey guys, I want to enable mod security on my centos server but received this error:
[error] ModSecurity: ModSecurity requires mod_unique_id to be installed.
I also find this tutorial:
https://redbeardtechnologies.wordpress. ... installed/
but apparently it doesn't work with my Vesta Apache web server because I cant find this folder:
/usr/local/apache2/bin/apxs
Do you guys now how can I use apxs in vesta or how can I install mod_unique_id? I appreciate your help.
Which os do you have?
Re: How to install mod_unique_id
joem wrote:freddie wrote:Hey guys, I want to enable mod security on my centos server but received this error:
[error] ModSecurity: ModSecurity requires mod_unique_id to be installed.
I also find this tutorial:
https://redbeardtechnologies.wordpress. ... installed/
but apparently it doesn't work with my Vesta Apache web server because I cant find this folder:
/usr/local/apache2/bin/apxs
Do you guys now how can I use apxs in vesta or how can I install mod_unique_id? I appreciate your help.
Which os do you have?
Thanks for the reply. I am using centos 6.5 but I solved the issue. If anyone else has the same problem, be aware that modsecurity requires mod_unique_id to work. If you didn't add mod_unique_id to Apache, you have to add it:
nano /etc/httpd/conf/httpd.conf
LoadModule unique_id_module modules/mod_unique_id.so
My problem was when I add unique_id_module to apache, it failed to restart again. If anyone has the same issue you have to change the hostname. The problem was occurred because of the server ip address. Just simply add your host-name with this command: hostname mysamplename
http://www.rackspace.com/knowledge_cent ... ame-change
-
- Support team
- Posts: 1096
- Joined: Sat Sep 06, 2014 9:58 pm
- Contact:
- Os: Debian 8x
- Web: apache + nginx
Re: How to install mod_unique_id
Please educate me, what is the purpose of having mod_unique_id on a setup if I'm using nGinx as reverse proxy ?
Doesn't that actually create a "Unique" connection where nGinx is uniqly talking to apache on one dedicated channel ? atleast that's what I presume. Please correct me if I'm wrong.
Doesn't that actually create a "Unique" connection where nGinx is uniqly talking to apache on one dedicated channel ? atleast that's what I presume. Please correct me if I'm wrong.
Re: How to install mod_unique_id
mehargags wrote:Please educate me, what is the purpose of having mod_unique_id on a setup if I'm using nGinx as reverse proxy ?
Doesn't that actually create a "Unique" connection where nGinx is uniqly talking to apache on one dedicated channel ? atleast that's what I presume. Please correct me if I'm wrong.
I am using cloudflare with mod-cloudflare installed on apache and cloudflare acts like a proxy, I am not very technical but maybe that's the difference. I also added cloudflare to nginx:
nano /etc/nginx/nginx.conf
http {
set_real_ip_from 199.27.128.0/21;
set_real_ip_from 173.245.48.0/20;
set_real_ip_from 103.21.244.0/22;
set_real_ip_from 103.22.200.0/22;
set_real_ip_from 103.31.4.0/22;
set_real_ip_from 141.101.64.0/18;
set_real_ip_from 108.162.192.0/18;
set_real_ip_from 190.93.240.0/20;
set_real_ip_from 188.114.96.0/20;
set_real_ip_from 197.234.240.0/22;
set_real_ip_from 198.41.128.0/17;
set_real_ip_from 162.158.0.0/15;
set_real_ip_from 104.16.0.0/12;
set_real_ip_from 127.0.0.1/32;
real_ip_header CF-Connecting-IP;
When for the first time I checked my error logs u(login to one of your user accounts on vesta panel, click on web and see one of domain logs) I received the error below:
[error] ModSecurity: ModSecurity requires mod_unique_id to be installed.
So if you already added mod-security to Apache and haven't received any error under your logs, everything should work fine. Otherwise add mod_unique_id to apache.