Re: [users@httpd] Re: httpd[803535]:

2021-03-16 Thread Jason Long
Hello,
Instead of "ErrorDocument 403 "Unusual activity has been detected from this 
IP address."" message, how can I forward it to another page?

Thanks.






On Monday, March 15, 2021, 11:49:41 PM GMT+3:30, Jason Long 
 wrote: 





I solved the problem:


   
      Require all granted
      Include conf/tor-ip.conf
   
ErrorDocument 403 "Unusual activity has been detected from this IP 
address."







On Monday, March 15, 2021, 10:28:22 PM GMT+3:30, Antony Stone 
 wrote: 





On Monday 15 March 2021 at 18:37:40, Jason Long wrote:

> Yes. I saw the same IP address.

What is the answer to Richard's question: "what was the response code? Was it 
(still) a 200 or was it a 401 or 403 or something else?"

> What is the problem?

The problem is that your block list is not getting used correctly.

For now we just don't know why.


Given that this discussion has been going on for quite some time and various 
things have been tried, suggested, tested and reported, I no longer have a 
clear idea of what your Apache configuration for this is, so please can you 
post here:

1. Your Apache configuration for the website in question

2. A clear indication of how you are implementing the block list

3. A small sample of how the IP addresses are specified in the block list

By all means obfuscate anything you think is necessary, but please make it 
obvious:

a) where you have done so, and

b) where two obfuscated things are actually the same

This might help anyone who may be able to help, to be sure they're starting 
from the correct understanding and assumptions.

> On Monday, March 15, 2021, 05:07:07 PM GMT+3:30, Antony Stone wrote:
> 
> So, just to be clear, you added 46.167.45.* to your file of blocked IPs,
> restarted Apache, re-visited your website, and found the same address again
> in Apache's access file with a timestamp after the restart?
> 
> 
> Antony.

-- 
If you ask a Yorkshireman whether he knows the German word for "egg",
don't be surprised if he just smiles and says "Aye".


                                                  Please reply to the list;
                                                        please *don't* CC me.

-
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


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



Re: [users@httpd] Re: httpd[803535]:

2021-03-16 Thread Antony Stone
On Tuesday 16 March 2021 at 09:13:54, Jason Long wrote:

> Hello,
> Instead of "ErrorDocument 403 "Unusual activity has been detected from
> this IP address."" message, how can I forward it to another page?

Try https://httpd.apache.org/docs/2.4/custom-error.html

Antony.

-- 
"The future is already here.   It's just not evenly distributed yet."

 - William Gibson

   Please reply to the list;
 please *don't* CC me.

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



[users@httpd] require valid-users for location bypasses other unrelated restrictions

2021-03-16 Thread Dennis Jacobfeuerborn
Hi,
I trying to understand how the "Require" directive works in non-trivial
cases. This is one example:


  ServerName 127.0.0.1
  DocumentRoot "/var/www/html/site"
  
Authtype Basic
Authname "site"
AuthUserFile /etc/httpd/conf/htpasswd
Require valid-user
  
  
Require all denied
  


When I access http://localhost/area/admin/README.txt without a password
httpd will respond with a 401 as expected but when I supply the correct
credentials not only do I get access to the admin location (expected)
but also to the README.txt file (unexpected).

Why is the "Require all denied" ignored in this case? When I comment out
the location block then I will get the correct 403 Forbidden response so
it seems the "Require valid-user" seems to basically erase the
restrictions defined elsewhere.

How would I specify this correctly so that a password grants me access
to the admin area but the limitation on the README files stays intact?

Regards,
  Dennis

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



Re: [users@httpd] require valid-users for location bypasses other unrelated restrictions

2021-03-16 Thread Eric Covener
On Tue, Mar 16, 2021 at 9:41 AM Dennis Jacobfeuerborn
 wrote:
>
> Hi,
> I trying to understand how the "Require" directive works in non-trivial
> cases. This is one example:
>
> 
>   ServerName 127.0.0.1
>   DocumentRoot "/var/www/html/site"
>   
> Authtype Basic
> Authname "site"
> AuthUserFile /etc/httpd/conf/htpasswd
> Require valid-user
>   
>   
> Require all denied
>   
> 
>
> When I access http://localhost/area/admin/README.txt without a password
> httpd will respond with a 401 as expected but when I supply the correct
> credentials not only do I get access to the admin location (expected)
> but also to the README.txt file (unexpected).
>
> Why is the "Require all denied" ignored in this case? When I comment out
> the location block then I will get the correct 403 Forbidden response so
> it seems the "Require valid-user" seems to basically erase the
> restrictions defined elsewhere.
>
> How would I specify this correctly so that a password grants me access
> to the admin area but the limitation on the README files stays intact?

It's counter-intuitive but Location is merged in after Directory/Files
so it takes precedence.
"AuthMerging and" can be used in the location block to merge the rules
rather than replacing them.
http://httpd.apache.org/docs/2.4/mod/mod_authz_core.html#authmerging

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



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

2021-03-16 Thread Jason Long
Hello,
For a website, I created a reverse proxy config file under the 
"/etc/httpd/conf.d/" directory as below:


        ProxyPreserveHost On
        ProxyPass / http://192.168.1.4/
        ProxyPassReverse / http://192.168.1.4/


If I have other servers, then I must create a config file for each of them or I 
just need to add my servers IP addresses to the above file?


Thank you.

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



Re: [users@httpd] Re: httpd[803535]:

2021-03-16 Thread Jason Long
Thank you so much.






On Tuesday, March 16, 2021, 12:44:45 PM GMT+3:30, Antony Stone 
 wrote: 





On Tuesday 16 March 2021 at 09:13:54, Jason Long wrote:

> Hello,
> Instead of "ErrorDocument 403 "Unusual activity has been detected from
> this IP address."" message, how can I forward it to another page?

Try https://httpd.apache.org/docs/2.4/custom-error.html

Antony.

-- 
"The future is already here.  It's just not evenly distributed yet."

- William Gibson


                                                  Please reply to the list;
                                                        please *don't* CC me.

-
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] Apache Reverse Proxy for more than one website.

2021-03-16 Thread Antony Stone
On Tuesday 16 March 2021 at 19:16:56, Jason Long wrote:

> Hello,
> For a website, I created a reverse proxy config file under the
> "/etc/httpd/conf.d/" directory as below:
> 
> 
> ProxyPreserveHost On
> ProxyPass / http://192.168.1.4/
> ProxyPassReverse / http://192.168.1.4/
> 
> 
> If I have other servers, then I must create a config file for each of them
> or I just need to add my servers IP addresses to the above file?

You can put all your configurations into one file, that is not a problem.

You will need a completely separate  section for each machine you 
want to act as a reverse proxy for.

Finally, I trust you realise that you cannot use  with more 
than one back-end server - there needs to be a way to distinguish which 
incoming requests are to be passed to server A and which ones to server B etc 
(in other words, you have to change the * to something which identifies what 
you want to reverse proxy to where).


Antony.

-- 
In Heaven, the beer is Belgian, the chefs are Italian, the supermarkets are 
British, the mechanics are German, the lovers are French, the entertainment is 
American, and everything is organised by the Swiss.

In Hell, the beer is American, the chefs are British, the supermarkets are 
German, the mechanics are French, the lovers are Swiss, the entertainment is 
Belgian, and everything is organised by the Italians.

   Please reply to the list;
 please *don't* CC me.

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



[users@httpd] Lazy Questions

2021-03-16 Thread Rocky Fountain
Long time subscriber and contributor to the mailing list here, but
using a sock puppet address since this is not a nice thing to do.

Recently there has been a series of emails to the list with lazy
questions and answers. While the frequency of questions by itself is
nothing too concerning, my observation is that often the responses to
the detailed and well-crafted responses from our community is quite
lazy - with follow-up questions that could easily be solved by reading
documentation or doing a simple search.

Looking at one user in particular, I noticed that they have been doing
this on and off on various mailing lists, on average starting over 100
threads across the lists I happen to follow, per year, since 2015.

I understand that it is up to the individual to decide if they want to
put in the time and effort to answer user questions, but at this point
I feel like a warning is due: this is a user mailing list, but it does
not mean you should use the community's time to hand-hold you or as a
replacement for doing your own research.

I would also expect one to have a basic understanding of how network
and load-balancing architectures work if one is in the field for at
least the last 6 years. There are also various guides on these
subjects on the internet, no need to get our community members to
re-explain them to you.

-PB

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



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

2021-03-16 Thread Jason Long
Thanks.
Thus, I can one .conf file under the "/etc/httpd/conf.d/" directory with some 
servers. For example,

#Server 1

        ProxyPreserveHost On
        ProxyPass / http://192.168.1.4/
        ProxyPassReverse / http://192.168.1.4/


#Server 2

        ProxyPreserveHost On
        ProxyPass / http://192.168.1./
        ProxyPassReverse / http://192.168.1.5/





Am I right?


On Tuesday, March 16, 2021, 10:01:27 PM GMT+3:30, Antony Stone 
 wrote: 





On Tuesday 16 March 2021 at 19:16:56, Jason Long wrote:

> Hello,
> For a website, I created a reverse proxy config file under the
> "/etc/httpd/conf.d/" directory as below:
> 
> 
>        ProxyPreserveHost On
>        ProxyPass / http://192.168.1.4/
>        ProxyPassReverse / http://192.168.1.4/
> 
> 
> If I have other servers, then I must create a config file for each of them
> or I just need to add my servers IP addresses to the above file?

You can put all your configurations into one file, that is not a problem.

You will need a completely separate  section for each machine you 
want to act as a reverse proxy for.

Finally, I trust you realise that you cannot use  with more 
than one back-end server - there needs to be a way to distinguish which 
incoming requests are to be passed to server A and which ones to server B etc 
(in other words, you have to change the * to something which identifies what 
you want to reverse proxy to where).


Antony.

-- 
In Heaven, the beer is Belgian, the chefs are Italian, the supermarkets are 
British, the mechanics are German, the lovers are French, the entertainment is 
American, and everything is organised by the Swiss.

In Hell, the beer is American, the chefs are British, the supermarkets are 
German, the mechanics are French, the lovers are Swiss, the entertainment is 
Belgian, and everything is organised by the Italians.

                                                  Please reply to the list;
                                                        please *don't* CC me.


-
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



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

2021-03-16 Thread Florian Schwalm



 
 No, you can only have one virtual host per port.Either you make the second server accessible on a different port or you separate them by server name (namebased virtual hosts) or path... Either way you'd need to decide how you want to distinguish from the user's point of view which server the request is for.Am 16.03.21, 21:23 schrieb Jason Long :

  Thanks.
   Thus, I can one .conf file under the "/etc/httpd/conf.d/" directory with some servers. For example,
   
   #Server 1
   
           ProxyPreserveHost On
           ProxyPass / http://192.168.1.4/
           ProxyPassReverse / http://192.168.1.4/
   
   
   #Server 2
   
           ProxyPreserveHost On
           ProxyPass / http://192.168.1./
           ProxyPassReverse / http://192.168.1.5/
   
   
   
   
   
   Am I right?
   
   
   On Tuesday, March 16, 2021, 10:01:27 PM GMT+3:30, Antony Stone  wrote: 
   
   
   
   
   
   On Tuesday 16 March 2021 at 19:16:56, Jason Long wrote:
   
   > Hello,
   > For a website, I created a reverse proxy config file under the
   > "/etc/httpd/conf.d/" directory as below:
   > 
   > 
   >        ProxyPreserveHost On
   >        ProxyPass / http://192.168.1.4/
   >        ProxyPassReverse / http://192.168.1.4/
   > 
   > 
   > If I have other servers, then I must create a config file for each of them
   > or I just need to add my servers IP addresses to the above file?
   
   You can put all your configurations into one file, that is not a problem.
   
   You will need a completely separate  section for each machine you 
   want to act as a reverse proxy for.
   
   Finally, I trust you realise that you cannot use  with more 
   than one back-end server - there needs to be a way to distinguish which 
   incoming requests are to be passed to server A and which ones to server B etc 
   (in other words, you have to change the * to something which identifies what 
   you want to reverse proxy to where).
   
   
   Antony.
   
   -- 
   In Heaven, the beer is Belgian, the chefs are Italian, the supermarkets are 
   British, the mechanics are German, the lovers are French, the entertainment is 
   American, and everything is organised by the Swiss.
   
   In Hell, the beer is American, the chefs are British, the supermarkets are 
   German, the mechanics are French, the lovers are Swiss, the entertainment is 
   Belgian, and everything is organised by the Italians.
   
                                                     Please reply to the list;
                                                           please *don't* CC me.
   
   
   -
   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
   
   
 


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



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

2021-03-16 Thread Daniel Ferradal
Try and let us know your results.

El mar, 16 mar 2021 a las 21:23, Jason Long
() escribió:
>
> Thanks.
> Thus, I can one .conf file under the "/etc/httpd/conf.d/" directory with some 
> servers. For example,
>
> #Server 1
> 
> ProxyPreserveHost On
> ProxyPass / http://192.168.1.4/
> ProxyPassReverse / http://192.168.1.4/
> 
>
> #Server 2
> 
> ProxyPreserveHost On
> ProxyPass / http://192.168.1./
> ProxyPassReverse / http://192.168.1.5/
> 
>
>
>
>
> Am I right?
>
>
> On Tuesday, March 16, 2021, 10:01:27 PM GMT+3:30, Antony Stone 
>  wrote:
>
>
>
>
>
> On Tuesday 16 March 2021 at 19:16:56, Jason Long wrote:
>
> > Hello,
> > For a website, I created a reverse proxy config file under the
> > "/etc/httpd/conf.d/" directory as below:
> >
> > 
> >ProxyPreserveHost On
> >ProxyPass / http://192.168.1.4/
> >ProxyPassReverse / http://192.168.1.4/
> > 
> >
> > If I have other servers, then I must create a config file for each of them
> > or I just need to add my servers IP addresses to the above file?
>
> You can put all your configurations into one file, that is not a problem.
>
> You will need a completely separate  section for each machine you
> want to act as a reverse proxy for.
>
> Finally, I trust you realise that you cannot use  with more
> than one back-end server - there needs to be a way to distinguish which
> incoming requests are to be passed to server A and which ones to server B etc
> (in other words, you have to change the * to something which identifies what
> you want to reverse proxy to where).
>
>
> Antony.
>
> --
> In Heaven, the beer is Belgian, the chefs are Italian, the supermarkets are
> British, the mechanics are German, the lovers are French, the entertainment is
> American, and everything is organised by the Swiss.
>
> In Hell, the beer is American, the chefs are British, the supermarkets are
> German, the mechanics are French, the lovers are Swiss, the entertainment is
> Belgian, and everything is organised by the Italians.
>
>   Please reply to the list;
> please *don't* CC me.
>
>
> -
> 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
>


-- 
Daniel Ferradal
HTTPD Project
#httpd help at Freenode

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



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

2021-03-16 Thread Jason Long
It show me below error:
The server is temporarily unable to service your request due to maintenance 
downtime or capacity problems. Please try again later

Why?





On Wednesday, March 17, 2021, 12:08:07 AM GMT+3:30, Daniel Ferradal 
 wrote: 





Try and let us know your results.

El mar, 16 mar 2021 a las 21:23, Jason Long
() escribió:
>
> Thanks.
> Thus, I can one .conf file under the "/etc/httpd/conf.d/" directory with some 
> servers. For example,
>
> #Server 1
> 
>        ProxyPreserveHost On
>        ProxyPass / http://192.168.1.4/
>        ProxyPassReverse / http://192.168.1.4/
> 
>
> #Server 2
> 
>        ProxyPreserveHost On
>        ProxyPass / http://192.168.1./
>        ProxyPassReverse / http://192.168.1.5/
> 
>
>
>
>
> Am I right?
>
>
> On Tuesday, March 16, 2021, 10:01:27 PM GMT+3:30, Antony Stone 
>  wrote:
>
>
>
>
>
> On Tuesday 16 March 2021 at 19:16:56, Jason Long wrote:
>
> > Hello,
> > For a website, I created a reverse proxy config file under the
> > "/etc/httpd/conf.d/" directory as below:
> >
> > 
> >        ProxyPreserveHost On
> >        ProxyPass / http://192.168.1.4/
> >        ProxyPassReverse / http://192.168.1.4/
> > 
> >
> > If I have other servers, then I must create a config file for each of them
> > or I just need to add my servers IP addresses to the above file?
>
> You can put all your configurations into one file, that is not a problem.
>
> You will need a completely separate  section for each machine you
> want to act as a reverse proxy for.
>
> Finally, I trust you realise that you cannot use  with more
> than one back-end server - there needs to be a way to distinguish which
> incoming requests are to be passed to server A and which ones to server B etc
> (in other words, you have to change the * to something which identifies what
> you want to reverse proxy to where).
>
>
> Antony.
>
> --
> In Heaven, the beer is Belgian, the chefs are Italian, the supermarkets are
> British, the mechanics are German, the lovers are French, the entertainment is
> American, and everything is organised by the Swiss.
>
> In Hell, the beer is American, the chefs are British, the supermarkets are
> German, the mechanics are French, the lovers are Swiss, the entertainment is
> Belgian, and everything is organised by the Italians.
>
>                                                  Please reply to the list;
>                                                        please *don't* CC me.
>
>
> -
> 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
>


-- 
Daniel Ferradal
HTTPD Project
#httpd help at Freenode


