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)

Filter by
Sorted by
Tagged with
-1
votes
0answers
19 views

How should I authorize calls to an API behind an Apache reverse proxy behind CAS authentication?

Apologies if this is incoherent. I'm very new. I have an Apache server protected by CAS in a Docker container. I'm using mod_auth_cas to do this. I have an API running on a different container which ...
1
vote
0answers
8 views

How to enable NPN in Apache 2.4.46?

ALPN is enabled by default, or probably gets enabled when you enable mod_http2. But, from a testssl.sh test, I saw that NPN was disabled. How can I enable it in Apache 2.4.46? https://github.com/...
1
vote
0answers
14 views

Apache reverse proxy configuration (/context to /)

I'm having this issue trying to proxy a site to another context on a different domain What I currently have ? I have a fully functional web site running on the following URL: https://helloworld....
1
vote
1answer
8 views

Issues with Apache HTTPD 2.4 LocationMatch containint?

I am having trouble using a LocationMatch for a specific site that contains a ? My current LocationMatch is <LocationMatch "^/SOME/FOLDER/STRUCTURE/TEST/?cmd=logout"> The actual URL ...
0
votes
1answer
62 views

Forwarding Apache SSL-Port to Web-App on localhost

I'm struggeling for days now to route a subdomain with SSL to a local running vue app, specifically the directus admin ui. I've done this before, like with the tool monit, and it worked like a charm: &...
1
vote
1answer
41 views

DocumentRoot and Directory - necessary outside of VirtualHosts?

The default config had the following in the root: DocumentRoot "${SRVROOT}/htdocs" <Directory "${SRVROOT}/htdocs"> Require all granted </Directory> Is it correctly ...
0
votes
1answer
32 views

Custom listen ports for Apache not working

I wanted Apache (v2.4.41) to listen to port 802 and 44302 instead of 80 and 443 on my Ubuntu (v20.04) server so I did the following: Edited the port numbers in /etc/apache2/ports.conf. Now the file ...
0
votes
1answer
39 views

Correct permissions for WordPress directories and files on Ubuntu 20.04 with Apache

My client's website is hosted at Digital Ocean and is running Ubuntu 20.04 with Apache. I have WordPress installed and running with some issues. The ability to upload or update plugins and themes is ...
0
votes
0answers
71 views

Application alias rewrite using apache

I am new to apache and i am trying to rewrite an application default alias to a more elegant one using apache but unfortunately i struggle and i can't find a way to do it Can you help me please ? What ...
-2
votes
1answer
41 views

Why does Apache send HTTP/1.1 when client requests HTTP/1.0? And many other very similar problems [closed]

Apache sends HTTP/1.1 when client requests HTTP/1.0? Why? So the request is: Connected to example.com port 80 GET / HTTP/1.0 The response is similar to: HTTP/1.1 200 OK Server: Apache It says HTTP/...
1
vote
0answers
19 views

Apache 2.4.46 launched from working AWS EC2 AMI runs but will not respond

I launched a new instance of an Amazon Linux 2 server (from a daily backup snapshot). Everything looks normal and Apache starts but it will not respond to requests. I have ssh access and I can see ...
0
votes
0answers
15 views

Cross file Define

I'm trying to implement a system for safer updating and testing of updates to my website. The idea is to have two virtual hosts, one pointing to the production version, and another for the development ...
1
vote
1answer
41 views

Apache Do Action Only If Path Contains

I'm using the following in an .htaccess to remove the extension from .php files: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^\.]+)$ $1.php [NC,L] It works great, but how can ...
-1
votes
1answer
32 views

How to group data being split and posted to two backend Apache servers behind a frontend Nginx load balancer?

For a requirement of my client, I want to set up a load balancer using Nginx with two upstream backend Apache webservers. I think it should be like: Server1: Nginx Load Balancer. Server2: Apache Web ...
1
vote
1answer
51 views

Redirecting HTTP to HTTPS without DNS or static IP

I've setup web servers in the past, but now I'm working on an embedded Linux project that is a bit different. I need the embedded Linux device to run an Apache server support DHCP not require any DNS ...
1
vote
1answer
31 views

Apache SSL Proxy Pass not working, but it does with VirtualBox NAT port forwarding

I configurated Apache proxy pass on port 80 and 443. Port 80 works but it seems that for 443 I do not get any response. From my public ip I got no response from server. This are the virtual host ...
0
votes
1answer
47 views

