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

2018-09-25 Thread Gillis J. de Nijs
I'm starting to think you don't know what you need, and we don't understand
what you want.  So, drop everything you (think you) know, and start over.

What are you trying to do?  Not how you're trying to do it, or why, but
WHAT do you want to do?  WHAT components are involved?

I'm thinking it's along the lines of:
- I have a subdomain registered at so-and-so.
- I want to use that subdomain to host a site on my local computer.
- The computer is behind my home router.
- I have a static public IP at home (on my router - or - it is bridged to
my computer)
- etc, etc...

On Tue, Sep 25, 2018 at 10:45 AM Osman Zakir 
wrote:

> 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  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 
> *Sent:* Tuesday, September 25, 2018 7:08 AM
> *To:* users@httpd.apache.org
> *Subject:* Re: [users@httpd] 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 
> 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 
> *Sent:* Monday, September 24, 2018 7:08 PM
> *To:* users@httpd.apache.org
> *Subject:* Re: [users@httpd] IP address used by Apache reverse proxy?
>
> 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  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:
> >
> > < "E:/programming/visual_studio_2017/Projects/currency_converter/Release">
> > 
>
> > 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-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


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

2018-09-25 Thread Osman Zakir
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 
 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 
Sent: Tuesday, September 25, 2018 7:08 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] 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 
mailto:osmanzaki...@hotmail.com>> wrote:
I got a subdomain from freedns.afraid.org<http://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 mailto:cove...@gmail.com>>
Sent: Monday, September 24, 2018 7:08 PM
To: users@httpd.apache.org<mailto:users@httpd.apache.org>
Subject: Re: [users@httpd] IP address used by Apache reverse proxy?

On Mon, Sep 24, 2018 at 7:30 AM Osman Zakir 
mailto:osmanzaki...@hotmail.com>> 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  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:
>
> < "E:/programming/visual_studio_2017/Projects/currency_converter/Release">
> 

> 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-unsubscr...@httpd.apache.org<mailto:users-unsubscr...@httpd.apache.org>
For additional commands, e-mail: 
users-h...@httpd.apache.org<mailto:users-h...@httpd.apache.org>


-
To unsubscribe, e-mail: 
users-unsubscr...@httpd.apache.org<mailto:users-unsubscr...@httpd.apache.org>
For additional commands, e-mail: 
users-h...@httpd.apache.org<mailto:users-h...@httpd.apache.org>


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.

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 
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 
> *Sent:* Monday, September 24, 2018 7:08 PM
> *To:* users@httpd.apache.org
> *Subject:* Re: [users@httpd] IP address used by Apache reverse proxy?
>
> 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  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:
> >
> > < "E:/programming/visual_studio_2017/Projects/currency_converter/Release">
> > 
>
> > 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-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org


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, 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 
Sent: Monday, September 24, 2018 7:08 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] IP address used by Apache reverse proxy?

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  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:
>
> < "E:/programming/visual_studio_2017/Projects/currency_converter/Release">
> 

> 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-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



httpd.conf
Description: httpd.conf

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

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 
proxy configuration lines is meant to be for the directory for the reverse 
proxy.

I just want to have a  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  directive for the reverse proxy which 
is left empty because I'm trying to ask what to put in there.

From: Eric Covener 
Sent: Monday, September 24, 2018 7:08 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] IP address used by Apache reverse proxy?

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  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:
>
> < "E:/programming/visual_studio_2017/Projects/currency_converter/Release">
> 

> 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-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



httpd.conf
Description: httpd.conf

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

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  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:
>
> < "E:/programming/visual_studio_2017/Projects/currency_converter/Release">
> 

> 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-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



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.

From: Eric Covener 
Sent: Monday, September 24, 2018 12:17 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] IP address used by Apache reverse proxy?



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

Use the DocumentRoot directive and a  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.



httpd.conf
Description: httpd.conf

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

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

<
​


What should I put in there?

From: Eric Covener 
Sent: Monday, September 24, 2018 12:17 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] IP address used by Apache reverse proxy?



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

Use the DocumentRoot directive and a  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.



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

2018-09-23 Thread Eric Covener
On Sun, Sep 23, 2018 at 2:09 PM Osman Zakir 
wrote:

> I'm talking about the document root of the reverse proxy server.  How do I
> set it?
>

Use the DocumentRoot directive and a  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.

>
>


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

2018-09-23 Thread Osman Zakir
I'm talking about the document root of the reverse proxy server.  How do I set 
it?

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

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.

Any help would be appreciated.  Thanks in advance.

From: Eric Covener 
Sent: Sunday, September 23, 2018 10:56 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] IP address used by Apache reverse proxy?



On Sun, Sep 23, 2018, 10:55 AM Osman Zakir 
mailto:osmanzaki...@hotmail.com>> wrote:
I'm sorry to keep bothering you about this, but would you please answer my 
questions?  How do I fix the problem of the 503 error,

Read the logs on both sides to determine the problem.


and how do I specify the address in the filesystem for the files I want to 
serve with the reverse proxy server?

Filesystems don't have addresses, and reverse proxies don't usually work out of 
the filesystem at all. You will have to be more specific.




From: Frank Gingras mailto:thu...@apache.org>>
Sent: Saturday, September 22, 2018 6:38 AM

To: users@httpd.apache.org<mailto:users@httpd.apache.org>
Subject: Re: [users@httpd] IP address used by Apache reverse proxy?

You can define a IP vhost too if you like. It doesn't matter.

And yes, read the official documentation about vhosts, as linked before.

On Fri, Sep 21, 2018 at 7:21 PM Osman Zakir 
mailto:osmanzaki...@hotmail.com>> wrote:
Is that for IP-based virtual hosts?

And will free subdomain work for this when I go ahead and try to use a DNS to 
reach my server after I've gotten this to work?  Just want to ask this first, 
just in case.

I can read about how to define a front-facing vhost in the examples and 
documentation, right?

From: Frank Gingras mailto:thu...@apache.org>>
Sent: Saturday, September 22, 2018 4:07 AM
To: users@httpd.apache.org<mailto:users@httpd.apache.org>
Subject: Re: [users@httpd] IP address used by Apache reverse proxy?

In a nutshell, you need to:

1) Define a front-facing vhost. You can use DNS and name-based vhosts to reach 
it
2) Decide what URI path you want to proxy in that vhost
3) If you proxy / (i.e. every request), then you don't need a DocumentRoot in 
that vhost. Otherwise, you need one
4) You don't need to use DNS to specify the target of your backend server. 
ProxyPass / http://IP_HERE:PORT/ is perfectly fine.
5) I actually recommend that you do not use DNS to reach the proxied server, 
initially. Keep things simple first.

On Fri, Sep 21, 2018 at 6:30 PM Osman Zakir 
mailto:osmanzaki...@hotmail.com>> wrote:
Let me just say again, first, that I have a subdomain name I want to use for my 
app.

Okay.  Anyway, when I tried to get to my app just now after starting the Apache 
httpd as a service, I got an error page in Edge saying that it can't reach the 
page.  I'd like to show you my httpd configuration file again to make sure if I 
have the reverse proxy configuration done correctly.

I want to know the IP address so I can use it in my hosts file, since you said 
I can add an entry to the hosts file mapping that IP address to a given name 
domain name (or subdomain name in my case).  Though I'm not sure if doing it 
like that would make the app publicly available from anywhere.

What happens if I set up an IP-based virtual host instead?  And how easy or 
hard would it be to map a domain or subdomain name to that IP address?

Another question: the current file path I have for my virtual host DocumentRoot 
setting is the one my app's files are in.  Should I set it to the htdocs folder 
instead (if so, how do I tell it that it what files it has to serve behind a 
reverse proxy?)?


From: Frank Gingras mailto:thu...@apache.org>>
Sent: Saturday, September 22, 2018 3:02 AM
To: users@httpd.apache.org<mailto:users@httpd.apache.org>
Subject: Re: [users@httpd] IP address used by Apache reverse proxy?

The IP httpd will use to proxy to your backend isn't typically relevant, unless 
you want to apply filtering or tracking of some sort.

Can you start over and tell us what problem you're trying to solve, again?

On Fri, Sep 21, 2018 at 5:53 P

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

2018-09-23 Thread Eric Covener
On Sun, Sep 23, 2018, 10:55 AM Osman Zakir  wrote:

> I'm sorry to keep bothering you about this, but would you please answer my
> questions?  How do I fix the problem of the 503 error,
>

Read the logs on both sides to determine the problem.


and how do I specify the address in the filesystem for the files I want to
> serve with the reverse proxy server?
>

Filesystems don't have addresses, and reverse proxies don't usually work
out of the filesystem at all. You will have to be more specific.



> --
> *From:* Frank Gingras 
> *Sent:* Saturday, September 22, 2018 6:38 AM
>
> *To:* users@httpd.apache.org
> *Subject:* Re: [users@httpd] IP address used by Apache reverse proxy?
>
> You can define a IP vhost too if you like. It doesn't matter.
>
> And yes, read the official documentation about vhosts, as linked before.
>
> On Fri, Sep 21, 2018 at 7:21 PM Osman Zakir 
> wrote:
>
> Is that for IP-based virtual hosts?
>
> And will free subdomain work for this when I go ahead and try to use a DNS
> to reach my server after I've gotten this to work?  Just want to ask this
> first, just in case.
>
> I can read about how to define a front-facing vhost in the examples and
> documentation, right?
> --
> *From:* Frank Gingras 
> *Sent:* Saturday, September 22, 2018 4:07 AM
> *To:* users@httpd.apache.org
> *Subject:* Re: [users@httpd] IP address used by Apache reverse proxy?
>
> In a nutshell, you need to:
>
> 1) Define a front-facing vhost. You can use DNS and name-based vhosts to
> reach it
> 2) Decide what URI path you want to proxy in that vhost
> 3) If you proxy / (i.e. every request), then you don't need a DocumentRoot
> in that vhost. Otherwise, you need one
> 4) You don't need to use DNS to specify the target of your backend server.
> ProxyPass / http://IP_HERE:PORT/ is perfectly fine.
> 5) I actually recommend that you do not use DNS to reach the proxied
> server, initially. Keep things simple first.
>
> On Fri, Sep 21, 2018 at 6:30 PM Osman Zakir 
> wrote:
>
> Let me just say again, first, that I have a subdomain name I want to use
> for my app.
>
> Okay.  Anyway, when I tried to get to my app just now after starting the
> Apache httpd as a service, I got an error page in Edge saying that it can't
> reach the page.  I'd like to show you my httpd configuration file again to
> make sure if I have the reverse proxy configuration done correctly.
>
> I want to know the IP address so I can use it in my hosts file, since you
> said I can add an entry to the hosts file mapping that IP address to a
> given name domain name (or subdomain name in my case).  Though I'm not sure
> if doing it like that would make the app publicly available from anywhere.
>
> What happens if I set up an IP-based virtual host instead?  And how easy
> or hard would it be to map a domain or subdomain name to that IP address?
>
> Another question: the current file path I have for my virtual host
> DocumentRoot setting is the one my app's files are in.  Should I set it to
> the htdocs folder instead (if so, how do I tell it that it what files it
> has to serve behind a reverse proxy?)?
>
> --
> *From:* Frank Gingras 
> *Sent:* Saturday, September 22, 2018 3:02 AM
> *To:* users@httpd.apache.org
> *Subject:* Re: [users@httpd] IP address used by Apache reverse proxy?
>
> The IP httpd will use to proxy to your backend isn't typically relevant,
> unless you want to apply filtering or tracking of some sort.
>
> Can you start over and tell us what problem you're trying to solve, again?
>
> On Fri, Sep 21, 2018 at 5:53 PM Osman Zakir 
> wrote:
>
> I've already read about networking and DNS to some extent.  I'll read
> about them some more, though.
>
> But I still think I should know how to find the IP address used by the
> Apache reverse proxy server.  Just in case.
> --
> *From:* Frank Gingras 
> *Sent:* Saturday, September 22, 2018 2:47 AM
> *To:* users@httpd.apache.org
> *Subject:* Re: [users@httpd] IP address used by Apache reverse proxy?
>
> Osman,
>
> Starting another thread to ask the same question is a bit ill-advised. I
> would still recommend that you get up to speed on networking and DNS
> basics, first.
>
> Next, you should read the following docs:
>
> http://wiki.apache.org/httpd/ExampleVhosts
> http://httpd.apache.org/docs/current/vhosts/examples.html
> http://httpd.apache.org/docs/current/mod/mpm_common.html#listen
> http://httpd.apache.org/docs/current/vhosts/name-based.html
>
>
>
> On Fri, Sep 21, 2018 at 10:41 AM Osman Zakir 
> wrote:
>
> How do I find the IP address?
>

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

2018-09-23 Thread Osman Zakir
I'm sorry to keep bothering you about this, but would you please answer my 
questions?  How do I fix the problem of the 503 error, and how do I specify the 
address in the filesystem for the files I want to serve with the reverse proxy 
server?


From: Frank Gingras 
Sent: Saturday, September 22, 2018 6:38 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] IP address used by Apache reverse proxy?

You can define a IP vhost too if you like. It doesn't matter.

And yes, read the official documentation about vhosts, as linked before.

On Fri, Sep 21, 2018 at 7:21 PM Osman Zakir 
mailto:osmanzaki...@hotmail.com>> wrote:
Is that for IP-based virtual hosts?

And will free subdomain work for this when I go ahead and try to use a DNS to 
reach my server after I've gotten this to work?  Just want to ask this first, 
just in case.

I can read about how to define a front-facing vhost in the examples and 
documentation, right?

From: Frank Gingras mailto:thu...@apache.org>>
Sent: Saturday, September 22, 2018 4:07 AM
To: users@httpd.apache.org<mailto:users@httpd.apache.org>
Subject: Re: [users@httpd] IP address used by Apache reverse proxy?

In a nutshell, you need to:

1) Define a front-facing vhost. You can use DNS and name-based vhosts to reach 
it
2) Decide what URI path you want to proxy in that vhost
3) If you proxy / (i.e. every request), then you don't need a DocumentRoot in 
that vhost. Otherwise, you need one
4) You don't need to use DNS to specify the target of your backend server. 
ProxyPass / http://IP_HERE:PORT/ is perfectly fine.
5) I actually recommend that you do not use DNS to reach the proxied server, 
initially. Keep things simple first.

On Fri, Sep 21, 2018 at 6:30 PM Osman Zakir 
mailto:osmanzaki...@hotmail.com>> wrote:
Let me just say again, first, that I have a subdomain name I want to use for my 
app.

Okay.  Anyway, when I tried to get to my app just now after starting the Apache 
httpd as a service, I got an error page in Edge saying that it can't reach the 
page.  I'd like to show you my httpd configuration file again to make sure if I 
have the reverse proxy configuration done correctly.

I want to know the IP address so I can use it in my hosts file, since you said 
I can add an entry to the hosts file mapping that IP address to a given name 
domain name (or subdomain name in my case).  Though I'm not sure if doing it 
like that would make the app publicly available from anywhere.

What happens if I set up an IP-based virtual host instead?  And how easy or 
hard would it be to map a domain or subdomain name to that IP address?

Another question: the current file path I have for my virtual host DocumentRoot 
setting is the one my app's files are in.  Should I set it to the htdocs folder 
instead (if so, how do I tell it that it what files it has to serve behind a 
reverse proxy?)?


From: Frank Gingras mailto:thu...@apache.org>>
Sent: Saturday, September 22, 2018 3:02 AM
To: users@httpd.apache.org<mailto:users@httpd.apache.org>
Subject: Re: [users@httpd] IP address used by Apache reverse proxy?

The IP httpd will use to proxy to your backend isn't typically relevant, unless 
you want to apply filtering or tracking of some sort.

Can you start over and tell us what problem you're trying to solve, again?

On Fri, Sep 21, 2018 at 5:53 PM Osman Zakir 
mailto:osmanzaki...@hotmail.com>> wrote:
I've already read about networking and DNS to some extent.  I'll read about 
them some more, though.

But I still think I should know how to find the IP address used by the Apache 
reverse proxy server.  Just in case.

From: Frank Gingras mailto:thu...@apache.org>>
Sent: Saturday, September 22, 2018 2:47 AM
To: users@httpd.apache.org<mailto:users@httpd.apache.org>
Subject: Re: [users@httpd] IP address used by Apache reverse proxy?

Osman,

Starting another thread to ask the same question is a bit ill-advised. I would 
still recommend that you get up to speed on networking and DNS basics, first.

Next, you should read the following docs:

http://wiki.apache.org/httpd/ExampleVhosts
http://httpd.apache.org/docs/current/vhosts/examples.html
http://httpd.apache.org/docs/current/mod/mpm_common.html#listen
http://httpd.apache.org/docs/current/vhosts/name-based.html



On Fri, Sep 21, 2018 at 10:41 AM Osman Zakir 
mailto:osmanzaki...@hotmail.com>> wrote:
How do I find the IP address?

Would it be possible to use that IP address with a subdomain name on a virtual 
host configuration?  I want to use the free subdomain I got from 
http://www.subdomain.net.
Subdomain.net - the largest free subdomain network<http://www.subdomain.net/>
Subdomain.net offers you a free subdomain for your website.
www.subdomain.net<http://www.subdomain.net>



-

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

2018-09-22 Thread Osman Zakir
I edited the httpd.conf file to change the Listen directive value to 0.0.0.0:80 
and also changed the value of the ProxyPass IP and port to that.  But when I 
tried to go to localhost after starting the Apache httpd, I got a 503 error on 
the browser.  Do I have to also run the app server that I wrote, itself?  
Because the same thing happens even with that.

From: Frank Gingras 
Sent: Saturday, September 22, 2018 6:38 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] IP address used by Apache reverse proxy?

You can define a IP vhost too if you like. It doesn't matter.

And yes, read the official documentation about vhosts, as linked before.

On Fri, Sep 21, 2018 at 7:21 PM Osman Zakir 
mailto:osmanzaki...@hotmail.com>> wrote:
Is that for IP-based virtual hosts?

And will free subdomain work for this when I go ahead and try to use a DNS to 
reach my server after I've gotten this to work?  Just want to ask this first, 
just in case.

I can read about how to define a front-facing vhost in the examples and 
documentation, right?

From: Frank Gingras mailto:thu...@apache.org>>
Sent: Saturday, September 22, 2018 4:07 AM
To: users@httpd.apache.org<mailto:users@httpd.apache.org>
Subject: Re: [users@httpd] IP address used by Apache reverse proxy?

In a nutshell, you need to:

1) Define a front-facing vhost. You can use DNS and name-based vhosts to reach 
it
2) Decide what URI path you want to proxy in that vhost
3) If you proxy / (i.e. every request), then you don't need a DocumentRoot in 
that vhost. Otherwise, you need one
4) You don't need to use DNS to specify the target of your backend server. 
ProxyPass / http://IP_HERE:PORT/ is perfectly fine.
5) I actually recommend that you do not use DNS to reach the proxied server, 
initially. Keep things simple first.

On Fri, Sep 21, 2018 at 6:30 PM Osman Zakir 
mailto:osmanzaki...@hotmail.com>> wrote:
Let me just say again, first, that I have a subdomain name I want to use for my 
app.

Okay.  Anyway, when I tried to get to my app just now after starting the Apache 
httpd as a service, I got an error page in Edge saying that it can't reach the 
page.  I'd like to show you my httpd configuration file again to make sure if I 
have the reverse proxy configuration done correctly.

I want to know the IP address so I can use it in my hosts file, since you said 
I can add an entry to the hosts file mapping that IP address to a given name 
domain name (or subdomain name in my case).  Though I'm not sure if doing it 
like that would make the app publicly available from anywhere.

What happens if I set up an IP-based virtual host instead?  And how easy or 
hard would it be to map a domain or subdomain name to that IP address?

Another question: the current file path I have for my virtual host DocumentRoot 
setting is the one my app's files are in.  Should I set it to the htdocs folder 
instead (if so, how do I tell it that it what files it has to serve behind a 
reverse proxy?)?


From: Frank Gingras mailto:thu...@apache.org>>
Sent: Saturday, September 22, 2018 3:02 AM
To: users@httpd.apache.org<mailto:users@httpd.apache.org>
Subject: Re: [users@httpd] IP address used by Apache reverse proxy?

The IP httpd will use to proxy to your backend isn't typically relevant, unless 
you want to apply filtering or tracking of some sort.

Can you start over and tell us what problem you're trying to solve, again?

On Fri, Sep 21, 2018 at 5:53 PM Osman Zakir 
mailto:osmanzaki...@hotmail.com>> wrote:
I've already read about networking and DNS to some extent.  I'll read about 
them some more, though.

But I still think I should know how to find the IP address used by the Apache 
reverse proxy server.  Just in case.

From: Frank Gingras mailto:thu...@apache.org>>
Sent: Saturday, September 22, 2018 2:47 AM
To: users@httpd.apache.org<mailto:users@httpd.apache.org>
Subject: Re: [users@httpd] IP address used by Apache reverse proxy?

Osman,

Starting another thread to ask the same question is a bit ill-advised. I would 
still recommend that you get up to speed on networking and DNS basics, first.

Next, you should read the following docs:

http://wiki.apache.org/httpd/ExampleVhosts
http://httpd.apache.org/docs/current/vhosts/examples.html
http://httpd.apache.org/docs/current/mod/mpm_common.html#listen
http://httpd.apache.org/docs/current/vhosts/name-based.html



On Fri, Sep 21, 2018 at 10:41 AM Osman Zakir 
mailto:osmanzaki...@hotmail.com>> wrote:
How do I find the IP address?

Would it be possible to use that IP address with a subdomain name on a virtual 
host configuration?  I want to use the free subdomain I got from 
http://www.subdomain.net.
Subdomain.net - the largest free subdomain network<http://www.subdomain.net/>
Subdomain.net offers you a free subd

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

2018-09-22 Thread Osman Zakir
The files I want to serve are the ones in the DocumentRoot I currently have for 
my vhost configuration 
(E:\programming\visual_studio_2017\Projects\currency_converter\Release).  Do I 
need to specify as Apache's document root?  The files in this directory are:

\scripts
scripts.js
\styles
styles.css
index.html
currency_converter.exe
currency_converter.iobj
currency_converter.ipdb
currency_converter.pdb



From: Frank Gingras 
Sent: Saturday, September 22, 2018 6:38 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] IP address used by Apache reverse proxy?

You can define a IP vhost too if you like. It doesn't matter.

And yes, read the official documentation about vhosts, as linked before.

On Fri, Sep 21, 2018 at 7:21 PM Osman Zakir 
mailto:osmanzaki...@hotmail.com>> wrote:
Is that for IP-based virtual hosts?

And will free subdomain work for this when I go ahead and try to use a DNS to 
reach my server after I've gotten this to work?  Just want to ask this first, 
just in case.

I can read about how to define a front-facing vhost in the examples and 
documentation, right?

From: Frank Gingras mailto:thu...@apache.org>>
Sent: Saturday, September 22, 2018 4:07 AM
To: users@httpd.apache.org<mailto:users@httpd.apache.org>
Subject: Re: [users@httpd] IP address used by Apache reverse proxy?

In a nutshell, you need to:

1) Define a front-facing vhost. You can use DNS and name-based vhosts to reach 
it
2) Decide what URI path you want to proxy in that vhost
3) If you proxy / (i.e. every request), then you don't need a DocumentRoot in 
that vhost. Otherwise, you need one
4) You don't need to use DNS to specify the target of your backend server. 
ProxyPass / http://IP_HERE:PORT/ is perfectly fine.
5) I actually recommend that you do not use DNS to reach the proxied server, 
initially. Keep things simple first.

On Fri, Sep 21, 2018 at 6:30 PM Osman Zakir 
mailto:osmanzaki...@hotmail.com>> wrote:
Let me just say again, first, that I have a subdomain name I want to use for my 
app.

Okay.  Anyway, when I tried to get to my app just now after starting the Apache 
httpd as a service, I got an error page in Edge saying that it can't reach the 
page.  I'd like to show you my httpd configuration file again to make sure if I 
have the reverse proxy configuration done correctly.

I want to know the IP address so I can use it in my hosts file, since you said 
I can add an entry to the hosts file mapping that IP address to a given name 
domain name (or subdomain name in my case).  Though I'm not sure if doing it 
like that would make the app publicly available from anywhere.

What happens if I set up an IP-based virtual host instead?  And how easy or 
hard would it be to map a domain or subdomain name to that IP address?

Another question: the current file path I have for my virtual host DocumentRoot 
setting is the one my app's files are in.  Should I set it to the htdocs folder 
instead (if so, how do I tell it that it what files it has to serve behind a 
reverse proxy?)?


