Questions tagged as ['httpd']

httpd is a typical process name of a web server.
Score: 0
juanbits avatar
nginx and httpd. (99: Cannot assign requested address)
eg flag

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  ...

Score: 0
Apache HTTP Server: Timeout 10 Minutes (600s) in httpd.conf; but API timeout after 5 minutes everytime
pl flag

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 ...
Score: 1
user13947255 avatar
RewriteCond for APIKEY
ad flag

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 ...
Score: 0
samtech avatar
Httpd Directory read permissions only issue
us flag

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  ...

Score: 0
Apache 2.4 block all directories in root except for two specified
gn flag

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 ...
Score: 0
Centos Httpd logroate not compressing files
mx flag

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 ...
Score: 0
Apache httpd log url of outgoing redirects
sd flag

Is it possible with Apache Httpd to log all urls for outgoing http redirects?

This could help with http type open redirect vulnerability.

Score: 0
authz_core:error Apache HTTPD RHEL7 client denied by server configuration
ca flag

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 ...

Score: 0
I Chapman avatar
Rewrite url transparently in Apache
br flag

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 ...

Score: 1
Apache httpd worker crash (IUS httpd24u on Centos 7)
in flag

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 ...
Score: 0
How to set up multiple apache + php-fpm + mariadb service groups on a single server with per-group resource limits?
cn flag

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 ...

Score: 0
Muhammad Shafiq avatar
Apache server is very slow for high traffic
sa flag

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 ...

Score: 0
beat_it_987 avatar
Unable to change "MaxSpareServers"?
ru flag

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
Score: 0
QuestionAsker1995 avatar
Apache takes too long (+4s) to do anything (configtest, exec. PHP, etc)
cn flag

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 ...

Score: 2
systemctl restart httpd Failed to start The Apache HTTP Server httpd pid already running
cn flag

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  ...

Score: 1
Vinayak avatar
HTTPD server does LDAP authentication. How does the mechanism work?
ca flag

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 ...
Score: 0
Jeff avatar
Are Apache Define directive variables allowed to be overwritten?
dj flag

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 ...

Score: 0
Vinayak avatar
Tomcat with HTTPD front end. Manager app not accessible
ca flag

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 ...
Score: 0
CasualRascal avatar
What is the SELinux type cloud_what_var_cache_t?
cn flag

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 ...
Score: 0
Eric Stotch avatar
Stress test a server running on the local machine?
in flag

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 ...

Score: 0
Jai avatar
Unix socket communication with Apache 2.4.51 and Flask App using Uwsgi returning "404 Not Found"
io flag
Jai

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 ...
Score: 0
httpd quits after reload - slotmem-shm
co flag

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 ...
Score: 0
Apache SSL config not listening on 443
jp flag

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 ...
Score: 0
dranobob avatar
How to share ISO files over PXE without mounting?
in flag

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.

Score: 0
Arpton avatar
Python script called from url on apache 2.2 server is only sometimes executed
ng flag

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  ...

Score: 0
AH03490: scoreboard is full, not at MaxRequestWorkers.Increase ServerLimit
in flag

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 ...

Score: 0
alanvictorjp avatar
apache2, I can't suppress this line from apache logs
ne flag

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 ...
Score: 1
How to set SELinux to allow CGI script to create a file
ng flag

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 ...
Score: 1
configuring apache to not serve php files statically unless php-fpm is configured
ng flag
Tom

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 ...

Score: 1
Seung Hoon Paek avatar
Creating / Configuring Firewall using iptables
cn flag

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           ...