Mod_Proxy? ProxyRemote?

Discussion in 'Apache' started by Alexey.droby, Dec 23, 2015.

  1. #1
    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 serverA , but for Server A to move the web site 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:


      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 />
    Code (markup):
    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:
    Can anyone shed light on what I happen to be missing?
     
    Alexey.droby, Dec 23, 2015 IP
  2. oc-scott

    oc-scott Active Member

    Messages:
    420
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    68
    #2
    The mod_proxy rules appears to be correct. As per the error "The requested URL / was not found on this server." the destination URL is not working. Whether 2.2.2.2:80/ is loading?
     
    oc-scott, Mar 25, 2016 IP