From: Frank Gingras mailto:thu...@apache.org>>
Sent: Saturday, September 22, 2018 3:02 AM
To: users@httpd.apache.org<mailto:users@httpd.apache.org>
Subject: Re: [users@httpd] IP address used by Apache reverse proxy?

The IP httpd will use to proxy to your backend isn't typically relevant, unless 
you want to apply filtering or tracking of some sort.

Can you start over and tell us what problem you're trying to solve, again?

On Fri, Sep 21, 2018 at 5:53 PM Osman Zakir 
mailto:osmanzaki...@hotmail.com>> wrote:
I've already read about networking and DNS to some extent.  I'll read about 
them some more, though.

But I still think I should know how to find the IP address used by the Apache 
reverse proxy server.  Just in case.

From: Frank Gingras mailto:thu...@apache.org>>
Sent: Saturday, September 22, 2018 2:47 AM
To: users@httpd.apache.org<mailto:users@httpd.apache.org>
Subject: Re: [users@httpd] IP address used by Apache reverse proxy?

Osman,

Starting another thread to ask the same question is a bit ill-advised. I would 
still recommend that you get up to speed on networking and DNS basics, first.

Next, you should read the following docs:

http://wiki.apache.org/httpd/ExampleVhosts
http://httpd.apache.org/docs/current/vhosts/examples.html
http://httpd.apache.org/docs/current/mod/mpm_common.html#listen
http://httpd.apache.org/docs/current/vhosts/name-based.html



On Fri, Sep 21, 2018 at 10:41 AM Osman Zakir 
mailto:osmanzaki...@hotmail.com>> wrote:
How do I find the IP address?

Would it be possible to use that IP address with a subdomain name on a virtual 
host configuration?  I want to use the free subdomain I got from 
http://www.subdomain.net.
Subdomain.net - the largest free subdomain network<http://www.subdomain.net/>
Subdomain.net of

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

2018-09-22 Thread Osman Zakir
What I mainly want to know right now is how to define a front-facing vhost (an 
IP-based one, for now).  I hope I can find that in the documentation.  I'll ask 
if I get confused about something.

From: Frank Gingras 
Sent: Saturday, September 22, 2018 6:38 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] IP address used by Apache reverse proxy?

You can define a IP vhost too if you like. It doesn't matter.

And yes, read the official documentation about vhosts, as linked before.

On Fri, Sep 21, 2018 at 7:21 PM Osman Zakir 
mailto:osmanzaki...@hotmail.com>> wrote:
Is that for IP-based virtual hosts?

And will free subdomain work for this when I go ahead and try to use a DNS to 
reach my server after I've gotten this to work?  Just want to ask this first, 
just in case.

I can read about how to define a front-facing vhost in the examples and 
documentation, right?

From: Frank Gingras mailto:thu...@apache.org>>
Sent: Saturday, September 22, 2018 4:07 AM
To: users@httpd.apache.org<mailto:users@httpd.apache.org>
Subject: Re: [users@httpd] IP address used by Apache reverse proxy?

In a nutshell, you need to:

1) Define a front-facing vhost. You can use DNS and name-based vhosts to reach 
it
2) Decide what URI path you want to proxy in that vhost
3) If you proxy / (i.e. every request), then you don't need a DocumentRoot in 
that vhost. Otherwise, you need one
4) You don't need to use DNS to specify the target of your backend server. 
ProxyPass / http://IP_HERE:PORT/ is perfectly fine.
5) I actually recommend that you do not use DNS to reach the proxied server, 
initially. Keep things simple first.

On Fri, Sep 21, 2018 at 6:30 PM Osman Zakir 
mailto:osmanzaki...@hotmail.com>> wrote:
Let me just say again, first, that I have a subdomain name I want to use for my 
app.

Okay.  Anyway, when I tried to get to my app just now after starting the Apache 
httpd as a service, I got an error page in Edge saying that it can't reach the 
page.  I'd like to show you my httpd configuration file again to make sure if I 
have the reverse proxy configuration done correctly.

I want to know the IP address so I can use it in my hosts file, since you said 
I can add an entry to the hosts file mapping that IP address to a given name 
domain name (or subdomain name in my case).  Though I'm not sure if doing it 
like that would make the app publicly available from anywhere.

What happens if I set up an IP-based virtual host instead?  And how easy or 
hard would it be to map a domain or subdomain name to that IP address?

Another question: the current file path I have for my virtual host DocumentRoot 
setting is the one my app's files are in.  Should I set it to the htdocs folder 
instead (if so, how do I tell it that it what files it has to serve behind a 
reverse proxy?)?


From: Frank Gingras mailto:thu...@apache.org>>
Sent: Saturday, September 22, 2018 3:02 AM
To: users@httpd.apache.org<mailto:users@httpd.apache.org>
Subject: Re: [users@httpd] IP address used by Apache reverse proxy?

The IP httpd will use to proxy to your backend isn't typically relevant, unless 
you want to apply filtering or tracking of some sort.

Can you start over and tell us what problem you're trying to solve, again?

On Fri, Sep 21, 2018 at 5:53 PM Osman Zakir 
mailto:osmanzaki...@hotmail.com>> wrote:
I've already read about networking and DNS to some extent.  I'll read about 
them some more, though.

But I still think I should know how to find the IP address used by the Apache 
reverse proxy server.  Just in case.

From: Frank Gingras mailto:thu...@apache.org>>
Sent: Saturday, September 22, 2018 2:47 AM
To: users@httpd.apache.org<mailto:users@httpd.apache.org>
Subject: Re: [users@httpd] IP address used by Apache reverse proxy?

Osman,

Starting another thread to ask the same question is a bit ill-advised. I would 
still recommend that you get up to speed on networking and DNS basics, first.

Next, you should read the following docs:

http://wiki.apache.org/httpd/ExampleVhosts
http://httpd.apache.org/docs/current/vhosts/examples.html
http://httpd.apache.org/docs/current/mod/mpm_common.html#listen
http://httpd.apache.org/docs/current/vhosts/name-based.html



On Fri, Sep 21, 2018 at 10:41 AM Osman Zakir 
mailto:osmanzaki...@hotmail.com>> wrote:
How do I find the IP address?