-
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] Aw: Re: [users@httpd] Apache Reverse Proxy for more than one website.

2021-03-16 Thread Jason Long
Thus, for each server I need a config file?






On Wednesday, March 17, 2021, 12:12:09 AM GMT+3:30, Florian Schwalm 
 wrote: 





No, you can only have one virtual host per port.
Either you make the second server accessible on a different port or you 
separate them by server name (namebased virtual hosts) or path... Either way 
you'd need to decide how you want to distinguish from the user's point of view 
which server the request is for.

Am 16.03.21, 21:23 schrieb Jason Long :
>  Thanks. 
> Thus, I can one .conf file under the "/etc/httpd/conf.d/" directory with some 
> servers. For example, 
> 
> #Server 1 
>  
>         ProxyPreserveHost On 
>         ProxyPass / http://192.168.1.4/ 
>         ProxyPassReverse / http://192.168.1.4/ 
>  
> 
> #Server 2 
>  
>         ProxyPreserveHost On 
>         ProxyPass / http://192.168.1./ 
>         ProxyPassReverse / http://192.168.1.5/ 
>  
> 
> 
> 
> 
> Am I right? 
> 
> 
> On Tuesday, March 16, 2021, 10:01:27 PM GMT+3:30, Antony Stone 
>  wrote: 
> 
> 
> 
> 
> 
> On Tuesday 16 March 2021 at 19:16:56, Jason Long wrote: 
> 
>> Hello, 
>> For a website, I created a reverse proxy config file under the 
>> "/etc/httpd/conf.d/" directory as below: 
>> 
>>  
>>        ProxyPreserveHost On 
>>        ProxyPass / http://192.168.1.4/ 
>>        ProxyPassReverse / http://192.168.1.4/ 
>>  
>> 
>> If I have other servers, then I must create a config file for each of them 
>> or I just need to add my servers IP addresses to the above file? 
> 
> You can put all your configurations into one file, that is not a problem. 
> 
> You will need a completely separate  section for each machine 
> you 
> want to act as a reverse proxy for. 
> 
> Finally, I trust you realise that you cannot use  with more 
> than one back-end server - there needs to be a way to distinguish which 
> incoming requests are to be passed to server A and which ones to server B etc 
> (in other words, you have to change the * to something which identifies what 
> you want to reverse proxy to where). 
> 
> 
> Antony. 
> 
> -- 
> In Heaven, the beer is Belgian, the chefs are Italian, the supermarkets are 
> British, the mechanics are German, the lovers are French, the entertainment 
> is 
> American, and everything is organised by the Swiss. 
> 
> In Hell, the beer is American, the chefs are British, the supermarkets are 
> German, the mechanics are French, the lovers are Swiss, the entertainment is 
> Belgian, and everything is organised by the Italians. 
> 
>                                                   Please reply to the list; 
>                                                         please *don't* CC me. 
> 
> 
> - 
> 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 
> 
> 
- 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] Apache Reverse Proxy for more than one website.

2021-03-16 Thread Stormy

On 2021-03-16 4:23 p.m., Jason Long wrote:

Thanks.
Thus, I can one .conf file under the "/etc/httpd/conf.d/" directory with some 
servers. For example,

[snip]

Maybe semantic, maybe not absolute, maybe you've already read or been 
told, but using .d locations for user/programatic orientated files is 
not pure linux and might turn around and bite you.


YMMV

Paul

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



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

2021-03-16 Thread Eric Covener
On Tue, Mar 16, 2021 at 5:00 PM Jason Long  wrote:
>
> It show me below error:
> The server is temporarily unable to service your request due to maintenance 
> downtime or capacity problems. Please try again later
>
> Why?

We don't know, we didn't read the error log either.

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



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

2021-03-16 Thread Jason Long
I created two files under "/etc/httpd/conf.d" directory:

reverse_proxy1.conf
reverse_proxy2.conf

The content of reverse_proxy1.conf file:

        ProxyPreserveHost On
        ProxyPass / http://192.168.1.20/
        ProxyPassReverse / http://192.168.1.20/


The content of reverse_proxy2.conf file:


        ProxyPreserveHost On
        ProxyPass / http://192.168.1.4/
        ProxyPassReverse / http://192.168.1.4/


Logs tell me:

# cat /var/log/httpd/error_log
[Wed Mar 17 00:36:26.001605 2021] [proxy:error] [pid 10705:tid 10753] (113)No 
route to host: AH00957: HTTP: attempt to connect to 192.168.1.20:80 
(192.168.1.20) failed
[Wed Mar 17 00:36:26.001690 2021] [proxy_http:error] [pid 10705:tid 10753] 
[client 10.0.3.2:51986] AH01114: HTTP: failed to make connection to backend: 
192.168.1.20

