Skip to main content

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
1 answer
53 views

Change item in Apache configuration file with `awk`

I am not an expert with awk tool. I must miss something obvious... What works so far: [root@checkmk ~]# awk '/^[[:blank:]]*SSLCertificateFile/ {gsub(/\/etc\//, "/not_etc/")} 1' \ /etc/httpd/...
user148942's user avatar
0 votes
0 answers
37 views

Apache httpd ErrorDocument directive not working

I'm on a RHEL 8 machine and use Apache httpd to display severel vHosts. I want to redirect all requests to a maintenance page when error code 503 is returned. My vHost configuration looks like this: &...
user23705068's user avatar
0 votes
0 answers
37 views

Apache Configuration

I am sure you may have encountered this issue. I have a server with jira, bitbucket and confluence configured on the same server. As the bitbucket is moved to linux serer i am wondering how can I ...
om joshi's user avatar
0 votes
1 answer
97 views

Apache referrer based reverse proxy path rewrite

I have a virtualhost that is a reverse proxy based on a path param "xmg" <VirtualHost *:443> ServerAlias some.example SSL... ProxyPass /xmg http://localhost:5553/ ...
user22866's user avatar
  • 151
0 votes
0 answers
43 views

Convert auth config from apache http server 2.2 to apache 2.4

I have the following apache 2.2 configuration and need to transform it to apache 2.4. <Location /> Order Deny,Allow Deny From Env=TEST Allow From Env=LOCAL Allow ...
trikelef's user avatar
  • 528
0 votes
1 answer
382 views

Need to allow only specific file extensions via Apache config

I'm struggling with allowing only specific file extensions via Apache (2.4.58). I'm doing this in httpd.conf. The problem is if I deny all files at first either like that: <Files *> Require ...
Gino Pane's user avatar
  • 101
2 votes
0 answers
246 views

Default <files ".ht*"> doesn't work, but <files '^.ht'> does

I was able to download my .htaccess file despite httpd.conf contains the following lines. <Files ".ht*"> Require all denied </Files> When I changed it to this, it works as ...
syntxerr's user avatar
0 votes
0 answers
112 views

/~ URL pages will not load, but full path /.../..../ will load - security issu

I am pretty new to Apache - New sys admin that inherited a broken server and I've been slowly making it work. We have the default directory that is hosting staff webpages and is working normally. The ...
Talenus's user avatar
0 votes
0 answers
160 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/...
Robert S's user avatar
  • 123
0 votes
0 answers
141 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
1 vote
1 answer
81 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 ...
Robert S's user avatar
  • 123
0 votes
2 answers
211 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 ...
deconstruct's user avatar
0 votes
2 answers
722 views

Apache 2.4 Redirect all to index.php

OK, first let me apologize if this question has been asked before. I did a search but didn't immediately find something suitable. I've been looking at the Apache docs but just cannot get this rewrite ...
Paul Allsopp's user avatar
0 votes
0 answers
92 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
130 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
1 vote
2 answers
475 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
175 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
314 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
852 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
459 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
468 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
299 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
130 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
3k 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
  • 123
0 votes
1 answer
133 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
1 vote
1 answer
142 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
  • 133
1 vote
1 answer
661 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
467 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
637 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
3 answers
1k 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
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
2 answers
2k 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
157 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
304 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
907 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
1k 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
1k 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
1 answer
392 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,436
0 votes
0 answers
976 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
70 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
97 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
68 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
1k 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
388 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
162 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
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
47 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
  • 109
0 votes
1 answer
163 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

1
2 3 4 5
13