Would it be possible to use that IP address with a subdomain name on a virtual 
host configuration?  I want to use the free subdomain I got from 
http://www.subdomain.net.
Subdomain.net - the largest free subdomain network<http://www.subdomain.net/>
Subdomain.net offers you a free subdomain for your website.
www.subdomain.net<http://www.subdomain.net>



-
To unsubscribe, e-mail: 
users-unsubscr...@httpd.apache.o

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

2018-09-21 Thread Frank Gingras
You can define a IP vhost too if you like. It doesn't matter.

And yes, read the official documentation about vhosts, as linked before.

On Fri, Sep 21, 2018 at 7:21 PM Osman Zakir 
wrote:

> Is that for IP-based virtual hosts?
>
> And will free subdomain work for this when I go ahead and try to use a DNS
> to reach my server after I've gotten this to work?  Just want to ask this
> first, just in case.
>
> I can read about how to define a front-facing vhost in the examples and
> documentation, right?
> --
> *From:* Frank Gingras 
> *Sent:* Saturday, September 22, 2018 4:07 AM
> *To:* users@httpd.apache.org
> *Subject:* Re: [users@httpd] IP address used by Apache reverse proxy?
>
> In a nutshell, you need to:
>
> 1) Define a front-facing vhost. You can use DNS and name-based vhosts to
> reach it
> 2) Decide what URI path you want to proxy in that vhost
> 3) If you proxy / (i.e. every request), then you don't need a DocumentRoot
> in that vhost. Otherwise, you need one
> 4) You don't need to use DNS to specify the target of your backend server.
> ProxyPass / http://IP_HERE:PORT/ is perfectly fine.
> 5) I actually recommend that you do not use DNS to reach the proxied
> server, initially. Keep things simple first.
>
> On Fri, Sep 21, 2018 at 6:30 PM Osman Zakir 
> wrote:
>
> Let me just say again, first, that I have a subdomain name I want to use
> for my app.
>
> Okay.  Anyway, when I tried to get to my app just now after starting the
> Apache httpd as a service, I got an error page in Edge saying that it can't
> reach the page.  I'd like to show you my httpd configuration file again to
> make sure if I have the reverse proxy configuration done correctly.
>
> I want to know the IP address so I can use it in my hosts file, since you
> said I can add an entry to the hosts file mapping that IP address to a
> given name domain name (or subdomain name in my case).  Though I'm not sure
> if doing it like that would make the app publicly available from anywhere.
>
> What happens if I set up an IP-based virtual host instead?  And how easy
> or hard would it be to map a domain or subdomain name to that IP address?
>
> Another question: the current file path I have for my virtual host
> DocumentRoot setting is the one my app's files are in.  Should I set it to
> the htdocs folder instead (if so, how do I tell it that it what files it
> has to serve behind a reverse proxy?)?
>
> --------------
> *From:* Frank Gingras 
> *Sent:* Saturday, September 22, 2018 3:02 AM
> *To:* users@httpd.apache.org
> *Subject:* Re: [users@httpd] IP address used by Apache reverse proxy?
>
> The IP httpd will use to proxy to your backend isn't typically relevant,
> unless you want to apply filtering or tracking of some sort.
>
> Can you start over and tell us what problem you're trying to solve, again?
>
> On Fri, Sep 21, 2018 at 5:53 PM Osman Zakir 
> wrote:
>
> I've already read about networking and DNS to some extent.  I'll read
> about them some more, though.
>
> But I still think I should know how to find the IP address used by the
> Apache reverse proxy server.  Just in case.
> --
> *From:* Frank Gingras 
> *Sent:* Saturday, September 22, 2018 2:47 AM
> *To:* users@httpd.apache.org
> *Subject:* Re: [users@httpd] IP address used by Apache reverse proxy?
>
> Osman,
>
> Starting another thread to ask the same question is a bit ill-advised. I
> would still recommend that you get up to speed on networking and DNS
> basics, first.
>
> Next, you should read the following docs:
>
> http://wiki.apache.org/httpd/ExampleVhosts
> http://httpd.apache.org/docs/current/vhosts/examples.html
> http://httpd.apache.org/docs/current/mod/mpm_common.html#listen
> http://httpd.apache.org/docs/current/vhosts/name-based.html
>
>
>
> On Fri, Sep 21, 2018 at 10:41 AM Osman Zakir 
> wrote:
>
> How do I find the IP address?
>
> Would it be possible to use that IP address with a subdomain name on a
> virtual host configuration?  I want to use the free subdomain I got from
> http://www.subdomain.net.
> Subdomain.net - the largest free subdomain network
> <http://www.subdomain.net/>
> Subdomain.net offers you a free subdomain for your website.
> www.subdomain.net
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


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

2018-09-21 Thread Osman Zakir
Is that for IP-based virtual hosts?

And will free subdomain work for this when I go ahead and try to use a DNS to 
reach my server after I've gotten this to work?  Just want to ask this first, 
just in case.

I can read about how to define a front-facing vhost in the examples and 
documentation, right?

From: Frank Gingras 
Sent: Saturday, September 22, 2018 4:07 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] IP address used by Apache reverse proxy?

In a nutshell, you need to:

1) Define a front-facing vhost. You can use DNS and name-based vhosts to reach 
it
2) Decide what URI path you want to proxy in that vhost
3) If you proxy / (i.e. every request), then you don't need a DocumentRoot in 
that vhost. Otherwise, you need one
4) You don't need to use DNS to specify the target of your backend server. 
ProxyPass / http://IP_HERE:PORT/ is perfectly fine.
5) I actually recommend that you do not use DNS to reach the proxied server, 
initially. Keep things simple first.

On Fri, Sep 21, 2018 at 6:30 PM Osman Zakir 
mailto:osmanzaki...@hotmail.com>> wrote:
Let me just say again, first, that I have a subdomain name I want to use for my 
app.

Okay.  Anyway, when I tried to get to my app just now after starting the Apache 
httpd as a service, I got an error page in Edge saying that it can't reach the 
page.  I'd like to show you my httpd configuration file again to make sure if I 
have the reverse proxy configuration done correctly.

I want to know the IP address so I can use it in my hosts file, since you said 
I can add an entry to the hosts file mapping that IP address to a given name 
domain name (or subdomain name in my case).  Though I'm not sure if doing it 
like that would make the app publicly available from anywhere.

What happens if I set up an IP-based virtual host instead?  And how easy or 
hard would it be to map a domain or subdomain name to that IP address?

