Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
15 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:...
user avatar
0 votes
2 answers
24 views

Apache Proxypass redirects "localhost:port" as url string instead of local service of the port

Environment Server version: Apache/2.4.6 (CentOS) I have two servers which are almost duplicates. aaa.com. and bbb.com. They have almost same Apache rulesets. aaa.com. config <Location "/...
user avatar
1 vote
1 answer
17 views

Setting Apache header with conditions of excluding paths/directorys / server ips

I use a WordPress plugin called Duplicator Pro and the best way of installing with their installers is to use the servers IP rather than the domain because that way it autofills & conects to the ...
user avatar
  • 139
0 votes
0 answers
15 views

Apache 2.4 block all directories in root except for two specified

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 ...
user avatar
1 vote
0 answers
26 views

Conditional directives based on User-Agent with Apache 2.2.x?

I want to implement something like the following in our Apache httpd configuration: <If "%{HTTP_USER_AGENT} !~ /something/"> RemoveEncoding .gz .tgz AddType ...
user avatar
  • 111
0 votes
0 answers
40 views

authz_core:error Apache HTTPD RHEL7 client denied by server configuration

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] ...
user avatar
0 votes
0 answers
13 views

Redirect root / to proxy alias multiple subdomains [duplicate]

So I have been trying and failing at re-write conditions for a site that multiple subdomains for its site The gist is that each market must direct and display code differently do to regulations so ...
user avatar
  • 1
0 votes
0 answers
15 views

Apache using an expression in the mod_ext_filter module

I need to configure an apache reverse proxy to return a js script on each page. For that, I use a perl script that injects the javascript to the pages. To do this, I used the following directive: ...
user avatar
0 votes
0 answers
13 views

Default Apache Named VirtualHost when Visiting by IP

I originally had the following httpd.conf setup: <VirualHost *:80> ServerName MainDomain.com ServerAlias Alternate1.com Alternate2.com etc... DocumentRoot /var/www/MainSite ... ... </...
user avatar
0 votes
1 answer
97 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 ...
user avatar
0 votes
1 answer
14 views

different configurations files to apache2?

I'm pretty new to this, and reading a lot online, but what configuration is right? in apache2, some are talking about httpd.conf, and have all configuration in one file. my installation have 2 ...
user avatar
0 votes
1 answer
33 views

Unable to change "MaxSpareServers"?

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]# ...
user avatar
0 votes
0 answers
39 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> ...
user avatar
  • 1,374
0 votes
0 answers
43 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 ...
user avatar
  • 267
0 votes
0 answers
447 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 ...
user avatar
0 votes
0 answers
22 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 ...
user avatar
1 vote
0 answers
26 views

WordPress Date Archives not working in Nginx

WordPress installed in a subdirectory: domain.com/folder WordPress Permalink Settings: domain.com/folder/%postname% Referencing the WordPress Nginx support article, I added the following to my nginx ...
user avatar
  • 11
0 votes
0 answers
366 views

Attempting to mount Webdav drive to Windows gives "The folder you entered does not appear to be valid. Please choose another"

I have a Linux based httpd server setup with AD authentication that's working just fine for downloads. Users go to the website and are challenged for credentials. If you belong to a certain group ...
user avatar
0 votes
1 answer
37 views

How can I show the subdirectory of a server as an index based on domain used to connect to it?