# cat /var/log/httpd/access_log
10.0.3.2 - - [17/Mar/2021:00:36:22 +0330] "GET / HTTP/1.1" 503 299 "-" 
"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) 
Chrome/89.0.4389.86 Safari/537.36"


When I remove one of the .conf file, then it worked.



On Wednesday, March 17, 2021, 12:34:50 AM GMT+3:30, Eric Covener 
 wrote: 





On Tue, Mar 16, 2021 at 5:00 PM Jason Long  wrote:
>
> It show me below error:
> The server is temporarily unable to service your request due to maintenance 
> downtime or capacity problems. Please try again later
>
> Why?

We don't know, we didn't read the error log either.


-
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] Apache Reverse Proxy for more than one website.

2021-03-16 Thread Jason Long
I used Name-based Virtual Host too:

The content of reverse_proxy1.conf file:

        ServerName node3
ProxyPreserveHost On
        ProxyPass / http://192.168.1.20/
        ProxyPassReverse / http://192.168.1.20/



The content of reverse_proxy2.conf file:

        ServerName node4   
        ProxyPreserveHost On
        ProxyPass / http://192.168.1.4/
        ProxyPassReverse / http://192.168.1.4/


But, I got "Service Unavailable" error.

Logs tell me:

# cat /var/log/httpd/error_log
[Wed Mar 17 01:12:44.817647 2021] [proxy:error] [pid 28599:tid 28649] (113)No 
route to host: AH00957: HTTP: attempt to connect to 192.168.1.20:80 
(192.168.1.20) failed
[Wed Mar 17 01:12:44.817775 2021] [proxy_http:error] [pid 28599:tid 28649] 
[client 10.0.3.2:52142] AH01114: HTTP: failed to make connection to backend: 
192.168.1.20










On Wednesday, March 17, 2021, 12:50:04 AM GMT+3:30, Jason Long 
 wrote: 





I created two files under "/etc/httpd/conf.d" directory:

reverse_proxy1.conf
reverse_proxy2.conf

The content of reverse_proxy1.conf file:

        ProxyPreserveHost On
        ProxyPass / http://192.168.1.20/
        ProxyPassReverse / http://192.168.1.20/


The content of reverse_proxy2.conf file:


        ProxyPreserveHost On
        ProxyPass / http://192.168.1.4/
        ProxyPassReverse / http://192.168.1.4/


Logs tell me:

# cat /var/log/httpd/error_log
[Wed Mar 17 00:36:26.001605 2021] [proxy:error] [pid 10705:tid 10753] (113)No 
route to host: AH00957: HTTP: attempt to connect to 192.168.1.20:80 
(192.168.1.20) failed
[Wed Mar 17 00:36:26.001690 2021] [proxy_http:error] [pid 10705:tid 10753] 
[client 10.0.3.2:51986] AH01114: HTTP: failed to make connection to backend: 
192.168.1.20

# cat /var/log/httpd/access_log
10.0.3.2 - - [17/Mar/2021:00:36:22 +0330] "GET / HTTP/1.1" 503 299 "-" 
"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) 
Chrome/89.0.4389.86 Safari/537.36"


When I remove one of the .conf file, then it worked.



On Wednesday, March 17, 2021, 12:34:50 AM GMT+3:30, Eric Covener 
 wrote: 





On Tue, Mar 16, 2021 at 5:00 PM Jason Long  wrote:
>
> It show me below error:
> The server is temporarily unable to service your request due to maintenance 
> downtime or capacity problems. Please try again later
>
> Why?

We don't know, we didn't read the error log either.


-
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


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



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

2021-03-16 Thread Stormy

On 2021-03-16 5:43 p.m., Jason Long wrote:

I used Name-based Virtual Host too:


Dear moderators,

I have been subscribed to this list since 2010-10-16, 6:34 p.m. and have 
always enjoyed collegial conversations and learned a lot.  The person 
promoting this thread, whose email address contains the phrase 'hack3r' 
appears to be more interested in creating noise than learning.  My 
opinion is mine alone and does not engage the responsibility of anyone 
except myself, but I am asking if one of you would be kind enough to 
diplomatically and respectfully reduce the noise level.


Many thanks, best regards, and please stay safe,

Paul
Tired old sys-admin.

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