Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [apache-2.4]

Version 2.4 of the Apache HTTPd Server. When asking questions about virtualhosts, please include the output of the following command: "apache2ctl -S" (or "httpd -S" depending on your OS)

1
vote
0answers
29 views

Why does Apache need such a long time for initial connection?

I am running apache 2.4.18 on ubuntu. Serving about 500.000 PI per month. No big deal without peaks. Somehow it started now to take a long time for the initial connection, after restarting apache it ...
0
votes
0answers
18 views

windows 2008 + apache 2.4 + php5 - mysqli got non common error (2002 - Unknown error while connecting in)

I have a strange error connecting to external mysql database. I got this in the apache log: mod_fcgid: stderr: PHP Warning: mysqli_connect(): (HY000/2002): Unknown error while connecting in The ...
1
vote
0answers
29 views

Apache CustomLog using Content-Type

Using Apache 2.4, I am trying to create a custom log file format which will only log out page views, instead of all request resources (images, css, etc). The site is built using PHP and therefore the ...
0
votes
0answers
251 views

apache proxy pass returning 403 forbidden

I wanted to add VirtualHost to an existing apache 2.4 reverse proxy running on centos 7, but I encounter a problem resulting in error 403. I have the following VirtualHost Setup <VirtualHost *:80&...
0
votes
0answers
177 views

Apache: “pass request body failed” due to client uptime

I have a Rest API built in Python that is served by gunicorn in a docker container behind an Apache proxy which handles SSL. Requests to that API are made from Python on a Windows 10 machine using the ...
1
vote
0answers
75 views

configure apache to use mod_rewrite and mod_dbd using postgreSQL and PHP

I am trying to set up Apache to use mod_rewrite and mod_dbd with postgreSQL for a club website. (Kubuntu 18.04, Apache 2.4, PHP 7.2) I can find some details for mod_dbd with mySQL, but I am having a ...
1
vote
1answer
142 views

Enabling only TLS1.2 on Ubuntu 16.04 w/ Apache 2.4

I am trying to enable ONLY TLS 1.2 on Ubuntu 16.04 with Apache 2.4. I have read other similar questions, but the implementations in them do not work here. Currently TLS 1, 1.1, and 1.2 are enabled. ...
0
votes
1answer
51 views

Apply SSL certificate in a bigger context

In my default-ssl <VirtualHost _default_:443> ServerName example.co DocumentRoot /var/www/html/example SSLEngine On SSLCertificateFile /etc/letsencrypt/live/example.co/cert.pem ...
0
votes
0answers
29 views

Apache 2.4 / Windows / Multi-IP based VHosts for SSL/Non-SSL

I'm setting up my Apache server so that it has 2 internal IP addresses for the NIC. One will be bound to all port 80 traffic, and the other to port 443 traffic. The reason I'm doing this is that ...
0
votes
2answers
74 views

Is it possible to do a wildcard HTTP->HTTPS redirect for all vhosts?

On our dev server we have multiple sites for multiple developers running via vhosts in Apache 2.4.6. We are on CentOS 7. We want to redirect all http://www.site.ext.dev-username.commondomain.ext to ...
1
vote
2answers
37 views

Apache Virtual Hosts - Map different paths of the same domain (or IP) to different sites

I'm running Apache/2.4.29 (Ubuntu). I have only one domain name. I would like to map different sites to different paths after the domain name. For example: mydomain.com/test001 maps to /var/www/...
1
vote
1answer
80 views

Apache2 howto serve different location for specific path in url

I got a Virtualhost serving my application by ProxyPass and it works fine. now i want to serve an english version of my service using a simple Wordpress under '/en' route. assuming the Wordpress ...
0
votes
0answers
40 views

apache Header set Access-Control-Allow-Origin not working

I've added the following line to a virtual host secion <IfModule mod_headers.c> Header set Access-Control-Allow-Origin "*" </IfModule> a page hosted on this site issues a ...
0
votes
0answers
62 views

Apache redirecting to HTTP for subdomains after adding trailing slash

I edited the question based on new information. I know I am a big novice for server configuration stuff. What I noticed is that mod_dir adds backslash properly in all non-subdomain paths. For ...
3
votes
0answers
51 views

Apache Proxy: How to determine which directive was used for the response?

I'm confronted with an apache proxy setup which is already running in production. Sometimes there are requests for optimizations and I'm not very confident at apache configuration, so I keep asking ...
0
votes
0answers
115 views

How to deny php files and allow some with Nginx?

I use on my site Drupal 8, the library "shariff-backend-php". https://github.com/heiseonline/shariff-backend-php When my server was on Apache, I had to add to my htaccess file the following line, ...
0
votes
1answer
169 views

