Re: [users@httpd] RewriteRule Time settings for sub folders

2021-03-17 Thread Eric Covener
https://httpd.apache.org/docs/trunk/rewrite/advanced.html#time-dependent On Wed, Mar 17, 2021, 5:35 PM Jens Kallup wrote: > Hello, > > I use Apache 2.4. is it possible to add time based openings in vhost's > sub/multiple directories? > When yes, how can I do this? > > Greets, Jens > > > ---

Re: [users@httpd] Apache2 troubleshooting - newbie

2021-03-17 Thread S K
Solved with UFW On Wednesday, March 17, 2021, 03:03:05 PM EDT, S K wrote: >I think you misunderstood me. I used a browser from a PC ip 192.168.2.109 and >hence in this case perl code exists in my local pc 192.168.2.109 but this perl >code connects to MariaDB in 192.168.2.109  Typo P

Re: [users@httpd] RewriteRule Time settings for sub folders

2021-03-17 Thread Will Fatherley
On Wed, Mar 17, 2021 at 5:36 PM Jens Kallup wrote: > Hello, > > I use Apache 2.4. is it possible to add time based openings in vhost's > sub/multiple directories? > When yes, how can I do this? > > A possibility might be to write up a cron script that interchanges the value of an environment var

Re: [users@httpd] RewriteRule Time settings for sub folders

2021-03-17 Thread Antony Stone
On Wednesday 17 March 2021 at 22:35:36, Jens Kallup wrote: > Hello, > > I use Apache 2.4. is it possible to add time based openings in vhost's > sub/multiple directories? I do not believe apache can use time specifications in its configuration files. Out of interest, what would you do with the

[users@httpd] RewriteRule Time settings for sub folders

2021-03-17 Thread Jens Kallup
Hello, I use Apache 2.4.  is it possible to add time based openings in vhost's sub/multiple directories? When yes, how can I do this? Greets, Jens - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional com

Re: [users@httpd] Apache2 troubleshooting - newbie

2021-03-17 Thread S K
>I think you misunderstood me. I used a browser from a PC ip 192.168.2.109 and >hence in this case perl code exists in my local pc 192.168.2.109 but this perl >code connects to MariaDB in 192.168.2.109  Typo PC ip 192.168.2.102On Wednesday, March 17, 2021, 02:53:41 PM EDT, S K wrote:

Re: [users@httpd] Apache2 troubleshooting - newbie

2021-03-17 Thread S K
Hi Richard,  > http://192.168.2.109/p/index.plᅠdoes not work >If it's from a machine on the .1 network, the issue is that you've segmented your network and probably need to change the netmask on some machines (and perhaps a router) so that they can see both segments not just the one they are on.

Re: [users@httpd] Apache2 troubleshooting - newbie

2021-03-17 Thread Richard
> Date: Wednesday, March 17, 2021 17:03:51 + > From: S K > > Hi, this is my scenario (everything is within my LAN): > > BEFORE > I have my MariaDB in machine 192.168.1.209; I access the MariaDB > using windows client DBeaver and works fine. I had a working ubuntu > machine 192.168.1.209 an

Re: [users@httpd] Apache Reverse Proxy for more than one website.

2021-03-17 Thread Jonathon Koyle
>Why this is a matter to the Apache? In a real scenario, consider that an Apache Reverse >Proxy servicing to 100 web servers, one of these servers is turned off or...Apache must >service to other servers!! >I turned off a server to solve this conflict. Why Apache never read another Virtual >Host co

[users@httpd] Apache2 troubleshooting - newbie

