mod-proxy

Configuring mod_proxy for Apache to reject wrong domain requests

六眼飞鱼酱① 提交于 2019-12-11 02:05:01
问题 Recently, I noticed my website was running slower and slower. I discovered 8GB Apache logs on my server (I run a Play!Framework web application on a Debian 6 server) and a bandwidth completely overloaded. Which was completely insane for a small personal website with a few views per day. After investigating and gathering some information, I discovered my mistake : on my Apache configuration, I had uncommented the line "ProxyRequests On", so my server was freely used as a free proxy for

How to disable buffering with apache2 and mod_proxy_fcgi?

二次信任 提交于 2019-12-10 17:53:04
问题 I'm using mod_proxy_fcgi with apache 2.4 on a debian Jessie with my C++ application which does ServerSentEvents with libfcgipp. My problem is, that apache still buffers my response data. I confirmed that it isn't buffered by the libfcgipp library by using wireshark: After starting the fcgi application via spawn-fcgi , the data gets send to the apache web server as soon as possible. But in my browser (which I use for testing, later there will be a C++ client) it only shows up after I "killed"

Setting up mod_proxy_html on CentOS 7

给你一囗甜甜゛ 提交于 2019-12-10 11:25:19
问题 I'm trying to do some testing on my web server to make sure reverse proxy is working as expected before putting it on a live environment, but I am running into some problems with mod_proxy and mod_proxy_html. I have 2 virtual hosts, 1 on port 80 and 1 on port 8080. My goal is to have incoming requests for www.example.com/path/ to come in on port 80, and get reverse proxied to port 8080. Here are my virtual host settings: <VirtualHost *:8080> ServerName www.example.com:8080 DocumentRoot /var

Apache websocket redirection to Tomcat: mod_proxy and mod_proxy_wstunnel

我只是一个虾纸丫 提交于 2019-12-10 10:44:37
问题 I am trying to redirect traffic from Apache to Tomcat by using mod_proxy and mod_proxy_wstunnel modules. HTTP traffic is redirected without problems but I am not able to successfully redirect websocket traffic with any configuration I tried so far. I am using Apache 2.4.28 and Tomcat 8.5.13 I must say when I use Tomcat without Apache, websockets works perfectly fine: The Tomcat connector that works for this configuration is next: <Connector URIEncoding="UTF-8" compressableMimeType="text/html

ProxyPass and ProxyPassReverse for Django app

心已入冬 提交于 2019-12-10 09:45:48
问题 I have a follow up question from my original Django serving question which was how to develop Django apps and serve them from the same server as my main PHP-based site (all part of a larger migration of my website from a static and PHP driven one to a series of Django apps). I couldn't quite use the name server solution I was provided with, and instead just deployed my Django applications on a different port (8000) using mod_wsgi. Now, however, I need to actually integrate the Django

Understanding mod_proxy and Apache 2 for writing a comet-server

廉价感情. 提交于 2019-12-09 16:11:33
问题 I currently try to implement a simple HTTP-server for some kind of comet-technique (long polling XHR-requests). As JavaScript is very strict about crossdomain requests I have a few questions: As I understood any apache worker is blocked while serving a request, so writing the "script" as a usual website would block the apache, when all workers having a request to serve. --> Does not work! I came up with the idea writing a own simple HTTP server only for serving this long polling requests.

OAuth token validation from HAProxy or Apache mod_proxy

本小妞迷上赌 提交于 2019-12-09 12:48:47
问题 I have a microservice deployed on 3 nodes sitting behind a HAProxy load balancer all inside internal network. The services are protected using OAuth2 APIS authorization server. Now, I want to move the HAProxy to DMZ. And I want to reject requests that do not have auth token in the header and also validate the auth token by calling OAuth REST API. In HAProxy I couldn't find a way to do this. There is an option httpchk which can be used for healthcheck. I'm looking for a similar feature that

JDBC Connection Pooling in a Tomcat Cluster Environment

烈酒焚心 提交于 2019-12-07 13:10:07
问题 I'm relatively very new to this, but I have a Tomcat cluster set up (using mod_proxy from httpd) with session replication (separate redis server) for fault-tolerance. I have a couple of questions about this setup: My application (spring/hibernate) has a different database per user. So the problem here is that the data source (using spring along with hibernate for persistence) is created at Tomcat level. Thus, whatever connection pooling I do will be at server level. As per the cluster

web apps on localhost on different ports accessed via port 80

别来无恙 提交于 2019-12-07 11:49:41
问题 On my laptop, with Apache I have different web apps in various directories on my laptop, that I can start using simple webservers listening on different ports. For example ~/app1/./app.pl >> listening on http://localhost:3000/ ~/app2/./app.pl >> listening on http://localhost:3001/ ~/app3/./app.pl >> listening on http://localhost:3001/ I want to access the above from my browser like so http://localhost/app1 http://localhost/app2 http://localhost/app3 Can I do the above with mod_proxy? If so,

Can stand-alone Jetty be used as a reverse proxy (without Apache mod-proxy)

眉间皱痕 提交于 2019-12-07 01:02:55
问题 I have an application which includes a Jetty web server that we distribute to multiple user to deploy on their servers. Based on some new requirements, we need to include reverse proxy capabilities. The Jetty documentation talks about using Apache as the reverse proxy in front of Jetty. While this works, it would be much easier to just use Jetty and not have to carry around Apache. Is there any way to configure standalone Jetty as a reverse proxy? 回答1: Sure you should be able to use the