All Questions
Tagged with apache-2.4 proxy
138
questions
0
votes
0
answers
180
views
Apache & PHP-FPM: AH01144: No protocol handler was valid for the URL /index.php (scheme 'unix')
This error occurs despite all the fixes that I Googled.
Apache was loaded next modules:
# /usr/local/apache/bin/apachectl -M | grep proxy
[Thu Mar 14 22:37:35.825542 2024] [core:trace3] [pid 9087:tid ...
1
vote
0
answers
605
views
Apache Server Forward Proxy : How to redirect to a custom page?
On Apache server (Xampp) I have make a forward proxy for firewall filtering that works well, but I don't understand how to use RewriteRule to redirect a forbidden url to a custom error page.
I wish to ...
1
vote
1
answer
2k
views
Apache reverse proxy mTLS only between client and proxy, regular TLS between proxy and backends
am trying to create an apache reverse proxy (for webservices) where i need Imutual authentication (mTLS) between clients and the proxy itself, but i don't need mTLS between the proxy & the ...
0
votes
0
answers
97
views
Restrict Apache forward proxy to a remote url set
Is there a robust way to restrict Apache forward proxy to a set of remote URLs?
Now I can see the only solution with multiple identical <Proxy "..."> blocks as:
<Proxy "http://...
2
votes
2
answers
7k
views
HTTP and websocket on the same port and domain behind reverse proxy
I wanted to try Node-Red and have installed it on my Ubuntu server. This server runs an apache reverse proxy but I can't get it to work right. If I create a virtualhost for the HTTP connection I can ...
0
votes
0
answers
154
views
Apache 2 proxy external images from any domain
I am working on a project that would require my server to proxy images from any domain.
The idea would be that https://icontrolthisdomain.net/https://somerandomdomain.org/some-random-route/image.png ...
-1
votes
1
answer
199
views
My server is attacking other servers
I've been reached by OVH multiple times regarding a dedicated server which I bought from them, and they're saying that the server is attacking other hosts on their network.
The first time, the server ...
0
votes
1
answer
393
views
Apache 2 basic reverse proxy config not working, getting 404 error
I started a new server in a virtual machine, and I can access its homepage from the browser. I set up a docker container hosted on port 90 which I can also access. To link /app/ to localhost:90 I ...
0
votes
1
answer
467
views
How can I run TLS on Apache2 Proxy behind port forwarding
I have a problem with apache2 proxy in TLS using port forwarding. I manage to make it work correctly in HTTP, but as soon as I try to make it work in HTTPS, Apache shows the message
Service ...
0
votes
0
answers
307
views
reverse proxy Apache that redirects filtering by ip and path
I am trying to create a reverse proxy with apache that if it receives a request with /thisismypath as path and the ip address that make that request is 192.168.2.12 the it should redirect to 192.168.1....
0
votes
1
answer
903
views
What is the Apache equivalent of Nginx set_real_ip_from and real_ip_header for proxy protocol?
Nginx has set_real_ip_from and real_ip_header proxy_protocol directive to restrict the trusted IP address of the TCP load balancer.
https://docs.nginx.com/nginx/admin-guide/load-balancer/using-proxy-...
1
vote
1
answer
2k
views
Apache 500 Error when proxying api subdirectory
I am trying to redirect PUT request for a specific endpoint to another host.
The said endpoint resides under /internal and accepts only PUT requests.
The other endpoints under /internal will continue ...
0
votes
0
answers
2k
views
proxy:error] [pid 137137] (111)Connection refused: AH00957: HTTP: attempt to connect to ip:49000
My site was running fine and then I updated nuxt.config.js. Then after that, the site starts to show Service Unavailable.
I am using pm2 to start / deploy the app. Its vps server with apache in it.
...
1
vote
0
answers
790
views
Apache Reverse Proxy rewrite rule for complex URL. "Too Many Redirects" error
I am trying to configure a reverse proxy to my backend server.
This is my previous configuration which is working.
Define REMOTE_ADDR proxyserver.domain.com
<VirtualHost *:443>
...
0
votes
1
answer
3k
views
"Bad Request" when sending request to Socket.IO app via Apache
What I have
I have Socket.IO app letteraly from template
const express = require('express');
const app = express();
const http = require('http');
const server = http.createServer(app);
const { Server }...
0
votes
1
answer
314
views
Apache proxy removes double slash
I'm trying to send requests to a docker image by using apache's proxy functionality. The request to the docker should look something like: https://127.0.0.1:8282/somepath/https://somedomain/someimage....
1
vote
1
answer
2k
views
Apache ProxyPass to Shared Ip Address for Domain
I have a case where I need to proxy pass a domain (domain1.com) to a different domain (domain2.com) hosted on a shared ip address (192.168.168.168), but domain2.com DNS is pointed other than the ...
0
votes
1
answer
113
views
Apache Rewrite to Nginx with ProxyPass
I'm trying to redirect an Subdomain hosted on an Apache Webserver* with .htaccess to an external URL with hiding this external URL. The .htaccess file looks like this:
RewriteEngine On
RewriteCond %{...
1
vote
1
answer
2k
views
Replicate nginx reverse proxy config using apache
nginx config:
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
ssl_certificate /path/to/tls/tls.crt;
ssl_certificate_key /path/to/tls/tls.key;
server_name the.domain....
1
vote
0
answers
166
views
Why would TLS version in one config cause another to break?
I have an Apache proxy that has several VHosts. Some of these are legacy configs that were before my time. Long story short, I removed some .crt files on the server that had expired, and forgot to ...
0
votes
2
answers
1k
views
What do I need to do to get ProxyPass directives to register?
I am trying to make a MyCollab CE installation available via SSL, under Apache 2.4.38 (Debian). At present I am seeing ProxyPass not recognized. I have:
ProxyPass / http://localhost:8080/
...
1
vote
1
answer
921
views
apache2.4 reverse proxy to nginx gitlab server [closed]
I'm currently running an owncloud server based on a apache 2.4 webserver on my raspberry pi 4 8GB (working on dietpi 7.3) which works great i have a public domain setup and use letsencrypt to create ...
1
vote
1
answer
583
views
HTTP CONNECT requests in Apache web server log
I have an Apache webserver which serves the domain www.mypersonaldomain.com and I found these entries (and more like these) in access log.
88.218.227.227 - - [28/May/2021:08:56:29 +0000] "CONNECT ...
1
vote
0
answers
180
views
Apache HTTP proxy work for some destination ip and receive 502 Bad Request from other destinations
I've an HTTP proxy like this:
Listen 8240
<VirtualHost *:8240>
ProxyRequests On
<Proxy "*">
SetEnv force-proxy-request-1.0 1
SetEnv proxy-nokeepalive 1
</Proxy>
</...
1
vote
0
answers
176
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
0
answers
480
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 ...
1
vote
0
answers
654
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 ...
1
vote
0
answers
412
views
Apache forward proxy with SSL is not using HTTPS?
I've configured a forward proxy in Apache 2.4, but my requests through it result in a 400:
curl: (56) Received HTTP code 400 from proxy after CONNECT
# Using the proxy results in a 400
https_proxy=...
3
votes
1
answer
1k
views
Apache CONNECT request logs - should I be concerned?
I was going through my Apache2 access logs this evening, when I found what appear to be CONNECT requests in the log file:
...
5*.**.***.**8 - - [28/Jan/2021:21:40:41 +0000] "GET http://www....
1
vote
0
answers
565
views
Subfolder redirection to another port
There are two services on the server's two ports 192.168.0.42 in the LAN.
80 - wordpress with blog
8080 - java application (chat)
Domain redirected to router which forwards traffic from 80 and 443 ...
2
votes
2
answers
5k
views
What does SetHandler "proxy:unix:..." do?
What does the Apache "proxy:unix:..." handler do, and where is it documented? I see it used here and there, like:
SetHandler "proxy:unix:..."
For example in this recent question, ...
1
vote
1
answer
16k
views
How to increase Apache's timeout correctly when mod_proxy is used
Background:
I have machine to machine communication system, where client is sending every now and then data to Apache Server. Communication is slow as mobile 2G is used for communication. Apache uses ...
-1
votes
1
answer
419
views
Apache redirect https to http
We would like to redirect an apache website to a remote tomcat server, but the tomcat does not use https.
The apache is hosted on AWS so it does use https.
We have a mobile app that should target ...
5
votes
0
answers
7k
views
Intermittent proxy error in Apache: "Partial results are valid but processing is incomplete" with "AH01110: error reading response"
I'm using Apache 2.4.43 on CentOS 7.8 with Varnish 6 and PHP-FPM to serve a Magento 2 website.
Varnish listens on port 80. Apache listens on 8080 to serve content to Varnish, and also port 443 which ...
1
vote
0
answers
210
views
How to set up host redirection in a forward proxy in apache?
I have set up an apache proxy on my dev computer, so that I can redirect all requests to prod.example.com to staging.example.com, for reasons that are outside of the scope of this question. The ...
0
votes
0
answers
362
views
Apache forward proxy with mod_rewrite
The Story:
I've to (forward) proxy a request - whith certificate checking - to a site which has more than 96 character long URL. The Apache mod_proxy implementation doesn't work URLs that longer 96 ...
0
votes
1
answer
6k
views
AH00898: Error during SSL Handshake with remote server (localhost)
I am trying to boot up an instance of GhostCMS on my Debian 10 (buster) server. I planned on doing so using an apache (v2.4.38) reverse proxy. For the Ghost setup I used ghost-cli as described in the ...
0
votes
0
answers
292
views
Nginx reverse proxy and Apache serve on a subpath
I have a Node server running on background, and have an PHP Application running too, my question is how can I serve the Node server (using nginx) on the main path (/) while the PHP app (using Apache) ...
1
vote
2
answers
6k
views
Permission denied: AH02478: failed to create proxy mutex
Running a local centos 7 apache webserver, recently it stopped working. Journalctl don't say anything other then service failed. Only the error_log in /var/log/httpd/ says:
[core:notice] [pid 5026:...
0
votes
1
answer
85
views
put many websites behind a reverse proxy [closed]
I have a bunch of temporary domains as the following:
app1.dummydomain.com
app2.dummydomain.com
app3.dummydomain.com
...
these apps may reside on different servers with different IPs.
now I want ...
0
votes
0
answers
418
views
apache redirector to redirect custom url to aws internal dns name
I am using reverse proxy redirecting to internal DNS name of load balancer. As the internal DNS name of Load balancer is too long, I am getting an error
ProxyPass worker hostname (internal-xxxxxx-...
1
vote
1
answer
1k
views
How to safely use apache2 to proxy multiple websites?
Sorry, I have mostly worked with NGINX so far. I would like to use apache 2 (on a host) to forward https and http traffic to several websites running on VirtualBox VM's. Each VM has several web sites ...
0
votes
1
answer
2k
views
Webapp not working with proxy
On a single server I'm using to demo a system, I have a static website running on apache2 and a demo web app running on an instance of tomcat. Both are working fine when accessed directly. I've ...
0
votes
2
answers
3k
views
Proxypass changing URL Apache Reverse Proxy
I am trying to connect my jupyter notebok server (:8888 port) via reverse proxy server
I have such rules:
ProxyPass "/serv8888" "http://localhost:8888"
ProxyPassReverse "/serv8888" "http://...
1
vote
0
answers
267
views
Cannot redirect/proxy from Apache to lighttpd server
I have a home server that is accessible from outside with a static IP and port http://<homeip>:10001. This is a Lighttpd server.
I also own a website https://example.com with Apache, I've ...
1
vote
0
answers
221
views
Apache Proxy should retry connections to domain with multiple IPs
I have a proxy server running Apache 2.4. It is used by clients to connect to fcm.googleapis.com.
The configuration is quite simple:
Listen 8099
ServerTokens Prod
ServerSignature Off
<...
1
vote
1
answer
392
views
How to stop nginx 301 auto redirect when trailing slash is not in URI? (2)
I am facing the similar issue as described here: How to stop nginx 301 auto redirect when trailing slash is not in URI?
Yet in my case the confifuration is a little bit different. I am using the ...
1
vote
1
answer
2k
views
Apache reverse proxy not passing custom headers to the target server
I am not sure if this is the right place to ask this kind of question but in the same time I don't know any better place, so please bear with me.
I have configured Apache as reverse proxy to my ...
0
votes
1
answer
147
views
Ngnix Reverse Proxy With SSL Certificate
I want to configure a proxy server with Ngnix to redirect to https server. The problem is that I don't have the private key of the .crt file of the web server which I have downloaded from the browser.
...
1
vote
1
answer
4k
views
Apache error "ProxyPass unknown Worker parameter" when using "upgrade=WebSocket"?
I am trying to relay the WebSocket connection of V2Ray with Apache according to This post, and the snippet below worked before.
<LocationMatch "/{ws_path}}/">
ProxyPass ws://127.0.0.1:{...