Another question: the current file path I have for my virtual host DocumentRoot 
setting is the one my app's files are in.  Should I set it to the htdocs folder 
instead (if so, how do I tell it that it what files it has to serve behind a 
reverse proxy?)?


From: Frank Gingras mailto:thu...@apache.org>>
Sent: Saturday, September 22, 2018 3:02 AM
To: users@httpd.apache.org<mailto:users@httpd.apache.org>
Subject: Re: [users@httpd] IP address used by Apache reverse proxy?

The IP httpd will use to proxy to your backend isn't typically relevant, unless 
you want to apply filtering or tracking of some sort.

Can you start over and tell us what problem you're trying to solve, again?

On Fri, Sep 21, 2018 at 5:53 PM Osman Zakir 
mailto:osmanzaki...@hotmail.com>> wrote:
I've already read about networking and DNS to some extent.  I'll read about 
them some more, though.

But I still think I should know how to find the IP address used by the Apache 
reverse proxy server.  Just in case.

From: Frank Gingras mailto:thu...@apache.org>>
Sent: Saturday, September 22, 2018 2:47 AM
To: users@httpd.apache.org<mailto:users@httpd.apache.org>
Subject: Re: [users@httpd] IP address used by Apache reverse proxy?

Osman,

Starting another thread to ask the same question is a bit ill-advised. I would 
still recommend that you get up to speed on networking and DNS basics, first.

Next, you should read the following docs:

http://wiki.apache.org/httpd/ExampleVhosts
http://httpd.apache.org/docs/current/vhosts/examples.html
http://httpd.apache.org/docs/current/mod/mpm_common.html#listen
http://httpd.apache.org/docs/current/vhosts/name-based.html



On Fri, Sep 21, 2018 at 10:41 AM Osman Zakir 
mailto:osmanzaki...@hotmail.com>> wrote:
How do I find the IP address?

Would it be possible to use that IP address with a subdomain name on a virtual 
host configuration?  I want to use the free subdomain I got from 
http://www.subdomain.net.
Subdomain.net - the largest free subdomain network<http://www.subdomain.net/>
Subdomain.net offers you a free subdomain for your website.
www.subdomain.net<http://www.subdomain.net>



-
To unsubscribe, e-mail: 
users-unsubscr...@httpd.apache.org<mailto:users-unsubscr...@httpd.apache.org>
For additional commands, e-mail: 
users-h...@httpd.apache.org<mailto:users-h...@httpd.apache.org>


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

2018-09-21 Thread Frank Gingras
In a nutshell, you need to:

1) Define a front-facing vhost. You can use DNS and name-based vhosts to
reach it
2) Decide what URI path you want to proxy in that vhost
3) If you proxy / (i.e. every request), then you don't need a DocumentRoot
in that vhost. Otherwise, you need one
4) You don't need to use DNS to specify the target of your backend server.
ProxyPass / http://IP_HERE:PORT/ is perfectly fine.
5) I actually recommend that you do not use DNS to reach the proxied
server, initially. Keep things simple first.

On Fri, Sep 21, 2018 at 6:30 PM Osman Zakir 
wrote:

> Let me just say again, first, that I have a subdomain name I want to use
> for my app.
>
> Okay.  Anyway, when I tried to get to my app just now after starting the
> Apache httpd as a service, I got an error page in Edge saying that it can't
> reach the page.  I'd like to show you my httpd configuration file again to
> make sure if I have the reverse proxy configuration done correctly.
>
> I want to know the IP address so I can use it in my hosts file, since you
> said I can add an entry to the hosts file mapping that IP address to a
> given name domain name (or subdomain name in my case).  Though I'm not sure
> if doing it like that would make the app publicly available from anywhere.
>
> What happens if I set up an IP-based virtual host instead?  And how easy
> or hard would it be to map a domain or subdomain name to that IP address?
>
> Another question: the current file path I have for my virtual host
> DocumentRoot setting is the one my app's files are in.  Should I set it to
> the htdocs folder instead (if so, how do I tell it that it what files it
> has to serve behind a reverse proxy?)?
>
> --
> *From:* Frank Gingras 
> *Sent:* Saturday, September 22, 2018 3:02 AM
> *To:* users@httpd.apache.org
> *Subject:* Re: [users@httpd] IP address used by Apache reverse proxy?
>
> The IP httpd will use to proxy to your backend isn't typically relevant,
> unless you want to apply filtering or tracking of some sort.
>
> Can you start over and tell us what problem you're trying to solve, again?
>
> On Fri, Sep 21, 2018 at 5:53 PM Osman Zakir 
> wrote:
>
> I've already read about networking and DNS to some extent.  I'll read
> about them some more, though.
>
> But I still think I should know how to find the IP address used by the
> Apache reverse proxy server.  Just in case.
> ------
> *From:* Frank Gingras 
> *Sent:* Saturday, September 22, 2018 2:47 AM
> *To:* users@httpd.apache.org
> *Subject:* Re: [users@httpd] IP address used by Apache reverse proxy?
>
> Osman,
>
> Starting another thread to ask the same question is a bit ill-advised. I
> would still recommend that you get up to speed on networking and DNS
> basics, first.
>
> Next, you should read the following docs:
>
> http://wiki.apache.org/httpd/ExampleVhosts
> http://httpd.apache.org/docs/current/vhosts/examples.html
> http://httpd.apache.org/docs/current/mod/mpm_common.html#listen
> http://httpd.apache.org/docs/current/vhosts/name-based.html
>
>
>
> On Fri, Sep 21, 2018 at 10:41 AM Osman Zakir 
> wrote:
>
> How do I find the IP address?
>
> Would it be possible to use that IP address with a subdomain name on a
> virtual host configuration?  I want to use the free subdomain I got from
> http://www.subdomain.net.
> Subdomain.net - the largest free subdomain network
> <http://www.subdomain.net/>
> Subdomain.net offers you a free subdomain for your website.
> www.subdomain.net
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org


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

2018-09-21 Thread Osman Zakir
Let me just say again, first, that I have a subdomain name I want to use for my 
app.

Okay.  Anyway, when I tried to get to my app just now after starting the Apache 
httpd as a service, I got an error page in Edge saying that it can't reach the 
page.  I'd like to show you my httpd configuration file again to make sure if I 
have the reverse proxy configuration done correctly.

