Questions tagged [proxypass]

ProxyPass in Apache, and proxy_pass in nginx, are directives used to specify which backend or remote server should handle the incoming http request

ProxyPass in , and proxy_pass in , are directives used to specify which or should handle a given . This can be used to implement a , as well as a forward and/or transparent , too.


ProxyPass in :

https://httpd.apache.org/docs/current/mod/mod_proxy.html#proxypass


proxy_pass in :

http://nginx.org/r/proxy_pass

http://ngx.su/src/http/modules/ngx_http_proxy_module.c#ngx_http_proxy_pass

681 questions
0
votes
1 answer

Proxypass and ProxyPassReverse replication on centOS htaccess file

I have been trying to replicate ProxyPass and ProxyPassReverse on my website hosted on Hostgator Centos server. I have a tomcat application running on Amazon ec2 with URL http://myec2address.com:8080/portal/ I successfully replicated the use case on…
0
votes
0 answers

nginx proxy_pass not work with subdirectory

i want to rewrite and proxy EVERY url by this configure, this url not proxy: http://example.com/qwe/ewq and proxy work when use this: http://example.com . i think one solution is remove everything else from url. another one is just rewrite and…
max
  • 1
0
votes
2 answers

ProxyPass redirecting internally

I'm trying to set up two Apache ProxyPass rules to direct to different Nexus servers. What I want is: http://mainserver/nexus -> http://server1:8080/nexus and http://mainserver/nexus-pro -> http://server2:8081/nexus I had it set up to work with…
RCross
  • 4,919
  • 4
  • 44
  • 42
0
votes
1 answer

Nginx redirect to sign in

My proxy pass go in example:7456/nix/sign_in, but when I type login and password, and click submit button server not stay on example:7456/nix/sign_in and redirect to example:7456/sign_in. server { listen 7456; charset utf-8; …
Erihon1890
  • 45
  • 7
0
votes
1 answer

https somehow get's re-writen into http and causes me error

Simply put, I have a custom software that runs it's own webserver. I then found instructions on how to use apache as a proxy that will enable ssl for that site. (long story short, my custom software doesn't support ssl and it's not an option) When I…
mlebel
  • 361
  • 1
  • 4
  • 6
0
votes
0 answers

How to show an external domain as a subfolder with ProxyPass and Varnish

I have configured a vhost to show an external domain as a subdir: ServerName example.com DocumentRoot /home/www/example.com ... ProxyPass http://www.externaldomain.com/ SetEnv…
0
votes
1 answer

Default SSL and ProxyPass redirect to another domains (on another computer) with it's own SSL

The question is is it possible to do following on Ubuntu with apache2, ProxyPass and SSL enabled: I have main server, let's say it's domain is http://domain.com - working OK I have SSL enabled with certificate for domain.com and www.domain.com and…
milenmk
  • 534
  • 7
  • 17
0
votes
2 answers

Apache ProxyPass Tomcat

I have some trouble with Apache and Tomcat server inside same machine. I want redirect a virtual host, kb.domain to an tomcat app kb. I have read some post on internet but I don't found a solution to my problem. My configuration have one Apache…
stefanopulze
  • 59
  • 2
  • 10
0
votes
1 answer

Nginx rewrite root url

Im using an nginx proxy, and am trying to replace the base url with my server url. For example I would like to proxy www.google.com through my localhost:8000, and replace all base url instances (www.google.com) with (localhost:8000). My nginx.conf…
Yogzzz
  • 2,735
  • 5
  • 36
  • 56
0
votes
1 answer

nginx proxy_pass domain with subfolder to localhost with port test.com/test to localhost:9001

i am trying to get nginx to pass "your-domain.com/test" to http://localhost:{9001} i am new to nginx and had success with the following: server { listen 80; server_name your-domain.com; location / { proxy_pass…
divramod
  • 41
  • 1
0
votes
1 answer

ProxyPass to internal host and custom unavailability message

I have a school server which is accessible from the internet under certain domain name. I managed to establish a proxy pass to a host from internal local network so as to make library OPAC available: ProxyPass /library/ 10.0.5.5 It works fine, but…
0
votes
1 answer

Nginx doing a proxy_pass to complete URL

My servlet is sending an X-Accel-Redirect with the complete URL like /cached/http://example.com/test/index.html. It has to be complete URL because of our business logic which determine where the resource exist on the web. And I want nginx to…
Rahul
  • 824
  • 1
  • 12
  • 27
0
votes
0 answers

Replacing Apache2 for Varnish as reverse proxy

I'm having some troubles replacing a Apache2 reverse proxy rule for a Varnish ACL. The apache rule is: ProxyPass http://192.168.0.123/OtherSite My Varnish ACL: if (req.url ~ "^/(?i)MySite") { set…
Renato Todorov
  • 560
  • 3
  • 15
0
votes
1 answer

linux apache /etc/network/interfaces settings are not staying

I am using mod_proxy + virtual hosts on apache2 to redirect my subdomains like redmine.domain.com or git.domain.com to specific containers where the matching services are installed. So, each service is installed on a different container (a virtual…
valentin
  • 2,596
  • 6
  • 28
  • 48
0
votes
1 answer

Apache proxypass or rewrite rules

I'm actually developping a small php website (only php, no java) and I would like to figure out something. When I have this url called URL A: http://www.domain.com/?toto, everything's working I would like to rewrite it to http://www.domain.com/toto…
Lord-Y
  • 132
  • 2
  • 8