Re: IP address used by Apache reverse proxy?

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

 



When you mention the DocumentRoot, do you mean just the setting for vhosts or the document root for the reverse proxy?  Are you telling me I don't need a <Directory> directive if I have a ProxyPass "/" "http://target/" line?

And is it fine to have the ProxyPass defined like this:
ProxyPass "/" "E:/programming/visual_studio_2017/Projects/currency_converter/Release/" ?  That's the path to the directory on my machine.

Is the stuff from line 541 to line 546 not needed?

From: Frank Gingras <thumbs@xxxxxxxxxx>
Sent: Tuesday, September 25, 2018 7:08 AM
To: users@xxxxxxxxxxxxxxxx
Subject: Re: IP address used by Apache reverse proxy?
 
Osman,

Take a step back, you're all over the place. You need to focus on one task at a time, else you will never finish configuring your server.

For the vhost, again, if you use ProxyPass / http://target/, then you do *not* need set set a DocumentRoot, as every single request will be proxied.

If you proxy a specific URI path, i.e. ProxyPass /foo http://target/bar, then do *do* need a DocumentRoot to handle the requests that do not begin with /foo.

For SSL/TLS, determine first if you want httpd to do the termination, or if your backend speaks TLS.

On Mon, Sep 24, 2018 at 4:45 PM Osman Zakir <osmanzakir90@xxxxxxxxxxx> wrote:
I got a subdomain from freedns.afraid.org that took the IP address of my computer. I tried to use it for my app, but when I navigated to the subdomain, it took me to the login page for my router's admin settings.  I tried specifying the port number I set on the Apache httpd configuration file, but that got me to an error page indicating that the browser can't find the site.  

I'm attaching httpd.conf again.  I need to know about the PassEnv lines as well, actually.  And also the stuff from line 541 downward.  

What am I still doing wrong?  Please help.  Thanks.

From: Eric Covener <covener@xxxxxxxxx>
Sent: Monday, September 24, 2018 7:08 PM
To: users@xxxxxxxxxxxxxxxx
Subject: Re: IP address used by Apache reverse proxy?
 
On Mon, Sep 24, 2018 at 7:30 AM Osman Zakir <osmanzakir90@xxxxxxxxxxx> wrote:
>
> The Apache document root and the document root for the reverse proxy should be different, right?

Isn't Apache and the reverse proxy one and the same?

 > 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.

The DocumentRoot won't ever be used with your ProxyPass /.
If you later had ProxyPass of some more specific context root, like
/app, then your document root would be used when the request didn't
match the ProxyPass.

The relative position doesn't matter as long as they are in the same context.

> If I have this:
>
> <<Directory "E:/programming/visual_studio_2017/Projects/currency_converter/Release">
> </Directory>

> What should I put in there?

What do you expect Apache to do with files in there? You've been
talking about a reverse proxy.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux