Questions tagged [httpd.conf]

httpd.conf is a typical name for a web server configuration file. Historically this is the main Apache configuration file. It is also the configuration file for OpenBSD httpd.

145 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0 votes
0 answers
113 views

How do I set the timeout for the static health check of a Balancer Member of an Apache reverse proxy

I am trying to configure a reverse proxy. I currently have <Proxy balancer://myset> BalancerMember http://IP1:80 retry=4 BalancerMember http://IP1:80 Balancermember http://IP3:80 ...
Thomas Stokes's user avatar
0 votes
0 answers
62 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....
el sparrow's user avatar
0 votes
0 answers
106 views

SSPI, Treat wrong credentials as anonymous user

I'm running apache 2.4 with xampp, and so far my sspi works well with mod_authnz_sspi. I would like to accept all users, but get their name in $_SERVER['REMOTE_USER'] if they are in my active ...
Neil's user avatar
  • 101
0 votes
0 answers
274 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] [...
MrPython's user avatar
0 votes
0 answers
267 views

AlmaLinux HTTPD will not recognize the error with .htaccess

Product version: Plesk Obsidian 18.0.47.5 OS version: AlmaLinux 8.7 x86_64 The problem is Apache / HTTPD would not recognize to error its .htaccess from when editing the file at AllowOverride None to ...
Saya Kisaragi's user avatar
0 votes
0 answers
667 views

What is the correct way to enable HTTPS on apache httpd VirtualHost, given a .pem file and a .key file?

I need to get https enabled on a webserver (RHEL 7.9, httpd 2.4.6). We were provided a pem file, with the following format: -----BEGIN CERTIFICATE----- // -----END CERTIFICATE----- -----BEGIN ...
demiglace's user avatar
  • 101
0 votes
1 answer
406 views

Alias in apache httpd.conf

I am trying to serve robots.txt on an existing https site being served via reverse proxy on an apache windows server. Here is what I added to httpd.conf file however this is not working. What am I ...
desiguy's user avatar
  • 101
0 votes
1 answer
244 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 ...
CatByte-io's user avatar
0 votes
1 answer
124 views

How to Enable multiple URL's with mTLS in place

Mine is a web server i need multiple URL's of the server enabled with mTLS in place. This is my code. <IfModule ssl_module> Header set Cache-Control "no-store" Header always set Strict-...
Hanumesh Desai's user avatar
0 votes
1 answer
421 views

Systemctl cannot access additional config files for httpd

I have a freshly set up RHEL 8.6 with httpd installed (yum install httpd). In /etc/httpd/conf/httpd.conf additional configs are included on a mounted NFS share: IncludeOptional /cat/soft/apache/...
Ralf L.'s user avatar
0 votes
1 answer
6k views

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

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:...
fatherazrael's user avatar
0 votes
1 answer
851 views

Apache server is very slow for high traffic

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 ...
Muhammad Shafiq's user avatar
0 votes
1 answer
341 views

Are Apache Define directive variables allowed to be overwritten?

Are Apache httpd Define directive variables intended to be allowed to be overwritten? For example, Define SITE example1.com <VirtualHost *:80> ServerName ${SITE} </VirtualHost> ...
Jeff's user avatar
  • 1,426
0 votes
0 answers
905 views

Apache SSL config not listening on 443

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 ...
user99201's user avatar
  • 307
0 votes
0 answers
2k views

PATCH request returns 404, POST and GET work

I'm working on a web application that interacts with a custom REST API. It's basically a table of data that's updated through the application. I'm trying to use the PATCH method for the updates, but ...
Michael Dandini's user avatar
0 votes
0 answers
54 views

Access logs show +210k mentions of localhost IP as origin of request

I have a CentOS 7 server, with 5-6 domains (one being the main domain, the others subdomains). Ever since installing Lets Encrypt and handling the redirections in httpd-vhost.conf, the access log has ...
FiddlingAway's user avatar
0 votes
1 answer
3k views

How to add a custom OpenSSL engine with OpenSSL and use from apache server?

I have a custom-built OpenSSL engine. I'm trying to make changes to openssl.cnf to load this engine automatically. My ultimate goal is to use this engine for Apache mod-ssl. Apache mod_ssl to use ...
user45698746's user avatar
0 votes
1 answer
161 views

How to match domain by external file and create an alias?

Using Apache. I have a txt file of domains that I want to use for mapping directory aliases. But I can't figure it out. The txt-file looks like this: example.com folder1 anotherexample.com folder2 ...
tim's user avatar
  • 101
0 votes
0 answers
18 views

Unable to Determine Request Header Limiter

I'm new to using apache and working on a company product I've been hit with a 405 error with a PUT request. Looking at methods of limiting request headers - it appears this can only be done using ...
Steveguile's user avatar
0 votes
0 answers
103 views

Subdomain suddenly stopped working on Apache

We have a server on CentOS 7.4 which runs multiple websites and subdomains. A domain say xyz.example.com is pointing to xyz folder in html root which is working since last 4 years and suddenly stopped ...
Nishant Solanki's user avatar
0 votes
1 answer
1k views

Apache SSL error : Unable to read server certificate from file

I am getting an Apache error while server startup. The error reads: [error] Init: Unable to read server certificate from file /etc/pki/tls/certs/ca-bundle.trust.crt [error] SSL Library Error: ...
Mohit Kanojia's user avatar
0 votes
1 answer
543 views

How can I connect My Domain and Spring-boot project?

my env : Linux, maven, AWS EC2, Spring boot I can see the main screen of the project when I connect to the Elastic IP of EC2. However, when I try to connect to the purchased .dev domain, I get an 403 ...
코드짜개's user avatar
0 votes
0 answers
184 views

Should I increase MaxSpareServer?

Recently we have surfered a 2 minutes downtime in one Apache Server 2.4. There is not any significant error in error_log like "Max server Limit reached" and neither in acces_log. Moreover, ...
Pablo Luna's user avatar
0 votes
0 answers
108 views

httpd don't find image with special characters

I have a wordpress site and when I upload image with french name like this (sécurité) my server don't find the image and the brower return my a 404 erreur. But the image is on the server . I try a lot ...
john's user avatar
  • 111
0 votes
0 answers
627 views

How to log upstream IP in Apache HTTP server?

I'm using Apache Http server as a reverse proxy. I am interested in logging the upstream server IP in access and error logs. I'm looking for something like upstream_addr of Nginx web server.
kgoutham93's user avatar
0 votes
1 answer
372 views

apachectl reports that it's in worker mode, however the configuration seems to be set to prefork

I'm using a VPS running Apache2.4 and CentOS7. I'm hitting some threading issues and would like to try to run Apache in prefork mode. If I run apachectl -V to check which mode I'm in, I get this ...
Jake Browning's user avatar
0 votes
1 answer
854 views

How to implement subdomains for users in Apache

Im building a platform, where the main domain is example.com. The server is using CentOS 7 with Apache 2. My users' URL will be username.example.com, which actually loads the contents from example....
Andres SK's user avatar
  • 238
0 votes
0 answers
356 views

New line in apache rewrite rule

Using RewriteMap in Apache 2.4 for some variable conversion referring this. Everything seems fine. Able to test the external program alone and it gives the expected output. As per the link, the map ...
Anitha.R's user avatar
  • 101
0 votes
1 answer
324 views

Kerberos + LDAP in Apache httpd - ObjectSID

I am doing LDAP authorization along with Kerberos authentication in httpd 2.4. I am retrieving objectSID from ldap and found that to be not in readable format. Referring this and this, have used a ...
Anitha.R's user avatar
  • 101
0 votes
1 answer
227 views

Setting value via variable in apache httpd.conf

I have the following entry in my apache config file: <LocationMatch "/hls-vod/(?<id>[0-9][0-9])/(.*)"> HLSHttpStreamingEnabled true HLSMediaFileDuration 8000 HttpStreamingContentPath "$...
Brad's user avatar
  • 619
0 votes
1 answer
380 views

Proxy directory to another url with httpd proxy

Currently Im trying to forward a directory in my domain to domain with port. The reason I'm trying to do this is because my server is apache but I need to access just one node file. I'm posting some ...
FabricioG's user avatar
  • 167
0 votes
1 answer
664 views

Apache24u / phpinfo: still showing old version

Ive upgraded the server from default apache 2.4.6 to the apache24u (https://centos.pkgs.org/7/ius-x86_64/httpd24u-2.4.34-1.ius.centos7.x86_64.rpm.html). when I check it via shell, I get the correct ...
Raheel Hasan's user avatar
0 votes
1 answer
376 views

httpd.conf redirect / to 8080 and redirect /index.html to /app/index.html

How can create this conf on httpd.conf: user access http://site and see content from http://site:8080 but when they access http://site/index.html, it should redirect to http://site/app/index.html ...
ricardo's user avatar
  • 121
0 votes
0 answers
131 views

how to make HTTP/2 server push work with all directories in Apache

How do I make server push header links work with all websites/apps regardless of where the file is located? Header add Link "</main.css>; rel=preload; as=style" Header add Link "</main....
velvetInk's user avatar
  • 103
0 votes
1 answer
2k views

Apache httpd configuration: sysconfig/apache2 and apache2/httpd.conf

I'm new to Apache and Linux, and I'm reading through httpd.conf. I've come to a line in default-server.conf where it says: # UserDir: The name of the directory that is appended onto a user's home ...
watery's user avatar
  • 163
0 votes
1 answer
594 views

reverseproxy to connect multiple backened server from single virtual host

I have a apache http server that acts as proxy to connect to backened app servers. e.g. MachineA(https) -> MachineB(reverseproxy) -> MachineCn(App) Here MachineA(Public_lb) port 9002 is mapped with ...
kumarprd's user avatar
  • 101
0 votes
2 answers
985 views

Which HTTP header maps to Apache's %u log format token?

We have an httpd.conf that contains the following log format and uses the %u token for logging the remote user: LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %D" combined ...
dokaspar's user avatar
  • 185
0 votes
1 answer
3k views

Reverse proxy for wildcard domains - apache linux

I am trying to setup reverse proxy for wildcard domain, but my configuration don't simply work after I login to the application. This server is running Apache aka httpd service with port 80, 443 on ...
Vijay's user avatar
  • 1
0 votes
1 answer
412 views

Apache 2.2 conf file multiple directives

I have an infrastructure on AWS, and yesterday, it presented intermittence with the message that CloudFront attempted to establish a connection with the origin, but was unable to. Apparently, but I ...
Hernán's user avatar
  • 113
0 votes
0 answers
379 views

Proxy protocol error in apache logs of my virtaul host

I have a two virtual hosts on three linux servers behind an ELB. I have enabled proxy protocol for my ELB so that the requests for ssl are terminated on instance rather than on ELB. I am seeing ...
MichealMills's user avatar
0 votes
0 answers
1k views

Configuring a default blank Apache VirtualHost on port 443 isn't working

I want to create a default blank page VirtualHost for my server so that anyone who attempts to browse directly to the IP address (e.g. https://10.123.123.123/) is shown a blank page. I've done this ...
WackGet's user avatar
  • 227
0 votes
1 answer
125 views

Why isn't Apache listening on additional ports?

I am running the default (what I think is Apple's version, not Homebrew / Fink / MacPorts) Apache under OSX Sierra. In configuring the computer for potential use as a server where it may or may not ...
Christos Hayward's user avatar
0 votes
1 answer
3k views

Is there any point in having proxy config instead a match-all Location?

I have inherited a system and there are a few things that no one knows why there are how there are anymore. In the httpd configuration, I've come across a few occurrences of Location directives that ...
garci560's user avatar
  • 101
0 votes
1 answer
3k views

Apache not starting; httpd not working

I have apache installed on RHEL 7.2 and here is what I see upon starting apache as a root user: [root@exampledomain conf]# sudo apachectl start Job for httpd.service failed because the control ...
Tan's user avatar
  • 139
0 votes
0 answers
8k views

How to prevent ERR_CONNECTION_REFUSED errors following restart of Apache

I am running Apache 2.2.15. I have installed a Comodo SSL Cert. I have the virtual host directives shown in the code snippet at the bottom of this post. When I restart Apache via apachectl restart I ...
H. Ferrence's user avatar
0 votes
1 answer
393 views

mime fonts problems updating Apache from 2.2 to 2.4.25

After updating my Apache Windows server, my website is not showing correctly fonts (eot, svg, ttf, woff). I have updated from 2.2 to 2.4.25 adding a SSL certificate also. Everything is running well ...
Raul Taboraz's user avatar
0 votes
1 answer
2k views

Import/include external VirtualHost files from directory to be used inside Apache's httpd.conf

Would there be a solution to import all files with virtual host records in to httpd.conf ? For single file this solution works fine: include domain1.conf include domain2.conf include domain3.conf ...
user avatar
0 votes
1 answer
577 views

Apache httpd mod-auth-form giving error 405

I have been trying to setup a new website, and I have now ran into a major problem. When I log in to the page it simply gives me the following error when I enter the correct credentials: Method Not ...
Oskar Stenberg's user avatar
0 votes
0 answers
695 views

Apache alias not going to work properly

I have two NIC on my CentOS 7 system. One is private and second is public. I have following configurations of each virtual host Virtual host for private IP ServerName localhost.com ...
Hafiz Muhammad Shafiq's user avatar
0 votes
1 answer
1k views

Apache configuration - Why I get redirect loop?

I have Apache server and JBoos server with my application on my local computer. This is my Apache configuration: httpd.conf ServerRoot "C:/opt/Apache" Listen 80 LoadModule actions_module modules/...
kuba44's user avatar
  • 101