I want to know the IP address so I can use it in my hosts file, since you said 
I can add an entry to the hosts file mapping that IP address to a given name 
domain name (or subdomain name in my case).  Though I'm not sure if doing it 
like that would make the app publicly available from anywhere.

What happens if I set up an IP-based virtual host instead?  And how easy or 
hard would it be to map a domain or subdomain name to that IP address?

Another question: the current file path I have for my virtual host DocumentRoot 
setting is the one my app's files are in.  Should I set it to the htdocs folder 
instead (if so, how do I tell it that it what files it has to serve behind a 
reverse proxy?)?


From: Frank Gingras 
Sent: Saturday, September 22, 2018 3:02 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] IP address used by Apache reverse proxy?

The IP httpd will use to proxy to your backend isn't typically relevant, unless 
you want to apply filtering or tracking of some sort.

Can you start over and tell us what problem you're trying to solve, again?

On Fri, Sep 21, 2018 at 5:53 PM Osman Zakir 
mailto:osmanzaki...@hotmail.com>> wrote:
I've already read about networking and DNS to some extent.  I'll read about 
them some more, though.

But I still think I should know how to find the IP address used by the Apache 
reverse proxy server.  Just in case.

From: Frank Gingras mailto:thu...@apache.org>>
Sent: Saturday, September 22, 2018 2:47 AM
To: users@httpd.apache.org<mailto:users@httpd.apache.org>
Subject: Re: [users@httpd] IP address used by Apache reverse proxy?

Osman,

Starting another thread to ask the same question is a bit ill-advised. I would 
still recommend that you get up to speed on networking and DNS basics, first.

Next, you should read the following docs:

http://wiki.apache.org/httpd/ExampleVhosts
http://httpd.apache.org/docs/current/vhosts/examples.html
http://httpd.apache.org/docs/current/mod/mpm_common.html#listen
http://httpd.apache.org/docs/current/vhosts/name-based.html



On Fri, Sep 21, 2018 at 10:41 AM Osman Zakir 
mailto:osmanzaki...@hotmail.com>> wrote:
How do I find the IP address?

Would it be possible to use that IP address with a subdomain name on a virtual 
host configuration?  I want to use the free subdomain I got from 
http://www.subdomain.net.
Subdomain.net - the largest free subdomain network<http://www.subdomain.net/>
Subdomain.net offers you a free subdomain for your website.
www.subdomain.net<http://www.subdomain.net>




httpd.conf
Description: httpd.conf

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

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

2018-09-21 Thread Frank Gingras
The IP httpd will use to proxy to your backend isn't typically relevant,
unless you want to apply filtering or tracking of some sort.

Can you start over and tell us what problem you're trying to solve, again?

On Fri, Sep 21, 2018 at 5:53 PM Osman Zakir 
wrote:

> I've already read about networking and DNS to some extent.  I'll read
> about them some more, though.
>
> But I still think I should know how to find the IP address used by the
> Apache reverse proxy server.  Just in case.
> --
> *From:* Frank Gingras 
> *Sent:* Saturday, September 22, 2018 2:47 AM
> *To:* users@httpd.apache.org
> *Subject:* Re: [users@httpd] IP address used by Apache reverse proxy?
>
> Osman,
>
> Starting another thread to ask the same question is a bit ill-advised. I
> would still recommend that you get up to speed on networking and DNS
> basics, first.
>
> Next, you should read the following docs:
>
> http://wiki.apache.org/httpd/ExampleVhosts
> http://httpd.apache.org/docs/current/vhosts/examples.html
> http://httpd.apache.org/docs/current/mod/mpm_common.html#listen
> http://httpd.apache.org/docs/current/vhosts/name-based.html
>
>
>
> On Fri, Sep 21, 2018 at 10:41 AM Osman Zakir 
> wrote:
>
> How do I find the IP address?
>
> Would it be possible to use that IP address with a subdomain name on a
> virtual host configuration?  I want to use the free subdomain I got from
> http://www.subdomain.net.
> Subdomain.net - the largest free subdomain network
> <http://www.subdomain.net/>
> Subdomain.net offers you a free subdomain for your website.
> www.subdomain.net
>
>


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

2018-09-21 Thread Osman Zakir
I've already read about networking and DNS to some extent.  I'll read about 
them some more, though.

But I still think I should know how to find the IP address used by the Apache 
reverse proxy server.  Just in case.

From: Frank Gingras 
Sent: Saturday, September 22, 2018 2:47 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] IP address used by Apache reverse proxy?

Osman,

Starting another thread to ask the same question is a bit ill-advised. I would 
still recommend that you get up to speed on networking and DNS basics, first.

Next, you should read the following docs:

http://wiki.apache.org/httpd/ExampleVhosts
http://httpd.apache.org/docs/current/vhosts/examples.html
http://httpd.apache.org/docs/current/mod/mpm_common.html#listen
http://httpd.apache.org/docs/current/vhosts/name-based.html



On Fri, Sep 21, 2018 at 10:41 AM Osman Zakir 
mailto:osmanzaki...@hotmail.com>> wrote:
How do I find the IP address?

Would it be possible to use that IP address with a subdomain name on a virtual 
host configuration?  I want to use the free subdomain I got from 
http://www.subdomain.net.
Subdomain.net - the largest free subdomain network<http://www.subdomain.net/>
Subdomain.net offers you a free subdomain for your website.
www.subdomain.net<http://www.subdomain.net>




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

2018-09-21 Thread Frank Gingras
Osman,

Starting another thread to ask the same question is a bit ill-advised. I
would still recommend that you get up to speed on networking and DNS
basics, first.

Next, you should read the following docs:

http://wiki.apache.org/httpd/ExampleVhosts
http://httpd.apache.org/docs/current/vhosts/examples.html
http://httpd.apache.org/docs/current/mod/mpm_common.html#listen
http://httpd.apache.org/docs/current/vhosts/name-based.html



On Fri, Sep 21, 2018 at 10:41 AM Osman Zakir 
wrote:

> How do I find the IP address?
>
> Would it be possible to use that IP address with a subdomain name on a
> virtual host configuration?  I want to use the free subdomain I got from
> http://www.subdomain.net.
> Subdomain.net - the largest free subdomain network
> 
> Subdomain.net offers you a free subdomain for your website.
> www.subdomain.net
>
>