Re: [users@httpd] Port Forwarding Help?

2019-01-21 Thread Ruben Safir
On 1/21/19 3:07 PM, Osman Zakir wrote:
> I can see the app on localhost on either port 8000 or port 8081.  What am I 
> doing wrong?
> 


fix your network then.


-- 
So many immigrant groups have swept through our town
that Brooklyn, like Atlantis, reaches mythological
proportions in the mind of the world - RI Safir 1998
http://www.mrbrklyn.com

DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
http://www.nylxs.com - Leadership Development in Free Software
http://www2.mrbrklyn.com/resources - Unpublished Archive
http://www.coinhangout.com - coins!
http://www.brooklyn-living.com

Being so tracked is for FARM ANIMALS and extermination camps,
but incompatible with living as a free human being. -RI Safir 2013

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



Re: [users@httpd] Port Forwarding Help?

2019-01-21 Thread Osman Zakir
I can see the app on localhost on either port 8000 or port 8081.  What am I 
doing wrong?


Re: [users@httpd] Port Forwarding Help?

2019-01-21 Thread Ruben Safir
On Mon, Jan 21, 2019 at 04:19:00PM +, Osman Zakir wrote:
> Wait, so it's fine if I use my internal IP address?  The app will be 
> available on my public IP address in that case too?


you app is being called by apache so it doesn't matter were it is  as
long as apache can reach it.

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



Re: [users@httpd] Port Forwarding Help?

2019-01-21 Thread Ruben Safir
On Mon, Jan 21, 2019 at 04:27:38PM +, Osman Zakir wrote:
> This is what I have in the conf file at the bottom:
> "
>  "E:/programming/visual_studio_2017/Projects/currency_converter/x64/Release">
> Options All???
> Options Indexes FollowSymLinks???
> AllowOverride None???
> Require all granted???
> ???
> ???
> ???

YOUR BOX is listening on port 8000

> ServerAdmin osmanzaki...@hotmail.com???
> ServerName dragonosman.dynu.net???
> ServerAlias www.dragonosman.dynu.net???
> ErrorLog "logs/dragonosman.dynu.net-error.log"???
> CustomLog "logs/dragonosman.dynu.net-access.log" common???
> ProxyPass "/" "http://192.168.10.12:5501/;???
> ProxyPass "/?q=accesskey" "http://192.168.10.12:5501/?q=accesskey;???
> ???
> "
> 
> And I added a forwarding rule for port 8000 for the router.  But I still 
> can't see the app at my public IP address on port 8000.

Your box doesn't LIVE on your router.  Is your box where the webserver lives 
assigned the
public IP address?

what is ifconfig on the webserver box?

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



Re: [users@httpd] Port Forwarding Help?

2019-01-21 Thread Osman Zakir
This is what I have in the conf file at the bottom:
"

Options All​
Options Indexes FollowSymLinks​
AllowOverride None​
Require all granted​
​
​
​
ServerAdmin osmanzaki...@hotmail.com​
ServerName dragonosman.dynu.net​
ServerAlias www.dragonosman.dynu.net​
ErrorLog "logs/dragonosman.dynu.net-error.log"​
CustomLog "logs/dragonosman.dynu.net-access.log" common​
ProxyPass "/" "http://192.168.10.12:5501/"​
ProxyPass "/?q=accesskey" "http://192.168.10.12:5501/?q=accesskey"​
​
"

And I added a forwarding rule for port 8000 for the router.  But I still can't 
see the app at my public IP address on port 8000.


Re: [users@httpd] Port Forwarding Help?

2019-01-21 Thread Eric Covener
On Mon, Jan 21, 2019 at 11:19 AM Osman Zakir  wrote:
>
> Wait, so it's fine if I use my internal IP address?  The app will be 
> available on my public IP address in that case too?

In ProxyPass, assuming your reverse proxy and backend are on the same
internal network, yes.
As long as the reverse proxy is port forwarded, and it proxies to your
backend, the app will be available on your public IP address.




-- 
Eric Covener
cove...@gmail.com

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



Re: [users@httpd] Port Forwarding Help?

