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
0answers
9 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
19 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
39 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
27 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
51 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
34 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
0answers
19 views

Add context path for apache website?

To setup context - Currently I'm using an application called serenityBDD which generates a bunch of html and csv files after an automated test run is done. The files are all dumped in directory: /...
0
votes
1answer
19 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
0answers
14 views

Can't reach my Apache server from an external browser and can't get http request from local host RHEL 8

I downloaded httpd on my server and opened port 80 & 443 on iptables to enable connection. HTTPD is enabled and active. But when I run some commands it does not go through. wget -p http://...
0
votes
1answer
33 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
89 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 ...
0
votes
1answer
113 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
0answers
17 views

Apache httpd rotatelogs issue

I have Apache httpd on Windows configured to rotate logs liks so CustomLog "|bin/rotatelogs.exe -l -n 5 'C:/Program Files/Apache24/logs/access.log' 86400" common But it works in a weird way. If I ...
0
votes
0answers
50 views

Configure Apache with a specific php-fpm pool based on http request method

I'm working with Apache/2.4.41 in a CentOS 7.6 box. I have two different php-fpm pools running and listening on different ports and I'm trying Apache to send the POST, PUT and DELETE requests to one ...
0
votes
0answers
13 views

httpd DirectoryMatch Fails

I am trying to use IndexHeadInsert and DirectoryMatch to put notices at the top of mod_autoindex pages. Every regex I have tried does not want to work. If I put in IndexHeadInsert without the ...
0
votes
0answers
20 views

multiple virtual hosts only forward to www based virtual host

I have 3 virtual hosts I configure in the apache httpd.conf: <VirtualHost *:80> ServerName www.example.com DocumentRoot /ec2-user/myproject RewriteEngine on RewriteCond %{HTTP_HOST} =www....
0
votes
1answer
148 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
77 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
525 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
87 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
313 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
64 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 ...
0
votes
0answers
260 views

httpd reverse proxy: Change or set cookies' path

I've this configuration on my httpd reserse proxy: ProxyPass /descarregaby http://${webhost}:8083/userlogin4download ProxyPassReverse /descarregaby http://${webhost}:8083/userlogin4download So, It's ...
1
vote
1answer
44 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 "...
0
votes
0answers
38 views

What's the correct “Location” for URLs containing spaces?

I'm hosting some SVN-repos using mod_dav_svn and am running into problems when using URLs with spaces. My approach is simply to have a directory structure of SVN-repos grouped by customers or some ...
1
vote
1answer
66 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
444 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
73 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
143 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
252 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
207 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
153 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
46 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
79 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 (...
1
vote
1answer
975 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/...
3
votes
1answer
659 views

How to exclude RewriteMap if REQUEST_URI is not found

I have an old site wordpress site I am in the process of migrating. There are about 50000 urls that need to be redirected. For this I am using DBM files which seem to be working fine, however during ...
0
votes
1answer
126 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 ...
0
votes
1answer
309 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 ...
1
vote
1answer
2k views

Apache: No matching DirectoryIndex

I'm newbie in apache, i have the following directory structure: html |-- moodle |-- singapur |-- app |-- public |-- js |-- css |-- img |...
1
vote
2answers
7k views

Apache 2.4 updated, now throws: Cannot define multiple Listeners on the same IP:port

I've just updated Apache to 2.4.3 on my AWS instance (running Linux AMI). After the update finished, Apache crashed with the following: Starting httpd: AH00526: Syntax error on line 5 of /etc/httpd/...
1
vote
2answers
38 views

Including 2 CAs in VirtualHost in Apache using httpd for https phone/server handshake

I'm trying to load a server cert from godaddy so have xxxxxxx.crt, and bundle.crt, I've made a key/csr which we used to create the certs. I'm now trying to load another cert as the phone we're using ...
0
votes
1answer
61 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 ...
1
vote
1answer
98 views

How to force Apache to skip binding to failed interface? [closed]

I run Apache inside VirtualBox on a laptop. I also used IP based VirtualHost-s. I want to be able to have LAN access whenever I move about, to certain pre-known networks. The IP, however, is not "...
1
vote
2answers
3k views

How to configure <Location> Directive specific to a Location/Directory on Apache Server and not on Server Level?

I am new to Apache Server Configuration. I went through the Apache Documentation and tried to understand the Basics as well as the Directives. But still, I am not able to figure out a configuration ...
0
votes
0answers
107 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....
0
votes
2answers
578 views

Apache with PHP running CGI mode: The php executable processes itself, what do I need to change in the config

I'm trying to install a pre-Iraq-Surge 4.4.9 PHP in a modern Apache 2.4.6 and want to run it in CGI mode. The current configuration is as follows: The PHP executable is /usr/local/php-4.4.9/bin/php ...
-1
votes
1answer
141 views

Multiple websites on single bind dns server

I am using CentOS 6, BIND and HTTPD I have created 3 machine: DNS Server, HTTPD Server, Client Machine - All are working in a virtual environment under VMWare. IP of DNS server is: 10.0.2.16 IP of ...
0
votes
1answer
260 views

Apache on SLES only starts https with -D SSL arguments

I've been hacking up this server for a few days trying to convert a new installation of apache to HTTPS with the plan to convert it to NSS once I have SSL running properly. This server is not ...
0
votes
1answer
881 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 ...

1
2 3 4 5
12