Tag Info

Hot answers tagged

2

No, Apache's mod_proxy simply cannot send a request to multiple origin servers.


2

To start, I would set up Nginx as a reverse proxy to the third-party server. You can read about how that works here: http://nginx.com/resources/admin-guide/reverse-proxy/, an example setup might look like: server { listen 80; server_name example-proxy-domain.com; location /some/path/ { proxy_pass ...


1

So, my question is - how do I put http://www.baidu.com instead of / (SLASH) in GET request? The request you want to have is not a bad one, but just a proxy request. To create it just specify your target host as a proxy. Apart from that curl might be not the right tool to generate real bad requests.


1

What that's likely doing is checking the Host header that your web browser is sending to determine what domain to proxy to (and using wildcard DNS to make all the subdomains under their domain go to their server). That part's easy, but translating any resource requests to also use the proxied domain is a much trickier problem to solve. Something like ...


1

It would be pretty trivial to setup: Multiple wildcard A records (*.unblocksit.es, ..unblocksit.es, ..*.unblocksit.es, etc) - so any request goes back to their webserver. Apache config or PHP script that reads the requested URL, strips off the end, and proxies the content.


1

GitHub encourages forking. The Git repository you cited is a fork that differs from your Debian package. Assuming that you are using libapache2-mod-rpaf for Debian wheezy, inspect libapache2-mod-rpaf_0.6-7+wheezy1.dsc. Format: 3.0 (quilt) Source: libapache2-mod-rpaf Binary: libapache2-mod-rpaf Architecture: any Version: 0.6-7+wheezy1 Maintainer: Sergey B ...


1

You'll do much better to simply use a network device that can do outbound load balancing, based on sessions, percentage of bandwidth used, etc. I'm answering your question as if it was a request for info about a technology, rather than an explicit product request.


1

It tells you that the URI in the proxy pass directive can't be used in a regex location. This is because nginx can't replace the part of the URI matching the regex in the location block with the one passed in the proxy_pass directive a generic way. Simply imagine your location regex is /foo/(.*)/bar, and you specify proxy_pass http://server/test, nginx ...


1

Perhaps an easier solution is to have it all running on server1 and just tunnel pop/pops and imap/imaps to server2 (autossh is a simple solution, but there are probably some better ways). If you run autossh to maintain a ssh connection from server2 to server1: autossh -M 3319 -4 -R 993:localhost:993 -R 995:localhost:995 -NC server1 -f You could throw ...


1

A couple of possible solutions: Stand up Dovecot on server1, and configure it to use login referrals to send the clients over to server2. If your clients support login referrals, this could be the simplest solution. It would introduce a small delay with each new login, as the client connected to server1 and then got sent over to server2. Stand up Dovecot ...


1

covener is correct, mod_proxy is not able to do this. However, Gor was written to do exactly this. Hat tip to Arthur Lutz for posting the answer here.


1

You can selectively DNAT based on source IP address. for example: ipset destroy whitelist # this may error the first time ipset create whitelist hash:ip hashsize 32768 ipset -A whitelist <ip_address1> ipset -A whitelist <ip_address2> iptables -t nat -A PREROUTING -p tcp --dport 80 -m set --match-set whitelist -j DNAT --to 192.168.0.1 iptables ...


1

We plan on using it on an https site and my question is do we need to create exceptions in the firewall or the proxy server or both? Usually the proxy will be standing behind the firewall (fw), or put it another way the fw is between the proxy & the INET. The fw will allow the proxy to connect to port 443, 80 etc on any INET servers. The servers are ...


1

Extending Ladadadada's comment - it's very unlikely to be a CPU/Memory/storage IO issue - the bigest bottleneck is the network connection. There's potentially 2 solutions to this, although you haven't provided any details of the infrastructure. If you are trying to provide a forward proxy service to a large number of users, and potentially on a number of ...


1

For wget you need to define an environment variable with the your proxy: export SOCKS_SERVER=127.0.0.1:9999 wget http://example.com I don't use yum, but apparently you need to define the proxy in /etc/yum.conf proxy=socks5h://localhost:9999 See http://unix.stackexchange.com/questions/43654/how-to-use-socks-proxy-with-yum For info on using other ...


1

Well, what you want to do is called proxying, so maybe what you meant was to make Squid invisible and disable any caching features ? If so, disable caching by removing all cache_dir and refresh_pattern directives from the configuration file, and add the following to make the proxy invisible to the eyes of the web servers : forwarded_for transparent via off ...



Only top voted, non community-wiki answers of a minimum length are eligible