2019-01-21 Thread Osman Zakir
Wait, so it's fine if I use my internal IP address?  The app will be available 
on my public IP address in that case too?


Re: [users@httpd] Port Forwarding Help?

2019-01-21 Thread Eric Covener
On Mon, Jan 21, 2019 at 11:12 AM Osman Zakir  wrote:
>
> My server is listening on http://dragonosman.dynu.net:5501/.  Should I put 
> that there then?  Also, should the ProxyPass directive go inside the 
> VirtualHost tags or outside?

Yes. But normally you would use an internal LAN address not a dyndns
kind of thing for the link between a reverse proxy and the backend.

Probably best to move it inside. At the moment, you only have 1
virtual host, so it doesn't make a difference.


-- 
Eric Covener
cove...@gmail.com

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



Re: [users@httpd] Port Forwarding Help?

2019-01-21 Thread Osman Zakir
My server is listening on 
http://dragonosman.dynu.net:5501/.  Should I 
put that there then?  Also, should the ProxyPass directive go inside the 
VirtualHost tags or outside?


Re: [users@httpd] Port Forwarding Help?

2019-01-21 Thread Eric Covener
On Mon, Jan 21, 2019 at 10:56 AM Osman Zakir  wrote:
>
> The httpd.conf file is attached to this email.  The VirtualHost and ProxyPass 
> stuff is at the bottom.  Please let me know what I messed up now, if anything 
> at all.  And if there's something wrong, help me out with that.
>
> The first parameter to the ProxyPass directive for "/" is currently the 
> directory on my computer where the doc-root of the app is.  It's also where 
> the server executable is.  If that's right, should I also put that directory 
> for accesskey route (i.e. /?q=accesskey)?

No, the first parameter is the incoming URL prefix root you want to
forward to what's supposed to be the address of another HTTP server
(origin or backend server) in the 2nd parameter.

Your first parameter is a local filesystem path and it won't match any
request for / or /myapp.  No example looks like this.

It also looks like your 2nd parameter is the URL for the reverse proxy
itself, which would loop if the first parameter ever did match. For
the tenth time, if you don't have your application listening for HTTP
requests in some other server, you should not be setting up a reverse
proxy.

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



[users@httpd] Windows Apache httpd 2.4.38 GA available

2019-01-21 Thread Steffen




Apache httpd 2.4.38  GA available, see 
http://www.apachelounge.com/viewforum.php?f=1


Enjoy,

Steffen



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



Re: [users@httpd] Port Forwarding Help?

2019-01-21 Thread Osman Zakir
The httpd.conf file is attached to this email.  The VirtualHost and ProxyPass 
stuff is at the bottom.  Please let me know what I messed up now, if anything 
at all.  And if there's something wrong, help me out with that.

The first parameter to the ProxyPass directive for "/" is currently the 
directory on my computer where the doc-root of the app is.  It's also where the 
server executable is.  If that's right, should I also put that directory for 
accesskey route (i.e. /?q=accesskey)?

When I try to get to "localhost:8081" in my browser now, I get an "Index of /" 
page and nothing more (8081 is the port Apache is listening on).  Trying to do 
"localhost:8000" gives an error (8000 is the reverse proxy port).


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] Port Forwarding Help?

2019-01-21 Thread Eric Covener
On Mon, Jan 21, 2019 at 10:25 AM Osman Zakir  wrote:
>
> I need to know if I've set up the reverse proxy configuration correctly in 
> the conf file, and also how to fix it I did something wrong.

This has nothing to do with port forwarding in your router.  "If"
you've set it up correctly, accessing the reverse proxy directly
should result in a HTTP request sent to whatever "other" HTTP server
you have that dictates using a reverse proxy at all.

