Re: IP address used by Apache reverse proxy?

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

 



I'm trying to ask if the non-proxied files served by the Apache httpd should be in a separate directory compared to the reverse proxied one(s).  Right now they're separate since the non-proxied document root is htdocs as in the default configuration.  The <Directory> directive I've added near by reverse proxy configuration lines is meant to be for the directory for the reverse proxy.  

I just want to have a <Directory> directive configuration that would work best for the reverse proxy.  I don't know what to do for that, though.  Is it okay to just make it the same as the one for the htdocs directory?  

I do still need a suggestion for a good subdomain provider where the subdomain would take my computer's IP address (and I'll want it to update to the new IP address if I switch countries and get a new WiFi router and modem).  It should also preferably give me a subdomain with a .com extension, if that's possible.  

I also want to know how to switch to HTTPS on Apache.  What part of the documentation do I read to find out how to switch to HTTPS for a reverse proxy?  I'll do the switch after getting it to work for plain HTTP, of course.  Just thought I'd ask now.  And is there an Include line I have to uncomment for the SSL stuff to work, or do I have to use a separate configuration for that and not httpd.conf itself?  I see a openssl.cnf file in the same directory as httpd.conf.  

I've attached httpd.conf to this message as well.  Please let me know if it's okay so far, aside from the <Directory> directive for the reverse proxy which is left empty because I'm trying to ask what to put in there.

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

Attachment: httpd.conf
Description: httpd.conf

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