Questions tagged as ['httpd']
i have a dedicated not managed server and use centos7 as OS, after a reboot and a new secondary ssd on my server, the httpd and nginx services no longer start.
the ips configuration was not touched and has been working for two years, the additional ips were added in
/etc/sysconfig/network-scripts
like ifcfg-enInterface:0 ifcfg-enInterface:1 ifcfg-enInterface:2 ifcfg-enInterface:3
with the command ...

I have Apache HTTP Server -> Wildfly combination and keycloak as authentication.
[root@alt-esb-app01 conf.d]$ httpd -version
Server version: Apache/2.4.6 (CentOS)
Server built: Nov 14 2016 18:04:44
I have rest API deployed in Wildfly. I sleep thread for 7 minutes. API logs working till 7 minutes. But Postman or Java client says:
Postman Response:
Could not get response
Error: read ECONNRESET
GE ...
I am trying to create a RewriteRule which looks at the incoming Header for an APIKey
and if it contains a matching string then it will redirect to respective URL else, it should be inaccessible.
I am testing this scenario using postman with Post method.
Please find my code below:
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/manager/(.*)
RewriteCond %{REQUEST_URI} ^/manager/secure/rest/groovy-servic ...
In my scenario ,I need the 'httpd' directory in '/var/log/' to be readable by the users in 'devs' group (Amazon Linux 2) Could anyone guide me how to accomplish this?
We have a few developers who maintain the system and I want them to easily read the log files in /var/log/httpd without needing root access.
can this will help ??
chmod -R go+r /var/log/httpd
or chmod -R go+rX /var/log/httpd
or do i ...

I want to block all directories in the document root except for two.
I don't want to manually block the ones I don't need. Instead, I just want to specify the two to keep.
I have a list of folders and files structured like this:
- Docs
- Docs_Files
Img1.jpg
Img2.jpg
Img3.png
Test.jpg
TestLarge.png
Zones.bmp
- Images
A1.jpg
B5.jpg
B5.png
X7.png
- Report 1
- Report 2 ...

Currently logrotate with httpd isn't writing to any of the log files and only writing to the old files that haven't been zipped with datestamps. Not sure what steps to take next.
-rw-r--r--. 1 root root 0 Feb 27 03:06 access_log
-rw-r--r--. 1 root root 1351248 Feb 15 19:00 access_log-20220206.gz
-rw-r--r--. 1 root root 505153 Feb 18 14:52 access_log-20220216.gz
-rw-r--r--. 1 roo ...

Is it possible with Apache Httpd to log all urls for outgoing http redirects?
This could help with http type open redirect vulnerability.