2021-03-17 Thread S K
Hi, this is my scenario (everything is within my LAN): BEFORE I have my MariaDB in machine 192.168.1.209; I access the MariaDB using windows client DBeaver and works fine. I had a working ubuntu machine 192.168.1.209 and my Perl scripts could be executed in my local windows browser (192.168.1.xx

Re: [users@httpd] Apache Reverse Proxy for more than one website.

2021-03-17 Thread Jason Long
Sure. Thank you. On Wednesday, March 17, 2021, 08:26:40 PM GMT+3:30, Antony Stone wrote: On Wednesday 17 March 2021 at 17:44:07, Jason Long wrote: > No, it is not home work. What Eric means is that you should start trying to solve some of these problems on your own, and not ask so

Re: [users@httpd] Apache Reverse Proxy for more than one website.

2021-03-17 Thread Antony Stone
On Wednesday 17 March 2021 at 17:53:03, Jason Long wrote: > Thank you Antony. > No, Google and Yahoo are exmaple. So, please use more meaningful names when asking your questions. I've already said that using existing domains which are not yours misleads the person answering into thinking you r

Re: [users@httpd] Apache Reverse Proxy for more than one website.

2021-03-17 Thread Antony Stone
On Wednesday 17 March 2021 at 17:44:07, Jason Long wrote: > No, it is not home work. What Eric means is that you should start trying to solve some of these problems on your own, and not ask so many questions here on the list which are either explained in the documentation, or already answered e

Re: [users@httpd] Apache Reverse Proxy for more than one website.

2021-03-17 Thread Jason Long
Thank you Antony. No, Google and Yahoo are exmaple. > however you manage that using DNS You meant was my DNS server that when a client write "google.com" in his\her browser and it forward to my Reverse Proxy server with that name and my Reverse Proxy server forward that request to properly serv

Re: [users@httpd] Apache Reverse Proxy for more than one website.

2021-03-17 Thread Antony Stone
On Wednesday 17 March 2021 at 17:49:17, Antony Stone wrote: > On Wednesday 17 March 2021 at 17:45:13, Jason Long wrote: > > > In a real scenarios the 100 backend servers run the same > > > application/website, not different ones. This makes them > > > interchangeable. That's why when one goes down

Re: [users@httpd] Apache Reverse Proxy for more than one website.

2021-03-17 Thread Antony Stone
On Wednesday 17 March 2021 at 17:45:13, Jason Long wrote: > > In a real scenarios the 100 backend servers run the same > > application/website, not different ones. This makes them interchangeable. > > That's why when one goes down, the reverse proxy can route to another > > transparently. > > Th

Re: [users@httpd] Apache Reverse Proxy for more than one website.

2021-03-17 Thread Jason Long
> In a real scenarios the 100 backend servers run the same application/website, not different ones. This makes them interchangeable.  That's why when one goes down, the reverse proxy can route to another transparently. Thus, for 100 different websites, we need 100 reverse proxy servers. On W

Re: [users@httpd] Apache Reverse Proxy for more than one website.

2021-03-17 Thread Jason Long
No, it is not home work. On Wednesday, March 17, 2021, 08:11:51 PM GMT+3:30, Eric Covener wrote: On Wed, Mar 17, 2021 at 12:36 PM Jason Long wrote: > > Why this is a matter to the Apache? In a real scenario, consider that an > Apache Reverse Proxy servicing to 100 web servers, one o

Re: [users@httpd] Apache Reverse Proxy for more than one website.

2021-03-17 Thread Eric Covener
On Wed, Mar 17, 2021 at 12:36 PM Jason Long wrote: > > Why this is a matter to the Apache? In a real scenario, consider that an > Apache Reverse Proxy servicing to 100 web servers, one of these servers is > turned off or...Apache must service to other servers!! > I turned off a server to solve t

Re: [users@httpd] Apache Reverse Proxy for more than one website.

2021-03-17 Thread Antony Stone
On Wednesday 17 March 2021 at 17:33:46, Jason Long wrote: > The load balancing is different. It is kind of HA. Yes. > When my real server is down then Apache forward requests to my backup server That is HA. > and my website never down. Right. > Excuse me, according to below diagram, is my co

Re: [users@httpd] Apache Reverse Proxy for more than one website.

2021-03-17 Thread Jason Long
The load balancing is different. It is kind of HA. When my real server is down then Apache forward requests to my backup server and my website never down. Excuse me, according to below diagram, is my configuration work in a real scenario? The Internet ---> Apache Reverse Proxy ---> Apache Web Se

Re: [users@httpd] Apache Reverse Proxy for more than one website.

2021-03-17 Thread Antony Stone
On Wednesday 17 March 2021 at 17:21:24, Jason Long wrote: > Why this is a matter to the Apache? In a real scenario, consider that an > Apache Reverse Proxy servicing to 100 web servers, one of these servers is > turned off or...Apache must service to other servers!! I turned off a > server to solv

Re: [users@httpd] Apache Reverse Proxy for more than one website.

2021-03-17 Thread Antony Stone
On Wednesday 17 March 2021 at 17:05:37, Jason Long wrote: > Thank you. > My VM uses port forwarding. When I browse 127.0.0.1:2080 on my host then it > forwarded to my guest port 80. That's neither here nor there for what we're discussing. > > Are you suggesting that a request which *would* go to

Re: [users@httpd] Apache Reverse Proxy for more than one website.

2021-03-17 Thread Jason Long
Why this is a matter to the Apache? In a real scenario, consider that an Apache Reverse Proxy servicing to 100 web servers, one of these servers is turned off or...Apache must service to other servers!! I turned off a server to solve this conflict. Why Apache never read another Virtual Host conf

Re: [users@httpd] Apache Reverse Proxy for more than one website.

2021-03-17 Thread Eric Covener
On Wed, Mar 17, 2021 at 12:05 PM Jason Long wrote: > > Thank you. > My VM uses port forwarding. When I browse 127.0.0.1:2080 on my host then it > forwarded to my guest port 80. > > > Are you suggesting that a request which *would* go to 192.168.1.4 if it were > turned on, should in fact go to 192

Re: [users@httpd] Apache Reverse Proxy for more than one website.

2021-03-17 Thread Jason Long
Thank you. My VM uses port forwarding. When I browse 127.0.0.1:2080 on my host then it forwarded to my guest port 80. > Are you suggesting that a request which *would* go to 192.168.1.4 if it were turned on, should in fact go to 192.168.1.20 if 192.168.1.4 is turned off? Yes. My browser can't di

Re: [users@httpd] Apache Reverse Proxy for more than one website.

2021-03-17 Thread Antony Stone
On Wednesday 17 March 2021 at 15:15:49, Jason Long wrote: > One of my Apache server (192.168.1.4) is turned off and I tried to see my > server. Please specific exactly how you "tried to see my server". > Reverse Proxy must show other Apache server(192.168.1.20) Are you suggesting that a request

Re: [users@httpd] Apache Reverse Proxy for more than one website.

2021-03-17 Thread Jason Long
I changed my Virtual Host config as below:     ServerName node3     ErrorLog /var/log/httpd/node3_error_log     TransferLog /var/log/httpd/node3_access_log                ProxyPass  http://192.168.1.4/          ProxyPassReverse   http://192.168.1.4/                    ServerName node4      Err

Re: [users@httpd] Apache Reverse Proxy for more than one website.

2021-03-17 Thread Antony Stone
On Wednesday 17 March 2021 at 14:57:06, Jason Long wrote: > My current configuration is: > > > ServerName node3 > ErrorLog /var/log/httpd/error_log > TransferLog /var/log/httpd/access_log > I don't like the look of the / in that tag. It's closing the tag before you've de

Re: [users@httpd] Apache Reverse Proxy for more than one website.

2021-03-17 Thread Jason Long
My current configuration is:      ServerName node3      ErrorLog /var/log/httpd/error_log      TransferLog /var/log/httpd/access_log                ProxyPass  http://192.168.1.4/           ProxyPassReverse   http://192.168.1.4/                    ServerName node4      ErrorLog /var/log/httpd/err

Re: [users@httpd] Apache Reverse Proxy for more than one website.

2021-03-17 Thread Antony Stone
On Wednesday 17 March 2021 at 14:40:32, Jason Long wrote: > Thank you. > Which part of my configuration is wrong? I don't know. I've lost track of what your configuration looks like now. > My Reverse Proxy can see my Apache web servers and as I said, its worked > with one host, but can't work w

Re: [users@httpd] Apache Reverse Proxy for more than one website.

2021-03-17 Thread Jason Long
Thank you. Which part of my configuration is wrong? My Reverse Proxy can see my Apache web servers and as I said, its worked with one host, but can't work with two hosts. it sounds like, my Reverse Proxy just see the first Virtual Host config!!! On Wednesday, March 17, 2021, 05:03:10 PM GMT

Re: [users@httpd] Apache Reverse Proxy for more than one website.

2021-03-17 Thread Antony Stone
On Wednesday 17 March 2021 at 14:28:29, Jason Long wrote: > I want to have one Reverse Proxy server that service to some web servers > that each of them has theirs domains and IPs. I want to know, for 10 > different websites that each of them has different IPs and domain names, I > need 10 Reverse

Re: [users@httpd] Apache Reverse Proxy for more than one website.

2021-03-17 Thread Jason Long
Thanks. Yahoo and Google was example. Your examples (serviceA.example.com and serviceB.example.com) are subdomains of the exmaple.com.  I used Yahoo and Google because they are different domains. My scenario is just experimentation. I want to have one Reverse Proxy server that service to some web

Re: [users@httpd] Apache Reverse Proxy for more than one website.

2021-03-17 Thread Antony Stone
On Wednesday 17 March 2021 at 13:25:34, Jason Long wrote: > No, I don't need a load balance. Okay, so each request goes to one back-end server, and if that server is unavailable, the request fails. You do not expect the request to be sent to another backend server instead. > I want my Reverse

Re: [users@httpd] Apache Reverse Proxy for more than one website.

2021-03-17 Thread Eric Covener
On Wed, Mar 17, 2021 at 8:26 AM Jason Long wrote: > > No, I don't need a load balance. Let me clear it. Consider below diagram: > > The Internet ---> Apache Reverse Proxy ---> Apache Web Server 1 (IP: 1.2.3.4, > Name: Yahoo.com) > -

Re: [users@httpd] Apache Reverse Proxy for more than one website.

2021-03-17 Thread Jason Long
No, I don't need a load balance. Let me clear it. Consider below diagram: The Internet ---> Apache Reverse Proxy ---> Apache Web Server 1 (IP: 1.2.3.4, Name: Yahoo.com)      ---> Apache Web Server 2 (IP: 1.2.3.5, Name: Google.com) Plea

Re: [users@httpd] Apache Reverse Proxy for more than one website.

2021-03-17 Thread Eric Covener
On Wed, Mar 17, 2021 at 8:09 AM Jason Long wrote: > > Thank you. > I saw https://stackoverflow.com/questions/50611098. I tested it, but got the > same result. > I changed my Virtual Host file as below: > > > ServerName node3 > ErrorLog /var/log/httpd/error_log > TransferLog /var/l

Re: [users@httpd] Apache Reverse Proxy for more than one website.

2021-03-17 Thread Jason Long
Thank you. I saw https://stackoverflow.com/questions/50611098. I tested it, but got the same result. I changed my Virtual Host file as below:      ServerName node3      ErrorLog /var/log/httpd/error_log      TransferLog /var/log/httpd/access_log                ProxyPass  http://192.168.1.4/     

Re: [users@httpd] Apache Reverse Proxy for more than one website.

2021-03-17 Thread Nick Folino
This list isn't your private school. Put in the effort, read and understand the documentation. If you don't understand it, read it again. Spend a few hours or days playing with your config files to see what happens when you change them. You need to have an understanding of how networks and proxy

Re: [users@httpd] Apache Reverse Proxy for more than one website.

2021-03-17 Thread Antony Stone
On Wednesday 17 March 2021 at 12:34:44, Jason Long wrote: > I'm a newbie and as you said you are here from 2010. OK, tell me how can I > configure an Apache Reverse Proxy to service to the multiple web servers? I did a Google search for "Apache reverse proxy multiple web servers". https://stacko

Re: [users@httpd] Apache Reverse Proxy for more than one website.

2021-03-17 Thread Jason Long
You wrong. I'm a newbie and as you said you are here from 2010. OK, tell me how can I configure an Apache Reverse Proxy to service to the multiple web servers? https://www.letmegooglethat.com/?q=How+to+use+Apache+reverse+proxy+for+multiple+web+server I looked at the document too:  https://httpd.a