logo
Apache Lounge
Webmasters

 


About

Forum Index Downloads Search Register Log in  RSS Apache Lounge
 


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Apache Lounge is not sponsored.

Your donations will help to keep this site alive and well, and continuing building binaries.




Mod_Proxy? ProxyRemote? I'm not sure what's wrong...

 
Post new topic   Reply to topic    Apache Forum Index -> Apache third-party Modules



View previous topic :: View next topic  
Author Message
alexeydrob



Joined: 24 Dec 2015
Posts: 1
Location: Russia, Moscow

PostPosted: Thu 24 Dec '15 14:40    Post subject: Mod_Proxy? ProxyRemote? I'm not sure what's wrong... Reply with quote

Let's say I have a domain, we will call this acme.com. Godaddy DNS directs this url to WAN address 1.1.1.1, which is server A.

I wish to have this DNS stay pointed to server A , but for Server A to direct the web site request to another server, B, which is remote (not a part of the LAN). Let's say this IP address for Server B is 2.2.2.2. If would be nice if the first server would simply pass the URL so that server B will now handle all the requests, but I do not think this is possible, right? So I must use Proxypass. In the conf file for acme.com on server A (1.1.1.1) I have at the moment:
Code:
 
ServerName acme.com
  ProxyRequests Off
  <Proxy *>
  Order deny,allow
  Allow from all
  </Proxy>

  ProxyPass / http://2.2.2.2:80/
  ProxyPassReverse / http://2.2.2.2:80/
  <Location />

On server B (2.2.2.2), I have the regular conf file that takes the url and passes it to the correct folder. I think I am missing something. The redirection works well enough, and Server A is passing to Server B, but it must not be passing the URL string along because it tells me:
Quote:

The requested URL / was not found on this server.
Apache/2.4.10 (Ubuntu) Server at 2.2.2.2 Port 80

Can anyone shed light on what I happen to be missing?
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 2661
Location: Hilversum, NL, EU

PostPosted: Fri 25 Dec '15 16:26    Post subject: Reply with quote

What happens when you access http://2.2.2.2:80/ in your browser ?
Back to top


Post new topic   Reply to topic    Apache Forum Index -> Apache third-party Modules
Page 1 of 1