> And I also need to know how to correctly visit the app in the browser after 
> I've set it up correctly and am forwarding the port that Apache is listening 
> (if that's the only port I need to forward).

Get it working on your LAN first.  The "correct" way to visit the app
is determined by what port your reverse proxy listens on and what path
you forward to your backend with the first parameter of ProxyPass.


-- 
Eric Covener
cove...@gmail.com

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



Re: [users@httpd] Port Forwarding Help?

2019-01-21 Thread Osman Zakir
I need to know if I've set up the reverse proxy configuration correctly in the 
conf file, and also how to fix it I did something wrong.  And I also need to 
know how to correctly visit the app in the browser after I've set it up 
correctly and am forwarding the port that Apache is listening (if that's the 
only port I need to forward).


Re: [users@httpd] Port Forwarding Help?

2019-01-21 Thread Eric Covener
On Mon, Jan 21, 2019 at 10:13 AM Osman Zakir  wrote:
>
> I don't know if it's the same as what you're talking about, but I can choose 
> a range for an internal port and for external port (there are External Port 
> Start and External Port End, and Internal Port Start and Internal Port End), 
> and I can use 80 or 443 for the internal port while using a different one for 
> the external port.  Is that what you mean?

Two ranges sounds like you can map it to an alternate listening (internal) port.

-- 
Eric Covener
cove...@gmail.com

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



Re: [users@httpd] Port Forwarding Help?

2019-01-21 Thread Eric Covener
> Because if so, I'll need to choose a different port because I'm having it 
> listen on port 8080 which is being blocked by the ISP.

Unless your router allows you to forward port A to port B in the UI,
you'll have to listen on a port your ISP isn't filtering.

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



Re: [users@httpd] Port Forwarding Help?

2019-01-21 Thread Osman Zakir
I can't use port 80 or 433 for my external port because the router's using 
those ports.  8080 and 8443 are also being blocked by ISP.  So I had to use 
5501 and forward that.  I'll take away the forwarding rule for port 5501 if I 
can get the reverse proxy to work, though.

That being said, just now I tried to visit dragonosman.dynu.net:8000 after 
setting up port forwarding for port 8000, since I'm using that port for the 
VirtualHost setting in the httpd.conf file.  The file is attached to this 
message.

Do I also need to set up port forwarding for the port that Apache is listening 
on?  Because right now I can't get to my app in the browser through port 8000.  
On Chrome, I get this error: ERR_CONNECTION_REFUSED.  I asked on a Discord 
group I go to as well and one of the members there just told me that I only 
need to forward the port that Apache is listening on.  Is this correct?  
Because if so, I'll need to choose a different port because I'm having it 
listen on port 8080 which is being blocked by the ISP.


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] Port Forwarding Help?

2019-01-21 Thread Yehuda Katz
If your ISP blocks port 80 and port 443, there is no way for you to host
the site without a port number.
If you can run a server on those ports, HTTPD would listen there and
reverse proxy to the internal port the app is running on (5501?). You would
not want to forward 5501 through the router because it would allow people
to bypass your reverse proxy.
You prove ownership of the URL by placing a particularly named file in
/.well-known/ and the SSL tool will check for it there. This will not work
if you aren't on a standard port (80/443).

- Y

Sent from a device with a very small keyboard and hyperactive autocorrect.

On Sun, Jan 20, 2019, 3:50 PM Osman Zakir  I found out that the problem was that I was using port 8080 which was
> blocked by my ISP.  I managed to get it to work using a different port
> (port 8443 didn't work either).
>
> Now I need to ask this: if I want to put my app behind Apache's reverse
> proxy, do I need to set up port forwarding for just the port that I set for
> the reverse proxy in ProxyPass directive, or do I also have to do it for
> the one Apache is listening on?
>
> Also, I got a free DynDNS from dynu.com and I'm serving my app on port
> 5501 on it, but is there no way I can use a URL where specifying the port
> number isn't a requirement?  The URL is http://dragonosman.dynu.net:5501/
> .  And if I want to get an SSL certificate for it, seeing as I'm hosting it
> on my own computer with a Dynamic DNS, how do I prove ownership of the
> domain when I try to use something like this? https://www.sslforfree.com/
> .
> SSL For Free - Free SSL Certificates in Minutes
> 
> Free SSL Certificate issued in less than a minute. 100% Free Forever.
> Never pay for SSL again. Thanks to Letsencrypt the first non-profit CA..
> Widely Trusted. Our free SSL certificates are trusted in 99.9% of all major
> browsers.
> www.sslforfree.com
>
>