How to add Expires headers to Nginx?

I have a Ubuntu server 18.04 with Drupal 8 and I do not master the Nginx server at all. I just migrated my old Apache server to a new Nginx server. In my htaccess file at the root of my site, I had ...
0
votes
2answers
261 views

Apache proxypass exclude rule being ignored

I've been scratching my head on this for far too long. I have what I consider a simple configuration using the proxypass rules for Apache, I want to supply a list of exclusions before using a '...
0
votes
0answers
129 views

Ubuntu 18.04 Apache 2.4.29 After changing mpm_prefork to mpm_event, apache just serves php source code

I followed this but got crazy results: switch apache from prefork to event in Ubuntu 16, get php 7 working My goal is to also enable http2, which is not compatible with mod_prefork. What happens is ...
0
votes
0answers
32 views

Apache Proxy LocationMatch

Why does (virtual host conf): ProxyStatus Off ProxyRequests Off RewriteEngine on <LocationMatch "/?(services/WeatherPort)$"> ProxyPreserveHost on ProxyPass ajp://127.0.0.1:8080/$1 ...
0
votes
0answers
26 views

Ubuntu Apache https time out status. Though http works fine

Created ssl certificate using let's encrypt for apache. It is showing request timed out every time. nc -zvw 1 studytact.ml 443 nc: connect to studytact.ml port 443 (tcp) timed out: Operation now in ...
2
votes
3answers
616 views

How to `Graceful Restart Apache` in centos 7?

My system is centos 7.4, with apache 2.4 Based on apache manual,apachectl -k graceful should be the way to graceful restart apache, but I got notice as below: [root@localhost root]# apachectl -k ...
0
votes
1answer
234 views

Apache/httpd error: Invalid command 'WSGIPythonHome'

ISSUE: My Apache/httpd server will not launch. journalctl -xe reveals: Feb 27 01:50:12 localhost.localdomain httpd[4398]: AH00526: Syntax error on line 355 of /etc/httpd/conf/httpd.conf: Feb 27 01:...
0
votes
0answers
24 views

mod_status shows requests “\x16\x03\x01” from 127.0.0.1

Requests like "\x16\x03\x01" appears in the list of mod_stauts "Request" column. when SSL content is requested on non SSL port or vise-versa. But here the requests are being generated from localhost! ...
2
votes
2answers
118 views

How to migrate my Apache server to Nginx?

I have an Apache server on Ubunu 18.04 with a Drupal 8 site that I want to migrate to Nginx and PHP7.3-FPM. This is the only site on the server. I do not know Nginx at all. I deleted Apache with the ...
0
votes
0answers
53 views

Haproxy ProxyPass and ReverseProxy

I have an Apache vhost with the following directives ; ProxyPass "/String1" "http://10.0.1.50:8081/String1/String2/String3 ProxyPassReverse "/String1" "http://10.0.1.50:8081/String1/String2/String3" ...
0
votes
0answers
29 views

Wordpress Server sending bad request to itself and crashing apache

Our Wordpress server has been choking itself. seemingly randomly, for the last 4 or 5 months. After a long process of troubleshooting various things I finally pinpointed it to 4-6 requests that show ...
0
votes
2answers
30 views

Default Virtual Host not catching the request

I have an Apache 2.4 server with two enabled virtual hosts: /etc/apache2/sites-enabled/000-default.conf <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www/...
0
votes
1answer
20 views

Have Apache send a response defined in the configuration file