Apache Site Goes To Wrong Page If I Manually Enter HTTPS:// in the URL

If I type in example.com into the URL it redirects to https://www.example.com which is great, same with typing http://example.com I get the correct redirect to https://www.example.com. However if I ...
0
votes
0answers
17 views

WordPress error: This is usually due to inconsistent file permissions.: wp-admin/includes/update-core.php

I have some WordPress websites server with root access, and at the time of creating the server, everything was fine and WordPress itself and plugins and themes were updating without any issues, but I'...
0
votes
1answer
24 views

How to restrict access between folders on the same virtual host

We plan to host WordPress Blog and an Ecommerce store on the same domain, so the URL's will look like this: example.com <--- Magento Store example.com/blog/ <--- WordPress Blog Our main concern ...
0
votes
1answer
21 views

Apache virtual host how to add location with headers?

So I'm using liferay and an apache in docker and want to have the following URL localhost/tester when a user enters this I want headers to be added to their request. I tried to solve this with a ...
1
vote
1answer
54 views

Apache rewrite causes server error 403 when genuine directory exists after extension removal rewrite

I've spent a couple of days now trying to create a specific rule set that will allow me to remove .html extensions from all the files in the directory and present neater URIs. I'm using a .htaccess ...
1
vote
0answers
51 views

how to config apache reverse proxy for multiple jboss remote instances?

I need to setup an apache reverse proxy with multiple jboss instances as target server (with different IP). I've already set in my DNS an url http://jboss-test.domain.com and i would like to redirect ...
0
votes
0answers
7 views

How to know if module mod_evasive is really working?

I have CentOS Linux release 7.9.2009 with httpd-2.4.6-97.el7.centos.x86_64 and mod_evasive-1.10.1-22.el7.x86_64. The configuration file is as follows: LoadModule evasive20_module modules/mod_evasive24....
0
votes
1answer
34 views

Forwarding a static website using Docker

I have a website serving static HTML/client-side JS, running on a machine on my LAN. The website is accessible from 192.168.0.10:81, and there is no DNS. I have another machine on the LAN which serves ...
0
votes
0answers
16 views

404s don't have trailing slashes

I have set up my site so that if someone tries to look at forbidden content they will get a 404 error instead of a 403, but when they do this, a trailing slash is added to the end of the URL. Also, if ...
1
vote
1answer
45 views

Apache .htaccess - If directive to evaluate if home is the current page

I'm just trying to set a header if the loaded page is home (/), however, I can't manage to do that. What I've tried: #let's find var value - its echo / on the header PassEnv REQUEST_URI Header always ...
0
votes
0answers
16 views

Apache 2.4 Load Balancer issues with hostname consistency (ProxyPreserveHost)

I am trying to set up 3 different instances of apache on the same machine and host an application on two of these instances, while the third one load balances them. I have the Loadbalancer instance ...
2
votes
1answer
43 views

Custom error page apache

I'm trying to setup a custom error page (reverse proxy is apache) Service Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please ...
1
vote
0answers
39 views

Apache 2.4.37 reload causes error “scoreboard is full, not at MaxRequestWorkers.Increase ServerLimit.”

I'm running CentOS 8 with Apache 2.4.37. Once per day, logrotate rotates the Apache logs by doing a graceful restart (reload): [mpm_event:notice] [pid 1413:tid 140292271810880] AH00493: SIGUSR1 ...
0
votes
1answer
50 views

Redirect to a URL passed in the query string with Apache 2

I'm pretty newbie in URL redirection, and I would like to create this kind of redirection: http://example.com/?url=http://domain.test/ to http://domain.test/ The result I'm having so far is: http://...
1
vote
1answer
53 views

Random Internal Server Error

We are receiving random internal server errors on one of our website. These internal server errors can sometimes appear only on some users but other users are not receiving it (at the very same time) ...
1
vote
1answer
14 views

Why is Apache not proxying to Tomcat?

Apache 2.4 and Tomcat 9 are installed on the same Ubuntu 20.04 server. I'm trying to set up Apache as a reverse proxy to Tomcat. This configuration is already working perfectly on an Apache 2.4/...
1
vote
0answers
690 views

Timeout when reading response headers from daemon process. Python, Flask, Apache

I have a problem with my mod_wsgi configuration. Sometimes, I think when there is a lot of traffic on my website, the page breaks and says "Resource temporarily unavailable..." Apache logs: ...
0
votes
1answer
43 views

