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
1 vote
1 answer
34 views

What determines the name of Apache PHP Handlers?

When configuring an Apache server to use a Handler to run PHP code, I'm familiar with adding a line similar to below in httpd.conf or .htaccess: AddHandler application/x-httpd-php81 .php This tells ...
frumious's user avatar
  • 123
1 vote
1 answer
28 views

httpd redirect one port number to another

We are trying to redirect requests on port 8555 to port 8443. In our httpd.conf file, we have the following: <VirtualHost *:8555> SSLEngine on # SSL configuration that is irrelevant to this ...
user1207177's user avatar
0 votes
0 answers
79 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
93 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
0 answers
23 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 ...
Rajsekar Reddy's user avatar
0 votes
0 answers
59 views

ClosedChannelException due to apache AJP

I am getting errors in prod splunk(not able to reproduce error in lower regions) which my senior believe is due to Apache AJP. Below are the errors - [31m10:53:39,465 ERROR [io.undertow.request] (...
ereh's user avatar
  • 1
0 votes
1 answer
173 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
1 vote
0 answers
176 views

Apache 2.4 "Require ip" not working for /server-status, /phpMyAdmin etc with VirtualHost directives added in httpd.conf

I recently changed using the Event MPM in my Apache 2.4 installation, alongside PHP-FPM and FastCGI proxy, I hope that wasn't the reason for my problem. I also started working with name-based ...
AkiEru's user avatar
  • 77
0 votes
1 answer
71 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
0 answers
13 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 /...
Ress's user avatar
  • 45
0 votes
1 answer
91 views

Amazon Linux 2 SSL setup with Godaddy subdomain Certificate

I have two sites site1.mydomain.com and site2.mydomain.com on a Amazon Linux 2 instance. I used a Loadbalancer and a godaddy certifcate with subdomains site1 and site2 but for cost reasons wanted to ...
pierre fro's user avatar
4 votes
4 answers
1k 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 ...
peter's user avatar
  • 83
0 votes
1 answer
52 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. Header set Cache-Control "no-store" Header always set Strict-Transport-Security max-age=31536000 ...
Hanumesh Desai's user avatar
0 votes
0 answers
50 views

Issue in showing Apache ErrorDocument based on HTTP_USER_AGENT and REMOTE_ADDR

I need to restrict access to application based on ip address and need to block displaying page if it is opened other than chrome. Now i can able to restrict ip, But if i put the browser checking ...
java_mechanic's user avatar
1 vote
1 answer
49 views

HTTPD different vhost & reverse proxy settings for subfolders on same host&port

Please, I have been trying to configure httpd with no luck. I need following behavior: if I access https://example.org/, https://example.org/anything/.../... -> I need proxy to localhost:8080 (...
tomas's user avatar
  • 121
0 votes
0 answers
57 views

How to use request variables in <IfFile>

Using a constant string in a statement works fine like this: Request with browser or curl: https://example.com/images/filename.jpeg In httpd.conf: <IfFile /var/www/example/images/filename.jpeg>...
jamacoe's user avatar
  • 173
0 votes
0 answers
334 views

Apachectl on macOS working despite error "AH00072: make_sock: could not bind to address", possibly due to duplicate httpd processes

My OS is macOS 12.5.1. I use Apache for local testing before uploading my files to the public web server. If I open a web browser to localhost, it finds the "It works!" page as expected. ...
Cowirrie's user avatar
  • 101
1 vote
1 answer
199 views

Why does my condition on %{REQUEST_METHOD} not appear to work in my apache .conf file

I was trying to whittle down the cases where the Access-Control-Allow-Origin is sent in a response to only some specific scenarios such as only for specific request methods. In this situation we ...
jpierson's user avatar
  • 241
0 votes
1 answer
217 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
1 vote
1 answer
340 views

403 Page recieved when accessing OpenBSD httpd page

I am writing a static webpage on an OpenBSD vm (here called example.com), and when I access the server with it's domain name over http I get httpd's 403 page, when I use telnet example.com 80 I get ...
CyberianTraveler's user avatar
1 vote
2 answers
899 views

Error 500, Are these Nginx and apache configs correct?

hope you can help. My setup: ubuntu 20.04 HestiaCP v1.6 From the Error log: 08:06:30 [error] 1197401#1197401: *11270 connect() failed (111: Connection refused) while connecting to upstream, client: 77....
Dave's user avatar
  • 19
0 votes
1 answer
3k 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
2 answers
1k 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 "/...
Lunartist's user avatar
  • 125
1 vote
1 answer
88 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 ...
Ryflex's user avatar
  • 139
2 votes
0 answers
160 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 ...
Ed Sabol's user avatar
  • 121
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 ...
Craig's user avatar
  • 1
0 votes
1 answer
607 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
370 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 ...
Adam Larsson's user avatar
0 votes
1 answer
365 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]# ...
beat_it_987's user avatar
0 votes
0 answers
186 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,416
0 votes
0 answers
546 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
  • 287
0 votes
0 answers
1k 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
34 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
1 vote
0 answers
41 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 ...
webdev's user avatar
  • 11
0 votes
1 answer
45 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 ...
Mister SirCode's user avatar
0 votes
1 answer
724 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 ...
SJWales's user avatar
1 vote
0 answers
306 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 ...
anakaine's user avatar
  • 111
0 votes
1 answer
117 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 ...
Gaurav-Reddy's user avatar
0 votes
1 answer
2k 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
46 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. ...
William's user avatar
  • 89
0 votes
1 answer
145 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
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 ...
Steveguile's user avatar
2 votes
1 answer
44 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 *> ...
ByteEater's user avatar
  • 133
0 votes
0 answers
93 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
897 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
3 votes
2 answers
1k 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 ...
hbquikcomjamesl's user avatar
0 votes
1 answer
380 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
150 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
81 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
1 answer
1k 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 ...
Yogesh Mistry's user avatar

1
2 3 4 5
13