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

2018-09-24 Thread Osman Zakir
I'm attaching the httpd.conf file here because I forgot to do so in the previous message. Please let me know if it's fine now. I need a suggestion for a good place where I can get a free subdomain name, preferably one that has a .com extension and which will take my computer's IP address.

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

2018-09-24 Thread Osman Zakir
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 directive? Or do I just have to have that somewhere above or below the ProxyPass line? And if I specify the

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

2018-09-24 Thread Eric Covener
On Mon, Sep 24, 2018 at 7:30 AM Osman Zakir 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

Re: [users@httpd] Rewrite with proxy adds document root

2018-09-24 Thread Eric Covener
On Mon, Sep 24, 2018 at 11:46 AM David Tkacik wrote: > > Thanks Eric, > > But if I have multiple rewrite rules and rewrite conditions, how do I speficy > for which cond and rule I want to apply it in context of a URI ? > > Would waterfall work here ? > > For example in one config: > >

[users@httpd] Rewrite with proxy adds document root

2018-09-24 Thread David Tkacik
I have this config included via Include conf.d/myconfig/*.conf within my virtualhost. ProxyAddHeaders off RewriteEngine on RewriteCond %{QUERY_STRING} ^123 [NC] RequestHeader set "X-API-KEY" "proxied" RewriteRule (.*) "https://${HOST}$1; [QSD,P,L] But the above rule is also proxying the

Re: [users@httpd] Rewrite with proxy adds document root

2018-09-24 Thread David Tkacik
Thanks Eric, But if I have multiple rewrite rules and rewrite conditions, how do I speficy for which cond and rule I want to apply it in context of a URI ? Would waterfall work here ? For example in one config: RewriteCond %{QUERY_STRING} ^123 [NC] RequestHeader set "X-API-KEY" "proxied"

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

2018-09-24 Thread Osman Zakir
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 directive I've added near by reverse

Re: [users@httpd] Rewrite with proxy adds document root

2018-09-24 Thread Eric Covener
On Mon, Sep 24, 2018 at 11:14 AM David Tkacik wrote: > > I have this config included via Include conf.d/myconfig/*.conf within my > virtualhost. > > > ProxyAddHeaders off > RewriteEngine on > RewriteCond %{QUERY_STRING} ^123 [NC] > RequestHeader set "X-API-KEY" "proxied" > RewriteRule (.*)

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

2018-09-24 Thread Frank Gingras
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.

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

2018-09-24 Thread Osman Zakir
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,