Re: [users@httpd] 2.4 named virtual hosts question

2016-09-12 Thread Ronald F. Guilmette
My thanks to everybody who replied in this thread. I decided just to take the simple way out, so I added this near the top of my httpd-vhosts.conf file: ServerName localhost ServerAdmin webmas...@tristatelogic.com DocumentRoot /usr/local/www/apache24/data/localhost/htdocs Error

[users@httpd] Apache 2.4 reverse proxy with digest authentication and macros

2016-09-12 Thread Emanuele Bastianelli
Hi, I'm having a problem configuring Apache 2.4 as a reverse proxy with Digest Authentication. The strange behaviour is that if I activate the reverse proxy directives, the authentication stops working. For design reasons, I'm using mod_macro. These are my config files: macro.conf

[users@httpd] Apache 2.4 timeouts/connection refused under high load. Works fine with version 2.2

2016-09-12 Thread Fernando Marcelo
Hi, I'm running Apache 2.4 (prefork) on a Centos 7 server. The server specs are pretty good: 2 x Xeon E5-2697 v3 @ 2.60GHz, 512GB of RAM and 8 SSDs in RAID 10. This Apache server is used to run a PHP software and serve a few static files, although most of the static files are cached in our CDN se

Re: [users@httpd] AuthName with expression in Apache 2.4

2016-09-12 Thread Emanuele Bastianelli
Ok, thank you. I think I'll stick with stable versions for now, trying to find some workaround. 2016-09-12 13:33 GMT+01:00 Luca Toscano : > Hi Emanuele, > > 2016-09-12 12:35 GMT+02:00 Emanuele Bastianelli : > >> According to the documentation >>

Re: [users@httpd] Apache 2.4 mod_macro does not instantiate all the defined Macros

2016-09-12 Thread Emanuele Bastianelli
Yeah, I ended up with basically the same solution. In the macro.conf file under conf-enabled/ I put AuthName $request_uri AuthType Digest AuthDigestAlgorithm MD5 AuthDigestDomain / AuthDigestProvider dbd AuthDBDUserRealmQuery "SELEC

Re: [users@httpd] 2.4 named virtual hosts question

2016-09-12 Thread Marat Khalili
On 12/09/16 18:47, Rainer Canavan wrote: The obvious ones I can come up with would be Alias, ScriptAlias, FastCGIExternalServer, Action and RewriteRule. All those can be defined in the global context (i.e. outside of any vhost) and are valid for all vhosts. (for RewriteRule, that may require Rew

Re: [users@httpd] 2.4 named virtual hosts question

2016-09-12 Thread Rainer Canavan
On Mon, Sep 12, 2016 at 3:21 PM, Marat Khalili wrote: > On 12/09/16 15:25, Rainer Canavan wrote: >> >> >> However, in this example, you'd add a virtualhost that may expose >> globally configured resources without the individual access controls of >> the "real" vhosts. On top of that, the additiona

Re: [users@httpd] 2.4 named virtual hosts question

2016-09-12 Thread Marat Khalili
On 12/09/16 15:25, Rainer Canavan wrote: However, in this example, you'd add a virtualhost that may expose globally configured resources without the individual access controls of the "real" vhosts. On top of that, the additional vhost may not see any significant testing in case of configuration

Re: [users@httpd] AuthName with expression in Apache 2.4

2016-09-12 Thread Luca Toscano
Hi Emanuele, 2016-09-12 12:35 GMT+02:00 Emanuele Bastianelli : > According to the documentation > , > in apache 2.5 it should be possible to use expressions in the AuthName > directive > when performing authentication, e.g. >

Re: [users@httpd] 2.4 named virtual hosts question

2016-09-12 Thread Rainer Canavan
[...] >> Additionally, if you bind any further vhosts to specific IP addresses, e.g. >> , then that virtualhost will have precedence for >> requests to 192.0.2.1:80 over the *:80 virtualhost. > > In this case you'll have create separate default deny configuration for each > IP address, right? > >>

Re: [users@httpd] Apache 2.4 mod_macro does not instantiate all the defined Macros

2016-09-12 Thread Luca Toscano
Hi Emanuele, 2016-09-12 12:42 GMT+02:00 Emanuele Bastianelli : > I'm using Apache 2.4 with mod_macro. According to the documentation > , it is possible to > instantiate several macro, in order to not to rewrite the same block of > configuratio

[users@httpd] Apache 2.4 mod_macro does not instantiate all the defined Macros

2016-09-12 Thread Emanuele Bastianelli
I'm using Apache 2.4 with mod_macro. According to the documentation , it is possible to instantiate several macro, in order to not to rewrite the same block of configuration. Example from the documentation: ServerName $domain Server

[users@httpd] AuthName with expression in Apache 2.4

2016-09-12 Thread Emanuele Bastianelli
According to the documentation , in apache 2.5 it should be possible to use expressions in the AuthName directive when performing authentication, e.g. AuthName "%{REQUEST_URI}" In this case, it should be possible to treat dynam

Re: [users@httpd] 2.4 named virtual hosts question

2016-09-12 Thread Marat Khalili
On 12/09/16 12:03, Rainer Canavan wrote: I'm not 100% sure, but that may not deny access to absolutely everything, in case you have global directives such as cgi aliases or proxy constructs, possibly with mod_rewrite and [P] which point to non-directory resources. Therefore it may be better t

Re: [users@httpd] 2.4 named virtual hosts question

2016-09-12 Thread Rainer Canavan
>> >> ServerName default >> >> >> AllowOverride none >> Order Allow,Deny >> Require all denied >> >> [...] I'm not 100% sure, but that may not deny access to absolutely everything, in case you have global directives such as cgi aliases or proxy constructs, p

Re: [users@httpd] 2.4 named virtual hosts question

2016-09-12 Thread Marat Khalili
There has to be some configuration Apache will use if it cannot match any virtualhost; or, if no hostname is specified by client. You can make a configuration that denies access in this case, and put it before others. That's what I use: ServerName default AllowOverride none