Stack Exchange Network

Stack Exchange network consists of 174 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)

0
votes
0answers
3 views

Apache2 mod_ssl checks

What is the best practice writing simple site config file based on ServerName with HTTPS permanent redirect? Do I need to check mod_ssl each time I redirect? Can we just use one common <...
0
votes
0answers
7 views

PHP - Soapclient - Basic Auth -> SERVER->REMOTE_USER

We use a PHP Soap-Webservice on a 1und1-Server. If i call the Service like $client = new SoapClient('https://server.com/test.wsdl', array('login' => "tuser", 'password' => "tpass", '...
0
votes
0answers
15 views

Rewrite apache2 location header response

My apache2 server is running behind a proxy server. Apache2 doesn't know about which hostnames are used publicly for the sites it's hosting. So this request: https://www.example.com/zever Is sent ...
-1
votes
0answers
26 views

How to install multiple PHP versions in Debian 9, Virtualmin 6, Apache FCGI & avoid Error 500? [on hold]

This took most of the day to work out, with lots of googling and trial and error, with the solution being pretty easy in the end, so I want to share this. By default Debian 9 comes with PHP 7, but I ...
0
votes
0answers
6 views

How to activate the API in Pootle 2.8.2

I'm wondering does the Pootle API work the same in version 2.8.2 as in version 2.5.1? I don't see any updated docs for the API in Pootle 2.8.2, the last I see is https://pootle.readthedocs.io/en/...
0
votes
0answers
8 views

`Unregistered Authentication Agent for unix-process` when I restart Apache each time?

My server is centos 7.4 with Apache 2.4.6. Each time when I systemctl restart httpd,2 messages will added to /var/log/secure.Looks like : Jan 19 8:23:48 localhost polkitd[493]: Registered ...
1
vote
0answers
11 views

Update httpd.conf with virtualhost

I have a webserver with an old config (but a recent 2.4.6 apache). Basically everything is in the 20 year old httpd.conf file, but I have some tools that complain that I need to define a virtual host. ...
0
votes
2answers
212 views

Find what domain is using the old Let's Encrypt ACME TLS-SNI-01 validation method before the EOL on February 13th, 2019

I just got this email. However, I host many wabsites (not all of them on the same server). I guess that one of the server is using an old version on the certbot client, but I'm not sure which. I ...
1
vote
3answers
48 views

How do I hide a specified port from an URL?

I have one server on example.com, and I have another one on example.com:10001. When users try to reach example.com:10001 they end up on example.com:10001/index.php/login and that's how it should be. ...
1
vote
0answers
18 views

Short request texts on server-status

I've recently noticed that requests in the /server-status page are incomplete, that is they're cut at index 64. See below: GET /robots.txt HTTP/1.0 POST /xmlrpc.php HTTP/1.0 GET /wp-content/plugins/...
0
votes
1answer
13 views

Running Pootle server under Apache with mod_wsgi on ubuntu server

I have successfully installed a pootle server in a localhost environment using the django default server following the instructions found here: http://docs.translatehouse.org/projects/pootle/en/stable-...
0
votes
0answers
12 views

Sub domain to another local address

I have mydomain.com I have another server running on a different local IP, and I want that to be a subdomain of mydomain.com. DNS looks like this: A-Record @ -- public ip CNAME-Record sd1 -- @ ...
0
votes
0answers
9 views

Apache: Dynamic multiple URLs to point to the same content

I am in a situation where I need to have multiple different urls point to the same content/code. Basically there is a super admin that manages multiple projects. Each project has to have a different ...
1
vote
0answers
23 views

Apache buffers tomcat responses, and closes connection to tomcat when request size exceeds 10397232 bytes

I've deployed a web-service application as a Docker container based on tomee:8-jre-7.0.4-plume which is sitting behind a apache httpd:2.4 instance running in another Docker container running on the ...
1
vote
1answer
35 views

503 proxy error and unable to establish SSL connection

I have a docker container running on my server. It's running an instance of collabora/code if that matters. I have a external subdomain that does a reverse proxy to the container URL but getting a 503....
0
votes
0answers
20 views

Apache2.4 HTTP2/SSL on Windows Issues [closed]

I have Apache/2.4.37 (Win32) OpenSSL/1.0.2q PHP/7.3.1 configured on Windows 10 (64-bit). Can anyone provide any definitive explanation on how to correctly configure http2 module on Apache/Windows, or ...
0
votes
0answers
18 views

Apache2 Loadbalancer with sticky session only sticky for GET, not POST

I have set up Apache 2.4.6 on Centos with mod_proxy and mod_headers like described in https://wiki.apache.org/httpd/LoadBalanceWithoutStickyCookie My goal is to have sticky sessions even if the ...
0
votes
0answers
11 views

What happens to connected clients when Apache 2 is stopped?

I have a legacy Apache HTTPD 2 server running in MPM prefork mode. A mis-configuration left us in a situation where the MaxRequestWorkers setting was too low, causing client requests to queue waiting ...
2
votes
1answer
31 views

Apache and MySQL processes running at 100% CPU

I have a production server that's usually very stable, and has been for a very long time. Last night, it suddenly started showing very high loads (150+). Deactivating Apache will decrease the load ...
0
votes
0answers
12 views

Choice of server with versioning and cache [closed]

I’ve been doing some research to accomplish my goal but I’m still not completely sure of the conclusion. I hope this forum is the right place to complete the quest  The scenario is as follows: I ...
1
vote
0answers
57 views

PHP 7.2 - Apache 2.4 memory limit issue

We are running Ubuntu 16.04 LTS with Apache 2.4 and PHP 7.2. 9 times out of 10, the web app works well, but at a random interval, we come across this error message. "Allowed memory of 134217728 bytes ...
0
votes
0answers
10 views

About the location block on apache server for gogs with basic authentication

I use apache Apache/2.4.25. I use its reverse proxy for gogs which is a git repository docker container image. The important is that I use basic authentication. I am able to visit web site and to use ...
0
votes
1answer
47 views

Why does switching to secure folder (httpsdocs) break the PHP file upload function

Server version: Apache/2.4.34 (Unix) I'm trying to utilize an existing SSL certificate for several sub-directories of a domain, but the architecture for the domain separates out two directories for ...
-1
votes
1answer
17 views

Alter http method in a rewrite rule

Could someone confirm it's not possible to change an http request method (from GET to POST for example) in a rewrite rule ? A quote from some online doc would be really useful.
2
votes
1answer
57 views

Apache: Truncated or oversized response headers after graceful restart

After graceful restart, some python wsgi processes fail with 500 (internal server error): [20:06:33] [mpm_prefork:notice] AH00171: Graceful restart requested, doing restart [20:06:36] [wsgi:error] ...
0
votes
1answer
16 views

add password protection to a specific directory from .httaccess

I dont have good control over the main apache configuration due to cpanel being implemented, I want to add the following config only when a certain directory (or url for that matter) is beeing ...
-1
votes
0answers
35 views

Apache error: Provided via SNI, but no hostname provided in HTTP request

I am pretty new to Servers and I got this message in my Apache error log: [Wed Jan 09 13:09:50.484812 2019] [ssl:error] [pid 7533] AH02031: Hostname \xad\xf95\xc4\xbb\x01 provided via SNI, but no ...
0
votes
0answers
16 views

Apache response time in hours for some http requests

I have enabled response time in apache log using %D parameter in apache configuration file. I found response time of some requests is more than an hour. When these requests are running, cpu usage ...
0
votes
0answers
15 views

httpd24 by scl doesn't render php

I have installed httpd24 with php72 by scl in a CentOS 6.10 x86-64 environment. But Apache doesn't render php files and display them as text. Installed php using, yum install php72-php php72-php-...
-1
votes
0answers
14 views

translate/explain apache directive: Order [closed]

Ever since I started building web pages, I have largely ignored understanding much that seems too alien for me. After many years, after many road blocks and mistakes some I have absorbed much. My ...
1
vote
0answers
9 views

How to ProxyPass if the request doesn't correspond to a file

I'm trying to implement the following behavior: If the request corresponds to a file in /var/www/html, then serve it, else, ProxyPass to a different hostname and port. I am aware of the RewriteCond ...
1
vote
0answers
45 views

Apache reverse proxy timeout in 60 seconds

I have Apache Reverse proxy server which proxies request to my internal Apache server. I am using Apache version 2.4 on Linux platform. I encountered timeout page and HTTP ERROR 504 whenever back-end ...
4
votes
2answers
428 views

Apache 2.4 authenticate anonymous users but allow others by IP

I am trying to configure Apache to allow users from a selection of IPs access to a Flask application without authentication, but to challenge any other users for credentials. As things stand I have ...
0
votes
1answer
21 views

Apache Alias file could not be found

I want to set up an alias in apache like this: http://example.com/deploy I do this: <VirtualHost *:80> DocumentRoot /var/www/html/ Alias "/deploy/" "/var/www/deploy/" &...
0
votes
1answer
13 views

Apache not starting with mod_session_crypto

When I enable mod_session_crypto by uncommenting it from the config, apache server fails to start. I found the following error from the journalctl: Jan 09 12:27:39 dbserver1 systemd[1]: httpd.service:...
0
votes
0answers
21 views

How to run scripts owned by root with Apache?

I have built a Docker Ubuntu image with Torch installed, when running the container in interactive mode I'm able to execute a few commands as root user. For example, if I run /usr/bin/env th, I can ...
1
vote
0answers
21 views

Apache2.4 Require IP not working because 127.0.0.1

I am trying to configure .htaccess on Apache 2.4 using Require ip X.X.X.X The problem I am experiencing is that all requests appear to be coming from 127.0.0.1 and not the public IP of the request. I ...
0
votes
1answer
17 views

.htaccess throw 404 and then 301 on nonexistent path

Currently I have this set up in my .httaccess RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !\.(php|html|txt|js|css|png|jpe?g|gif|svg|woff|ico|csv|xml|pdf|gzip) RewriteCond %{...
1
vote
1answer
39 views

RewriteMap not working, nothing is rewritten (Apache 2.4)

I have a bit of a unique situation: I need to take a subdomain and make it redirect to a random selection of alternate domains, each of which is on a separate server. Think load balancing, except it's ...
0
votes
1answer
25 views

Centos 7.5 apache proxy for .net core

I am following the instructions to setup apache with .netcore as a proxy server. Here is my vhost. <VirtualHost *:*> RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME} </...
0
votes
0answers
18 views

should I rewrite my htacces when migrating to php-fpm?

I'm trying to migrate an application written in PHP and running over Apache 2.0 with mpm_prefork and mod_php to Apache 2.4 with mpm_event and php-fpm via mod_proxy_fcgi. It is an application that ...
0
votes
0answers
20 views

browser times out over https on mobile network

When accessing oletymeshop.com from wifi, evrything works fine on http and https. When accessing over mobile network (4g / lte) http works, but https times out and nothing ever shows in the httpd ...
0
votes
1answer
41 views

How to resolve Fatal error: Call to undefined function hash()?

I have this error message on my website: Call to undefined function hash() on line 738 in .../public_html/dbtech/dbseo/includes/class_db.php #0 .../public_html/dbtech/dbseo/includes/rewrite/...
0
votes
1answer
38 views

How to resolve 503 Service Unavailable without sock file on apache 2.4?

I have 503 Service Unavailable problem log review is: [proxy:error] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /usr/local/php72/sockets/admin.sock (*) ...
1
vote
0answers
45 views

Apache https 2.4 consumes all CPU on Fedora 29

UPDATE: I noticed a similar issue, perhaps related. But I changed the MPM module to MPM event as noted in this GDB BT: #0 0x00007fc74ea90df4 in read () from target:/lib64/libpthread.so.0 #1 ...
0
votes
0answers
9 views

Apache/NGINX - globally return HTML document if specific request header is set

I want to return a specific HTML document if a request to any path on my site(valid or invalid) contains a specific header(or cookie). Is this possible? Links to relevant documentation are appreciated....
0
votes
1answer
22 views

Require local Apache directive not working on AWS EC2 instance

I have an Apache 2.4 VirtualHost on an AWS EC2 instance with the following config: <Directory /srv/www/example.org> Require ip [REDACTED] # Office IP Require local </Directory> ...
0
votes
0answers
26 views

Rewrite URL and setting accept-language header

I am trying to serve accept-language header-dependent static files, while the URL should always look the same. The important snippet of the apache 2.4.10 config: ... RewriteEngine On RewriteCond %{...
0
votes
1answer
36 views

How can I access an environment variable set by a rewrite rule in an expression?

I am working on a Symfony 3.4 application which has public and private parts. However, I am currently setting up a staging system for this application which should only be accessed by authorized users,...
-1
votes
1answer
46 views

Apache header editing

I have setup with apache (apache 2.4, redhat 7.6) reverse proxy in front of the JVM. Apache has basic authentication setup on it. The problem is that Apache header with info about basic ...