Questions tagged [httpd]
httpd is a typical process name of a web server.
1,450
questions
0
votes
1
answer
207
views
AH02565: Certificate and private key from <cert> and <private key> do not match
I'm trying to update some expired SSL certificates internally on some Ubuntu and Redhat servers. I have an internal certificate authority for this (ADCS). These are the steps I'm taking:
Generate CSR ...
0
votes
0
answers
41
views
What is the equivalent of /etc/apache2/envvars in EL-based systems?
In Debian-based systems, it's possible to source a bash script in /etc/apache2/envvars to dynamically set an environment variable. Here is an example:
Create a file (/etc/profile.d/myenv.sh) with the ...
1
vote
3
answers
96
views
apache2 rewrite is working, but doesn´t keep URL
I was looking around google for some days now and can´t get it to work.
With apache rewrite: domain.com > test.com/test (but keep the URL domain.com in browser)
The whole SSL Config:
<...
0
votes
0
answers
24
views
Can I set the default value of the cookie set by mod_session?
(This question pertains to a containerized version of the httpd server version 2.4.57.)
I am required to log visitor activity by a session token using mod_session (see: https://www.stigviewer.com/stig/...
1
vote
1
answer
44
views
Why is mod_usertrack not setting cookie?
I am running httpd:2.4.57 in docker. I have not figured out how to set or see the cookie set by mod_usertrack. I checked both browsers to be sure cookies were allowed.
I verified the mod_usertrack.so ...
0
votes
1
answer
49
views
Apache rewrite any uri to index.html but existing files
My front-end project is based on 1 file: frontend/index.html
It means that every request like /contact, /about, etc should be responded by index.html file.
I was thought I can use these lines in my ...
1
vote
1
answer
155
views
How to enable executing php files in Fedora Apache?
I installed httpd and php v8.2.11 on my Linux Fedora.
But Apache can't execute .php files. (Responses "Access denied.")
I tried to use chmod shell command to enable executing and add AddType ...
0
votes
0
answers
34
views
Azure RHEL 8 VM - Apache 2.4 Package Availabilty
I've got a RHEL 8.8 instance in Azure. This instance will replace our current RHEL 7.9 instance running Apache 2.4.34. The RHEL 7.9 instance has the following httpd package installed: httpd24-httpd. ...
1
vote
1
answer
97
views
Use relative parent directory links in Apache httpd mod_autoindex
With Apache httpd mod_autoindex, the generated index pages use relative (without the leading slash) links for individual entries, for example:
<a href="failure/">failure/</a>
...
0
votes
2
answers
78
views
Apache Httpd: Logging Access for Non-privileged Users
I’m wondering if it is common for Apache HTTPD admins to allow read access or read access to copies of /var/log/httpd/${vhost}_error_log?
I administer an Apache web server for a University CS ...
0
votes
1
answer
69
views
Cannot Start Apache2 - httpd bound to port 80
I have a fresh install of Ubuntu Server 22.04, on which I installed apache2 via apt-get install
After the installation I got the following error whenever I tried to start Apache2:
(98)Address already ...
0
votes
0
answers
52
views
Apache Centos mutiple instances and virtual hosts
I installed apache on centos and added two virtual hosts (server1.com and server2.com ):
server1.conf
Listen 443 https
<VirtualHost *:443>
DocumentRoot /opt/server1/
ServerName server1....
0
votes
0
answers
26
views
Replaced certificate and now Apache server will not start up
So we are running an apache server on CentOS7 and the certificate for one of our sites expired. We replaced the certificate with the new one we received from DigiCert and went to restart the apache ...
0
votes
0
answers
170
views
(13)Permission denied: AH02611: create: apr_shm_create(/log/slotmem-shm-p24af65f1_0.shm) failed
I updated httpd to version 2.4.57. I compiled httpd on my own and when I start httpd within a chroot environment, I am getting this error message in the logs:
[Thu Jun 22 14:33:27.319378 2023] [...
0
votes
0
answers
20
views
Large consumption of resources when stopping Apache
During the stop of the apache service, the httpd -prefork processes take 100% load on all cores and take up all available memory, as a result of which the oom killer is triggered.
Stop command:
...
0
votes
0
answers
27
views
mod_jk - 2 JkMount Directives with the same URL but different workers
I have a question. How would the following mod_jk directives be interpreted?
<VirtualHost *:443>
ServerName backend.example.com
...
JkMount /api/prod worker1
JkMount /api/prod/* ...
1
vote
2
answers
253
views
Apache httpd cannot connect to Tomcat over Unix Domain Socket - SELinux denied
I have an Apache httpd v2.4.57 configured on Rocky9 to connect to Tomcat9 / Java17 over a unix domain socket.
SELinux kicks in and says denied, as follows:
type=AVC msg=audit(1685376249.480:134): avc: ...
0
votes
1
answer
62
views
Post Fedora Server upgrade to FC38, Apache httpd server no longer honors Lets Encrypt keys
The environment has twins of virtually everything, including two web server / firewall / gateway systems, and they were getting long-in-the-tooth version wise, so I decided to upgrade from Fedora ...
0
votes
1
answer
54
views
SVN running on RHEL 8 Authentication issue
Good morning,
I support a subversion server running on rhel 8. The engineers check in/out software builds from a CentOS6 desktop. I need to add authentication to the SVN URL because it's wide open. ...
0
votes
1
answer
180
views
Amazon Linux 2023 HTTPD failed to start
I have an AWS instance which I use on demand, I was trying to boot it up and start apache but got this error which I have looked up and couldn't get anywhere near resolving or diagnosing it
The job ...
0
votes
0
answers
124
views
How to configure Lychee server? apache error 500
os AlmaLinux 9.1
Apache/2.4.53
PHP 8.2.4
try to install Lychee with postgreesql
my httpd.conf
ServerRoot "/etc/httpd"
Listen 0.0.0.0:80
Include conf.modules.d/*.conf
User apache
Group ...
0
votes
0
answers
111
views
Best practices to configure multiple websites managed by multiple users on Apache
I am setting up a RedHat server with an Apache service to host multiple Wordpress websites.
We work with a few different companies which develop those websites.
I'm having trouble with the access ...
0
votes
1
answer
41
views
Apache HTTP Server - 2.4.5* / Is it Possible to Use Cluster Scenario for WebLogic Server Installed On 2 Different Machines Using Apache HTTP Server?
There are 2 different scenarios.
Scenario-1:
Let's assume that WebLogic is installed on 2 different servers. Server IPs: 192.168.0.111 and 192.168.0.112. These servers are not clustered (ie each ...
0
votes
0
answers
884
views
How to determine why apache gracefully shut itself down?
I have apache httpd 2.4.6 running on RHEL 7.9
Yesterday the service was shut down, and the only information I am getting from /etc/httpd/error_log-DATE is from the last line of the file:
[mpm_prefork:...
1
vote
0
answers
140
views
SOAPUI What causes "error in msg parsing: xml was empty, didn't parse!"
Currently, I have a structure which takes a SOAP request, fires the request at a reverse proxy (a script written in Lua) which takes a copy of the SOAP request and then passes that to the webserver, ...
0
votes
1
answer
259
views
HTTPD + MPM_EVENT + PHP_FPM
I have created a docker container with the following
OS: Debian 11
WebServer: httpd2.4 (Enabled mpm_event)
Backend: PHP-FPM
Docker is running in EC2 and I have given 10GB RAM and 5CPU for the docker ...
0
votes
0
answers
77
views
I cannot get environment variable from apache
On a Centos 8, I added a SetEnv into my VirtualHost conf:
<VirtualHost *:XXXX>
Alias /static/ /opt/industrialisation/xxxx/xxxx/xxxx/
<Directory /opt/industrialisation/xxx/xxxx/>
...
0
votes
0
answers
481
views
Apache on OSX: "not running" and "already in use" for all processes?
OS: macOS Mojave 10.14.6
HTTP Server: Apache 2.4.55
When trying to restart apache server, I get "Address already in use..." message. Hm, so there must be a process that listens to that port, ...
0
votes
0
answers
190
views
selinux file context precendence, logrotate and httpd
UPDATE:
figured out the issue, its with my fcontext path expression
I have to use
semanage fcontext -a -t logrotate_tmp_t "/etc/httpd/logs(./*)?"
instead of
semanage fcontext -a -t ...
0
votes
2
answers
86
views
How do I configure httpd to host multiple websites on the same web server
Using RHEL7.9, httpd 2.4.6
I have three sites in my /var/www/html/:
/main
/site1
/site2
The httpd.conf DocumentRoot points to /main
Listen 80
ServerName example.com
DocumentRoot "/var/www/html/...
0
votes
1
answer
54
views
Apache httpd on a backup machine where hostname is not matching
I have to run an Apache httpd server on a backup machine, which is a CentOS. In this case, it is a WordPress multisite installation. Since it is a backup machine, the DNS server does not point to the ...
0
votes
0
answers
27
views
Redirection of only home page to 404 not working
What is needed is that https://cpc.dev.company.eu should redirected to 404 page, and all other like https://cpc.dev.company.eu/* and app1.dev.company.eu & app1.dev.company.eu/* should work as it ...
0
votes
1
answer
40
views
mod_proxy + mod_reqrite results in errors 502 or 502
I have working httpd config (reverse proxy) that forwards requests to proxy:
Listen 443 https
<VirtualHost *:443>
ServerName public-dns.example.org
ServerAlias internal-hostname....
-2
votes
1
answer
663
views
libphp.so is missing in the oracle linux 9, is there any alternative to let httpd handle php page? [duplicate]
I do find a lot similar problems on CentOS in this forum, and I tried to follow any suggestions mentioned in their answer, however, none solves my problem. Therefore I’m opening this question for ...
0
votes
0
answers
17
views
apache httpd is returning response code 415 as per access_log, How to get full input, with data and all the header values
My endpoint URL is working with sample data, and in Test environment.
In production, apache httpd is returning response code 415 as per access_log, How to get full input, with data and all the header ...
1
vote
2
answers
7k
views
Configuring PHP-FPM in Apache
I installed Apache/2.4.54, PHP72-FPM, PHP74-FPM and some other versions of PHP-FPM on Arch Linux.
Apparently there is some misconfiguration in httpd.conf, PHP can`t interpret anything and browser ...
0
votes
1
answer
225
views
Apache2 how to generate random string for subdomain
I want to issue a redirect to a new randomly generated subdomain name for every request I get. Below you can find my vhost configuration. I want to do a redirect towards a subdomain containing some ...
0
votes
0
answers
33
views
Apache ReverseProxy keeps redirecting to another virtual hosts
I have apache as a reverse proxy for Webmin (port 10000) backend. Both are on the same server. Here's my config file:
<VirtualHost *:*>
ProxyPreserveHost On
ServerName srvadm.****.com
...
0
votes
1
answer
174
views
Configuring Virtual Hosting Httpd - Fedora Server - 'sites-available and sites-enabled' vs 'conf.d/vhost.conf'
The current set-up for my web server is a 1GB nanode using Fedora37 as the distribution for the compute instance. For the web server I am using Httpd (Apache 2.4.54), and am now in the process of ...
0
votes
2
answers
138
views
ProxyPass not working alongside ProxyPassMatch
So at the moment I have a virtual host configured on my Oracle HTTP Server instance with a ProxyPass as such:
ProxyPass ^/test/home/ https://example.com/
ProxyPassMatch ^/test/home/(.*)$ https://...
0
votes
0
answers
14
views
Redirect to another website but keep the original URL [duplicate]
We have an Oracle HTTP Server 12.2.1.2 that is hosting everything under a URL which for this example we'll say it's xyz.com/home/test.
I have been tasked with being able to redirect users from the /...
0
votes
1
answer
153
views
Apache httpd low performance
I have an website which is running using httpd on Centos 7.
I have 8 cpus and 32 GB ram.
When we have more than 500-600 users in the same time on the website, the server response is getting higher. ...
0
votes
3
answers
50
views
Point domain to server without HTTPD
I have a VM on Oracle Cloud Free tier and have the dedicated IPv4. I installed MariaDB on this server.
I want to point the domain name (example.com) to that machine, in order to access the MariaDB ...
1
vote
1
answer
163
views
How can I locate the php script that issues outbound connections?
I have a server running httpd for several websites. Using the top command, I found many httpd processes exhaust memory. Using the netstat command, I found the httpd processes are connecting to an ...
4
votes
4
answers
2k
views
How can I see the httpd log for outbound connections?
The access log specified in httpd.conf for a website only shows the information for incoming connections. For outbound connections such as those issued by php file_get_contents function, how can I get ...
0
votes
1
answer
34
views
Having Trouble setting up 2 Virtual Hosts with SSL
Im trying to setup a second webserver on my machine however im running into problems with the virtual hosts and im not sure which file and what i should be changing.
I have 1 server running with SSL
...
0
votes
0
answers
89
views
Artifactory sends wrong reset password URL
When a user uses the "Forgot password", they are sent a URL to the reset-password page in Artifactory.
In our case the URL contains an extra /ui, like this
https://external-hostname/ui/ui/...
1
vote
0
answers
22
views
Redirect docroot for specific URI path by .htacess
Is it possible to redirect a specific URI path to a specific docroot within the original docroot using the .htaccess?
For example:
example.com > docroot
Where
example.com/path > docroot/subdir
0
votes
0
answers
438
views
Authentication Uses NTLM instead of Kerberos
We have transfered our site (httpd+nginx+php) from simple host with 3 containers to kuber cluster. And after that for some reason SSO has stopped working. Kerberos and samba configs are the same, AD ...
0
votes
1
answer
487
views
httpd: Connection attempts using mod_proxy:
On my debian 11 based mailserver I noticed some entries in my daily logs:
--------------------- httpd Begin ------------------------
Connection attempts using mod_proxy:
161.35.188.242 -> leakix....