Based on the following logs, how can I locate the config file that could be preventing access?
Line 211: [Wed Mar 16 10:08:04.145981 2022] [authz_core:error] [pid 30995] [client 10.115.64.185:45138] AH01630: client denied by server configuration: /usr/local/neolane/nl6/datakit/nl/eng/jsp/soaprouter.jsp Line 212: [Wed Mar 16 10:08:29.914868 2022] [authz_core:error] [pid 30995] [client 10.115.64.185:5 ...
I am needing to deploy a new frontend application on NextJS which is operating as a transition for a legacy WordPress site using the incremental adoption functionality in NextJS. We are looking at an edge service like Vercel, etc to manage the NextJS deployment so we don't have access to the hosts file.
WordPress is setup to do canonical redirects for a number of different situations (url rewrite ...

I'm running the httpd24u package from IUS on two Centos 7 servers. The version identifier for the package is "2.4.52-1.el7.ius".
For the last week or so, we've been seeing intermittent broken HTTP responses from the servers. The browser reports "net::ERR_CONNECTION_CLOSED", and the server error log includes output like:
*** Error in `/usr/sbin/httpd': free(): invalid next size (fast): 0x00007fb39401 ...

We have a centos8 web server hosting hundreds of websites, using 3 services: apache, mariadb and php-fpm. Because apache and mariadb do not support per-account resource limitation, all websites have the same access to many system resources (storage, database) and a single website can overload the machine (often that happens through database queries) and bring down all websites hosted there.
We wo ...
I am using Apache 2 on AWS ec2 instance. I have application load balancer with 2 instances/servers attached to it. Each instance type is m5.8XLarge.
My application is developed in Laravel, I am using RDS.
I am having 300,000 visitors per day and 10,000 visitors at a time. My website is very slow and initial server response time is very high upto 8 sec.
Note: I can not use autoscalling because my conten ...
I wanted to increase the MaxSpareServers
.
<IfModule mpm_prefork_module>
MaxSpareServers 20
</IfModule>
However, I get the below error while testing.
[root@server_1 conf.modules.d]# httpd -t
AH00526: Syntax error on line 26 of /etc/httpd/conf.modules.d/00-mpm.conf:
Invalid command 'MaxSpareServers', perhaps misspelled or defined by a module not included in the server configuration
Note: using apache
v2.4.6, PHP 7.2.24
I have deployed a PHP application on a CentOS 7 server using httpd. We have two environments (production and testing) and while testing is fast, production is slow.
After checking, it seems the main cause of slowdown on production is the fact that it takes up to 4 seconds to even start running the PHP scripts.
I placed a die;
statement at the very beginning o ...

Forgive the cross post from Stack Overflow but I realized this was probably the better location to ask.
I recently rebuilt my server on AWS, upgrading from Amazon Linux to Amazon Linux 2, which like Linux 1 appears to be a fork of CentOS, now CentOS 7. My vhost config remains the same as the previous build while all the other conf files are the newer default files. (Just FYI, not sure it has any ...
I have a HTTPD apache server which does LDAP authentication. When the user hits the URL http://localhost/, a browser prompt pops up asking for username and password.
- How are the username and password carried from browser to the HTTPD server ? Are they really transferred to server through network? If so, are they encrypted?
- Is browser prompt safer than entering the credentials directly in the sign-in p ...
Are Apache httpd Define
directive variables intended to be allowed to be overwritten?
For example,
Define SITE example1.com
<VirtualHost *:80>
ServerName ${SITE}
</VirtualHost>
Define SITE example2.com
<VirtualHost *:80>
ServerName ${SITE}
</VirtualHost>
It seems to be working, my SITE
variables are being overwritten, but I won't put it into production if it's no ...
I have an HTTPD server which does the LDAP Authentication in front of Tomcat server. My application resides in the Tomcat.
I am proxying the authenticated requests via AJP connector of tomcat to my application. Now I want to close the HTTP connector. But the manager app is not accessible (saying 403 error).
- When I am accessing http://localhost/my_app. Everything works fine.
- When I am accessing http://loc ...
My server is running a clean installed CentOS 8.5 minimal. Installed PHP, MySQL and httpd from the official repositories, SELinux is enforcing (default).
The following error happens and I have no clue why
[wheel@host ~]$ sudo setsebool -P httpd_can_network_connect on
libsepol.context_from_record: type cloud_what_var_cache_t is not defined
libsepol.context_from_record: could not create context structur ...
I tried searching around and everything gives me completely different answers
I'm comparing nginx and a proprietary server my boss wants to use. We're trying to figure out if it's a lot slower or roughly the same. Both are http servers (we don't care about https unfortunately but I'd like to check for that too)
I suspect we'll want to know number of simultaneous connections (how many can make a requ ...
I'm using Apache in the front as web server and running python flask application at the back end and they communicate using Unix socket as mentioned in the link below for mod_proxy_uwsgi module and i have loaded both mod_proxy and mod_proxy_uwsgi as suggested https://uwsgi-docs.readthedocs.io/en/latest/Apache.html
httpd/bin/apachectl -S
VirtualHost configuration:
*:2020 host-rh7-1 ...

My current httpd deployment setup involves generating new configuration files, relinking the config directory, then reloading the apache service. This process works fine for most of my hosts, however on of my proxy hosts, the httpd service will quit after issuing a reload.
Example:
/config/aaaa/*.conf
/config/bbbb/*.conf
/config/active -> /config/aaaa
And in my main httpd.conf file,
require /conf ...

I am trying to setup an apache website for SSL with a self-signed cert. I setup the vhost
and everything looks ok to me. But the site is not coming up and on the server itself port 443
is not listening.
Website: https://beta.jokefire.com
VHOST config:
<VirtualHost *:443>
SSLEngine On
SSLCertificateFile /etc/pki/tls/certs/beta.jokefire.com.crt
SSLCertificateKeyFile /etc/pki/tls/private ...
I have setup a PXE server with a local HTTPD server to host the ISO files
the config looks like vi /etc/httpd/conf.d/pxeboot.conf
Alias /centos-st8 /var/pxe/centos-st8
<Directory /var/pxe/centos-st8>
Options Indexes FollowSymLinks
# access permission
Require ip 127.0.0.1 192.168.0.0/24
</Directory>
If I then mount the ISO to /var/pxe/centos-st8, everything works as expected.
I'm a bit stumped. I have a server here, where a python (2) script is called through an url via apache 2.2.
For example http://blabla.com/script.py?manyarguments
I got some reports that often the connection has to be restarted until it works. So I checked the script and the httpd service. I added a line to the script to create a custom file as soon as it starts. So only calling the script should ...

I have a server with Apache 2.4.37 default install running on CentOS 8 x64. My hardware is:
Intel(R) Xeon(R) CPU E5-2650 0 @ 2.00GHz, 16 cores 32GB of memory ram 1TB SSD
In /var/log/httpd/error_log i have too much records:
[mpm_event:error] [pid 203001:tid 139981493594432] AH03490: scoreboard is full, not at MaxRequestWorkers.Increase ServerLimit.
I can see that Apache has requests denied when thi ...
I've done this and other attempts, but not working for me:
<IfModule mod_ssl.c>
<VirtualHost *:443>
...
setEnvIf Request_URI "refresh.*" dontlog
CustomLog /home/alan/logs/apache.log common env=!dontlog
...
</VirtualHost>
</IfModule>
this line in apache.log obs: the numbers after the refresh.php file, it's dynamic
123.123.123.123 - - [25/Sep/2021:06:54:41 -0300] "GET /test ...

I'm writing a CGI for httpd on CentOS 7, which create and write files on a directory under home. When I enable SELinux, it causes Internal Server Error. How can I setup SELinux?
The command sudo ausearch -m AVC,USER_AVC -ts recent
shows an error below.
time->Fri Sep 24 09:03:23 2021
type=PROCTITLE msg=audit(1632441803.684:10739412): proctitle=2F7573722F62696E2F707974686F6E330075706C6F61642E63676 ...

I have a an apache 2.4 configuration section that I use to handle the rare situation where a misconfigured apache box could serve php files as static plain text, and potentially give up credentials etc.
<IfModule !mod_php5.c>
<IfModule !mod_php7.c>
<Files "*.php">
Require all denied
</Files>
</IfModule>
</IfModule>
Those directives check for whet ...
I want to set firewall using iptables.
The server is operating httpd service (httpd) The OS is Centos7, and below information is after install iptables-services, and start iptables without modify anything.
[root@iptables ~]# iptables -nL --line-numbers
Chain INPUT (policy ACCEPT)
num target prot opt source destination
1 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 ...