Questions tagged [httpd.conf]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
14 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 ...
0
votes
1answer
69 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 ...
0
votes
1answer
32 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. ...
0
votes
1answer
17 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 ...
0
votes
0answers
11 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 ...
0
votes
0answers
11 views

Appachie httpd allowing certain subnets and denying everyone else

I can block IPs or subnets but I can not allow certain subnets. I can blcok with the following: SetEnvif X-Forwarded-For "2.212.4." DenyAccess SetEnvif X-Forwarded-For "1.1.1.1" ...
0
votes
0answers
12 views

Return a 405 response to any PUT request with Apache

How can I get Apache to return a 405 response when receiving a PUT request to a route handled by PHP? Currently it will return a 405 for static files but not for any routes handled by PHP. Here's an ...
2
votes
1answer
36 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 *> ...
0
votes
0answers
40 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 ...
0
votes
0answers
32 views

Flask apache logs

I created an app with flask and for the deployment and I used an apache webserver on a CentOS8. When I configure the app.conf file in my /etc/httpd/conf.d/ to work on port 80, the prints of my app are ...
0
votes
1answer
168 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: ...
2
votes
1answer
155 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 ...
0
votes
1answer
60 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 ...
0
votes
0answers
25 views

Authorization in httpd with two-way SSL

We are configuring httpd as a reverse proxy for our web application in order to support two-way SSL (using mod_ssl). The current /etc/httpd/conf/httpd.conf is as follows: ServerRoot "/etc/httpd&...
0
votes
0answers
30 views

Apache as reverse proxy for NGINX - SSL certificate exists only on NGINX

A network is configured like Internet --> Apache --> NGINX --> Application NGINX is storing HTTPS certificates and is on another server. Apache doesn't have an access to certificates. ...
0
votes
0answers
217 views

How to run multiple wsgi apps on same port on apache server?

I am responsible for setting up some internal flask applications. I have them running on a centos7 machine with apache httpd. At the moment, my users need to go to myserver.example.com/app1 for app1 ...
0
votes
0answers
32 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, ...
0
votes
0answers
16 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 ...
0
votes
1answer
298 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 ...
0
votes
0answers
28 views

How to configure apache web server to server more than 2000 TPS [duplicate]

I'm on Cent OS 7 and I have installed fresh apache(httpd) server. There is 16 GB memory installed in the server. I created a simple API in PHP at /var/www/html called testAPI.php. PHP code is as bolow....
0
votes
0answers
133 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.
1
vote
1answer
90 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 ...
0
votes
0answers
119 views

Using Apache LocationMatch to set header not working for websockets

I'm trying to set a response header on apache using the below LocationMatch: <LocationMatch "^/websocket"> Header set Strict-Transport-Security "max-age=86400; includeSubDomains" </...
0
votes
0answers
88 views

Getting error trying to feed SSL passphrase to apache

I've got scripts which restart apache so I've been trying to find a way to restart apache without it asking for the ssl passphrase as this means it won't restart in the script. The two solutions I ...
1
vote
2answers
140 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/...
0
votes
2answers
349 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 ...
0
votes
0answers
81 views

Firewalld blocking port 22:SSH

im currently trying to deploy my django app to a web server hosted by a RHEL-8 virtual machine. In doing so i am attempting to use HTTPD (apache). As such, i believe i have to utilize firewalld to ...
1
vote
1answer
290 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 ...
0
votes
1answer
53 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 ...
0
votes
1answer
97 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-...
0
votes
1answer
176 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 ...
1
vote
1answer
1k 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 %{...
0
votes
1answer
364 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....
0
votes
1answer
107 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?
0
votes
2answers
2k 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 { ...
0
votes
1answer
21 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 ...
1
vote
0answers
126 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 ...
1
vote
1answer
857 views

Apache HTTPD 2.4.x: How to “direct” users to a a custom error page if certain characters are present in the URL/URI?

so I have this apache config where I'm trying to "rewrite" users to a custom error page but it's not working. I entered http://localhost/index.html/ddgdg%:sdsdfs in the browser and I didn't get my ...
0
votes
1answer
105 views

Non-Wordpress domain on Bitnami WordPress multi-site

I've been fighting this issue for quite some time and perhaps don't have a good enough understand of Apache. I have a Bitnami Wordpress Multi-site installation running on AWS lightsail. I have 3 WP ...
1
vote
1answer
68 views

Why is this VirtualHost definition activating when the ServerName doesn't match? [duplicate]

I've got a httpd24 server that I want to use to server multiple domains. I've got a 3 VirtualHost definitions. <VirtualHost *:443> ServerName one.example.com # SSL stuff DocumentRoot "...
1
vote
1answer
77 views

Why was this -f flag returning true?

I recently set up a rewrite to serve .webp files in place of .jpg files whenever possible. It seemed to be working correctly until today we noticed that a newly uploaded .jpg image was returning a 404 ...
1
vote
1answer
785 views

httpd: Syntax error on line 523

I have a late 2009 Imac with Mac OS 10.13.6 High Sierra, installed XAMPP 7.0.30 and trying to run openEMR 5.0.1, I am a really beginner on Server world and PHP too. At the begining Apache server ...
0
votes
0answers
108 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 ...
0
votes
1answer
175 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 ...
1
vote
1answer
576 views

413 error in apache even though my POST is much smaller than the max limit

I have asked this question on stack overflow as well. I have an apache server and a fastcgi script. When I try to send POST request to my script, it fails giving me the 413 error. If I send in no ...
0
votes
1answer
438 views

AWS eb deploy Changes httpd.conf Virtual Hosts Document Root

I run an AWS ElasicBeanstalk Apache server. There is a subdomain with a different DocumentRoot (see below). When I use eb deploy and then ssh into the machine to manually change the /etc/http/conf/...
-2
votes
1answer
261 views

Reconfiguration of httpd.conf from one project to three projects on local server

Problem I need to properly configure my httpd.conf on apache2 server to change it from one project (http://localhost/) to three projects. Would you be so kind and check the following codes and ...
0
votes
1answer
58 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 "$...
-2
votes
1answer
82 views

Multiple websites on same server

When running multiple websites on same server: root/website1 root/website2 root/website3 What should be done to make these websites run intependently - I mean to completely restrict access of PHP (...
2
votes
1answer
2k views

How do I use a custom variable in an If-Else statement inside an Apache config?

Here's my code (I've commented out the if-else part as it's not working) snippets/contents of my config files /etc/httpd/conf.d/staff.vhost Define host_domain "staff" Include /etc/httpd/conf.d/...

1
2 3 4 5
12