I have 2 domains running in the same directory off the same IP (Via a CNAME record in each's DNS) the directory shows this in the apache index: index of / domainOne.com/ domainTwo.com/ This is shown ...
user avatar
0 votes
1 answer
210 views

HTTPD LDAP Authentication not working

First time trying to do this and I'm completely lost. I have a Oracle Linux 7.9 server that has a directory that needs to be shared to users via HTTP so that they can download files to send out to ...
user avatar
0 votes
0 answers
37 views

Apache, how to make an if condition based on conf setting value?

In Apache 2.4 you can use <IfModule> to know if a module is loaded. You can use <If "condition"> to test against http request values or environment variables. But how can you ...
user avatar
0 votes
0 answers
43 views

Apache Locationmatch setenvif

I know what I have is not correct and I need guidance. I am trying to confirm our Spanish URI path(es) which I think is correct and then do validation on the language header is(es) for Spanish. If it ...
user avatar
1 vote
0 answers
96 views

Apache 2.4 and Reverse proxy - not redirecting when using VirtualHost

I'm running Apache 2.4 on AWS Linux as httpd. I've a single domain, and all requests are directed via /conf/httpd.conf using Listen: 80 and DocumentRoot "/var/www/html". My current domain ...
user avatar
  • 111
0 votes
1 answer
43 views

How to rewrite urls using ProxyHTMLURLMap?

My urls are in this form /sites/site-name/Subpath-2/page-name.page /sites/site-name/Subpath-3/Subpath-4/index.page And this should be rewritten as /sitename/subpath/pagename (the extention .page is ...
user avatar
0 votes
1 answer
1k 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 ...
user avatar
0 votes
1 answer
40 views

Some questions about httpd log

First question: why there are two error log files? One is /var/www/mywebsite/error.log, which is specified in <VirtualHost> with the ErrorLog instruction. The other is /var/log/httpd/error_log. ...
user avatar
  • 69
0 votes
1 answer
38 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 ...
user avatar
  • 101
0 votes
0 answers
14 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 ...
user avatar
2 votes
1 answer
40 views

How to create redirection from two domains in one VirtualHost directive in Apache?

I want users visiting either of napiwki.kontestacja.com and napiwek.kontestacja.com to be redirected to the same address. I'm using the following fragment in httpd.conf: <VirtualHost *> ...
user avatar
  • 133
0 votes
0 answers
68 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 ...
user avatar
0 votes
1 answer
498 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: ...
user avatar
3 votes
2 answers
601 views

I have a rewrite in an apache httpd conf file, that breaks certbot. Is there a way to change it so that it doesn't?

I have a subdomain set up in Apache httpd, that is front-ending for a Tomcat server, with the httpd server secured by Let's Encrypt. If I have the following rewrite active in the conf file, then ...
user avatar
0 votes
1 answer
154 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 ...
user avatar
0 votes
0 answers
74 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, ...
user avatar
0 votes
0 answers
47 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 ...
user avatar
  • 111
0 votes
1 answer
672 views

Lightsail LAMP - Virtual Hosts stopped working after adding SSL

After hours and hours of efforts on research, I'm posting this. I'm trying to add a domain and its sub-domain on a single static IP created in LAMP instance in Amazon Lightsail, and add Let's Encrypt ...
user avatar
0 votes
0 answers
304 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.
user avatar
2 votes
1 answer
201 views

How can I apply HSTS header to all vhosts over 443 in Apache

I'm looking to add the HSTS header in Apache... # HSTS / Header Strict Transport Security Header always set Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" ... but ...
user avatar
  • 445
1 vote
2 answers
334 views

Apache2 - if page not found it gets served from another domain

I am facing a strange behavior with my main host IP and the served virtual hosts, basically I have the following: |- 148.x.x.x /var/www/html/public_html |- domain01.com /var/www/...
user avatar
0 votes
2 answers
596 views

port redirect not working for https apache2

I am trying to configure apache2 on aws lightsail instance. the instance was default setup for aws wordpress + aws linux. I have a node.js server running on port 5000 on this instance. the apache ...
user avatar
1 vote
1 answer
715 views

Apache mod_rewrite with Redirect Dropping Authorization Header

I have some Apache mod_rewrite rules set up to redirect Maven deploys from one url/server to another. We're in the process of migrating from Nexus to Artifactory and need these redirects set up so ...
user avatar
0 votes
1 answer
168 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 ...
user avatar
0 votes
1 answer
276 views

How to get mod_rewrite specific log messages in Windows Server and which file do I need to get?

I have an issue on getting mod_rewrite specific log. I found this on a website and with help from a friend I managed to get this to run in Windows Server Powershell. Below is the command line: Get-...
user avatar
  • 37
0 votes
1 answer
427 views

How to use httpd (https/ssl) as proxy server for tomcat

I have installed httpd and tomcat on my server but somehow I'm not able to connect them. <VirtualHost *:80> ServerName www.harshrathod.dev ServerAlias harshrathod.dev ...
user avatar
1 vote
1 answer
3k views

Is it possible to set ServerName with an environment variable in Apache?

How can I set the ServerName directive in Apache to the environment variable HTTP_HOST I have tried: ServerName %{HTTP_HOST} #or ServerName ${HTTP_HOST} or expr=%{HTTPS} Define server_name %{...
user avatar
0 votes
1 answer
445 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....
user avatar
  • 228
0 votes
1 answer
154 views

limit Apache HTTPD to one client IP address

When an Apache HTTPD is used as a load balancer, is it possible to configure it on a way that all the requests are rejected except those coming from a specific host? What directive should be used?
user avatar
  • 111
1 vote
2 answers
5k views

Is it correct to define two listen (80 and 443) under same nginx server?

Is it correct to define both listen (80 and 443) under same server {} like this ? The other method would be to define two separate server{} for each port which I know would be OK. server { ...
user avatar
  • 987
0 votes
1 answer
23 views

Redirect from directory to other server works for http but not for https

I have problem with HTTPD redirection. I need to redirect directory /as/ to another host, with all parameters that are passed trough. I have below configuration in conf file, and it only works for ...
user avatar
  • 13
1 vote
0 answers
193 views

How to escape dollar sign in Apache conf file

I am having a problem with Apache 2.2 (httpd) conf files. I have it hosted on RHEL, and we have ldap URL which contains "$Customer" in the memberOf filter. Due to that, normal placement of ldap URL in ...
user avatar
  • 13

1
2 3 4 5
12