[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [users@httpd] IP address used by Apache reverse proxy?

The Apache document root and the document root for the reverse proxy should be different, right?  And do you mean I need to specify the document root for the reverse proxy via the <Directory> directive?  Or do I just have to have that somewhere above or below the ProxyPass line?  And if I specify the reverse proxy document root in ProxyPass, I don't also need to specify it for the virtual host, right?  As for the port number for the reverse proxy, I'll try 8000 for now.

If I have this:

<<Directory "E:/programming/visual_studio_2017/Projects/currency_converter/Release">

What should I put in there?  

From: Eric Covener <covener@xxxxxxxxx>
Sent: Monday, September 24, 2018 12:17 AM
To: users@xxxxxxxxxxxxxxxx
Subject: Re: [users@httpd] IP address used by Apache reverse proxy?

On Sun, Sep 23, 2018 at 2:09 PM Osman Zakir <osmanzakir90@xxxxxxxxxxx> wrote:
I'm talking about the document root of the reverse proxy server.  How do I set it?

Use the DocumentRoot directive and a <Directory> section that matches, just as your defauly configuration surely already had.

And do I have to also run the server that I want to put behind the reverse proxy for this to work, or is that not necessary? 

The proxy server isn't starting it for you, so yes it's necessary for you to start it.

And please also tell me if I have the reverse proxy configuration stuff done correctly in the httpd.conf file.  I'm attaching it to this message. 

Looks wrong, it is proxying back to port 80.

Along with that, I also want to know how to get a subdomain so I can use that and its IP address for my virtual host and ProxyPass settings as needed.  I'll get a free subdomain and instead of a top-level domain if that's okay for this.  

Find a provider of free subdomain DNS.  Determine your computers IP address.  Fill out the free providers form and associate the two.

What I'm doing is having the Apache httpd listen on port 80 while I have the server I want to put behind the reverse proxy listen on port 8080.  When I tried to put both on the same port, and tried to run the server I'm trying to proxy, I got an error on that server saying that I'm trying to access a port I have no permission to access.  

Generally you'll need to pick different ports.