Basic auth Apache and multiple IP conditions

Apache Basic auth, with multiple IP conditions, works with this way, but according to here, I should be able to write something like this .htaccess sample (the bellowing IP addresses are written for ...
0
votes
1answer
12 views

AH01630: client denied by server configuration: /home/act-ss/cgi-bin/webactivation.cgi

I am getting this error in my /home/act-ss/logs/error.log: AH01630: client denied by server configuration: /home/act-ss/cgi-bin/webactivation.cgi I am using Apache 2.4 on CentOS 7, the directory and ...
1
vote
1answer
31 views

Possible bug in Apache2

I just spent a solid 8 hours tracking this down and I still don't quite understand what's going on, so I'm hoping someone can explain this to me or confirm it is a bug so I can open a ticket with the ...
0
votes
0answers
12 views

config changes not showing after apache restart

Running apache 2.4 on centos7 (its a dev vm) and I'm trying to test headers being passed down from a proxy(handles cac authentication). I'm grabbing the headers in php and dumping it to the screen but ...
0
votes
1answer
13 views

Subversion repository throws HTTP 403 Bad Request when accessed via https & Kerberos (Windwos Integrated) authentication

We encountered this problem with different versions of OS & Subversion on the server side, the following details being the same: We used https protocol to access the SVN repositories. We used ...
1
vote
1answer
21 views

Temp. Load Balancing

One of the website on my Cpanel / Centos server on DigitalOcean with multiple domains attracts huge traffic on one particular week in a year, a single server is unable to manage the load and obviously ...
0
votes
0answers
9 views

Rotatelogs not working

I want to rotate apache logs using the build-in rotatelogs tool: https://httpd.apache.org/docs/trunk/programs/rotatelogs.html Somehow, rotatelogs is not working without giving me any error's. So i'm ...
0
votes
0answers
16 views

Is it possible to do conditional logging with apache mod_dumpio?

For example, if I only wanted to log POST data from a specific ip address or some other available ENV variable such as SSL_PROTOCOL?
0
votes
1answer
14 views

Accessing default MPM prefork values in Ubuntu(debian based architecture) vs CentOS (Red Hat Enterprise Linux)

I was trying to list the MPM prefork default configuration values in apache web server. In ubuntu, apache web server, I could access the values inside /etc/apache2/mods-available/mpm_prefork.conf file....
0
votes
3answers
62 views

Apache Server does not display the correct website

Hi I'm trying to learn Apache2 with a VPS. So far it's ok, but I can't find the reason for one problem that I face. I've a website setup in my /var/www/example.com folder. I created a config file for ...
2
votes
0answers
13 views

Apache Proxy URL exclusion wont work

we are running an Apache/2.4.6 on CentOS. i am trying to setup an Proxy Endpoint on the Apache which is passing requests to internal Servers (target servers). So far the Endpoint does what it should, ...
1
vote
0answers
53 views

Apache2 stopped working after upgrade to v2.4 ((38)Function not implemented: AH00141)

I was happily running apache2 and mysql on a Ubuntu 16.04 server with no problems, but yesterday I noticed that there were a bunch of updates available and I installed them using apt-get. One of the ...
0
votes
0answers
16 views

AH00898: Error reading from remote server returned

We are in midst of using the httpd server exclusively for all our application and we are facing the below issue. Every now and then we get this error in the error.log : [Mon Mar 22 07:33:34.544296 ...
0
votes
1answer
47 views

Weird IP address value in apache log

I have been running this instance of apache 2.4.17 for a long time. It is used as a proxy to a number of applications at the back. Recently I upgraded Piwik/Matomo, and it caused a bit of issue in the ...
0
votes
1answer
17 views

Dockerized apache gives forbidden on folder starting with dot, even after several attempts

thanks for looking at my question. I am trying to run a BOLT cms in a docker container with apache. I want to be able to view a folder located on the webserver at: http:///async/browse/cache/.version/ ...
0
votes
0answers
32 views

apache Defining worker for balancer error

I am trying to run <VirtualHost *:443> LogLevel debug <IfModule mod_proxy.c> ProxyPreserveHost On <Proxy balancer://test0102> BalancerMember ...
0
votes
0answers
13 views

Gzip compression or Mod_deflate not working

Our wordpress website we need to enable gzip compression we followed below instruction to enabled. we have wp rocket plugin this plugin automatically added compression mode_deflate lines in .htaccess ...

1
2 3 4 5
105