I would like my Apache VirtualHost to respond with the same content, no matter the URL requested. I know it is possible with an additional file containing the static response (https://askubuntu.com/a/...
1
vote
2answers
83 views

Running Apache/2.4.37 server on port other than 80 with virtual hosts

So I set up the apache http server on Amazon EC2 Linux 2 machine with 2 virtual hosts. I can access both virtual hosts and it is working all good on default port 80. What I wanted to do is run all ...
1
vote
1answer
23 views

I have an error message if I disable htaccess files on Drupal 8

I have an LAMP server for my Drupal 8 site. I want to disable htaccess files to have a better server. I followed the following tutorial : https://www.vincentliefooghe.net/content/virtualhost-apache-...
9
votes
2answers
324 views

Can't figure out a htaccess rule

I have this in my htaccess but can't figure out what its for. Because of the nature of rule, searching doesn't help either. RewriteCond %{REQUEST_URI} !(/$|\.) RewriteRule (.*) %{REQUEST_URI}/ [R=301]...
-1
votes
1answer
11 views

How to force https to any http page request on an Apache 2.4 server

I saw a solution to this at HTTP to HTTPS redirect not working on Apache 2.4 <VirtualHost *:80> ServerName www.example.com ServerAlias example.com Redirect permanent "/" "https://www.example....
1
vote
1answer
60 views

Decoding a Rewritten URL using mod_rewrite - htaccess - regex

I am using Apache 2.4. I have set up and configured an Apache HTTP server, to host my invision app, my app is linked to external google docs. I am trying to redirect to an external google doc from the ...
2
votes
1answer
92 views

Apache 2.4.18 randomly giving 404 for existing files

I'm trying to get my head around why this would be happening. I've never had problems on this server around this, so I'm a bit baffled. The server is nginx + Apache 2.4 reverse proxy. So nginx I have ...
0
votes
0answers
49 views

Centralized redis store php session - Load balance environment

I had a bad experience with Redis as Centralized session Store and would like to know if anyone has gone through this situation. And some tips on how to adjust this problem. My environment is as ...
0
votes
0answers
32 views

Siteminder WebAgent is undesirably logging to Apache's error_log

We have Siteminder WebAgent 12.52 SP1 running in Apache 2.4.28 and although it has its own log file, it's happily spamming away into Apache's error_log (timestamps omitted for brevity): [Info] [CA ...
0
votes
0answers
9 views

How forward DNS communication to specific tomcat application?

I tried to direct DNS "test.domain.com" to specific tomcat application "http://localhost:8080/test/" but it ends like this "test.domain.com/test" and result on browser is 500 with application "/test/...
0
votes
1answer
254 views

wp-admin redirect loop when behind apache reverse proxy

Its my first post in Server Fault, so I'm sorry for any faux pas :) Problem: When I try to access "http://dummy_server/wp-admin" that is behind an apache acting as a WAF, it gets stuck in an infinite ...
0
votes
0answers
22 views

Disable Apache2 default SSL site

The following is working fine for http and all non-configured domains or IP address requests are getting 404, however, it doesn't work for the default https site and still goes the first https site ...
0
votes
1answer
156 views

mod_speling Case Insensitive URLs not working

I have a ServerPilot server, running on Ubuntu 16.04.3 On it is an app that is a Wordpress website, but has other non-wordpress directories. In these directories is what I am concerned about. I ...
0
votes
0answers
23 views

apache installed from source not starting/stopping after enabling ssl

have installed Apache in Redhat following steps given by compile and install Apache link with port 80, the Apache is working fine without any issue, with proxy settings done with Apache tomcat, but ...
1
vote
1answer
21 views

Apache RewriteEngine config purpose

I ran into this snippet in an Apache config file that someone else wrote, but I'm not sure of the purpose. Could anyone explain what this is for? RewriteEngine On RewriteCond %{THE_REQUEST} !HTTP/1\....
1
vote
2answers
30 views

Another domain is pointing to my server, and Google is indexing that one rather than mine

So I own www.example.com. I have an A record pointing to my IP, and also have a CNAME for www. Clearly my IP is shared, because if I access it, I get taken to www.domain.com Anyway, last week, I ...
0
votes
0answers
33 views

Large file upload to mod_php vs. FastCGI PHP

I am sending a large file via a PUT request to an Apache webserver with PHP. Target is a php file, that reads the data and writes it to a directory. the development server has PHP included as a ...
0
votes
0answers
30 views

Set an header if another header is missing, in a apache vhost

I know that I can add a header if its missing, using the setifempty like: Header always setifempty Content-Security-Policy-Report-Only "foobar" But how do I set a header only when another header is ...
5
votes
2answers
104 views

Amazon EC2 instance is getting spammed with different PHP filenames

Our server has been attacked recently and looks something like the following in the logs: [Mon Feb 18 09:18:43 2019] [IP_ADDRESS] script '/var/www/ynm.php' not found or unable to stat [Mon Feb 18 09:...
1
vote
0answers
252 views

Apache and htpasswd getting errors from random number generator

Recently (probably after yum update something), one of my CentOS7 server running Apache2.4.37 has started to produce the following errors. apachectl configtest (38)Function not implemented: AH00141: ...
1
vote
0answers
56 views

too much apache processes running and consume memory

I've an instance of type c5d.xlarge on aws with centos 7 with 8GB of RAM. I'm running a magento storefront on it. Magento version is 2.7.1 . Now the problem is the memory usage is 74% and it gets out ...
0
votes
0answers
33 views

Proxy Static Django Production with Apache

DEBUG = False <<--- Django (Production mode) I have an external django server that I need to access using the apache proxy. The system works fine, but static files are not loaded. Where I ...