You are right, i understand it now. And it really returns 2.

Also config.h has that: 

/* Apache 2.x */
#define APACHE2 1
#define HAVE_MOD_AUTHZ_HOST 1
#define HAVE_AP_REGEX_H 1


-- 
Best Regards 
Boian Mihailov



On Tuesday, February 26, 2013 at 5:10 PM, Andrew Mortensen wrote:

> 
> On Feb 26, 2013, at 2:27 AM, Boian Mihailov <boian.mihai...@cvalka.com 
> (mailto:boian.mihai...@cvalka.com)> wrote:
> 
> > reviewing the changes in 3.1.2 and the following version. Noticed the 
> > following: 
> > 
> > APACHE2_MINOR_VERSION="`${APXS2_SBINDIR}/${APXS2_TARGET} -v | \
> > sed -e '/^Server version:/!d' \
> > -e 's/.*Apache\/2\.\(@<:@0-9@:>@\)\..*/\1/g'`"
> > if test -n "${APACHE2_MINOR_VERSION}"; then
> > if test "${APACHE2_MINOR_VERSION}" -gt 0; then
> > AC_DEFINE(HAVE_MOD_AUTHZ_HOST)
> > fi
> > fi
> > And executing the command if I got it right: 
> > apache2 -v | sed -e '/^Server version:/!d' -e 
> > 's/.*Apache\/2\.\(@<:@0-9@:>@\)\..*/\1/g'
> > Returns: Server version: Apache/2.2.14 (Ubuntu)
> > 
> > Not really tested but, first test -n will pass, the second one will not, 
> > since it won't accept the string. 
> 
> Instead of doing this, why not look at common/config.h to see if 
> HAVE_MOD_AUTHZ_HOST is defined?
> 
> Regardless, the command you tried isn't how you'd run that command from the 
> shell. It's an escaped form that won't cause autoconf parsing problems:
> 
> <http://www.gnu.org/software/autoconf/manual/autoconf.html#Quadrigraphs>
> 
> Here's how the command is actually run:
> 
> bash$ apache2 -v | sed -e '/^Server version:/!d' -e 
> 's/.*Apache\/2\.\([0-9]\)\..*/\1/g'
> 2
> 
> You can check the actual configure script to confirm this:
> 
> bash$ grep -A 2 APACHE2_MINOR_VERSION configure | head -n 3
> APACHE2_MINOR_VERSION="`${APXS2_SBINDIR}/${APXS2_TARGET} -v | \
> sed -e '/^Server version:/!d' \
> -e 's/.*Apache\/2\.\([0-9]\)\..*/\1/g'`"
> 
> andrew
> 
> 
> 
> 
> > 
> > 
> > On Tue, Feb 26, 2013 at 8:02 AM, Boian Mihailov <boian.mihai...@cvalka.com 
> > (mailto:boian.mihai...@cvalka.com)> wrote:
> > Its cosign-3.2.0, 3.2.0rc2 says the changelog. Still no luck so far with 
> > that. 
> > 
> > 
> > On Mon, Feb 25, 2013 at 9:09 PM, Andrew Mortensen <and...@weblogin.org 
> > (mailto:and...@weblogin.org)> wrote:
> > 
> > On Jan 29, 2013, at 9:33 AM, Boian Mihailov <boian.mihai...@cvalka.com 
> > (mailto:boian.mihai...@cvalka.com)> wrote:
> > 
> > > Interesting note I can add, is that the same configuration with basic 
> > > auth is working fine. Any clues, greatly appreciated
> > 
> > Revisiting this. What version of mod_cosign are you running? 3.1.2 and up 
> > contain a fix for Apache 2.2 which ensures mod_authz_host is run after 
> > mod_cosign in the filter chain.
> > 
> > andrew
> > 
> > 
> > 
> > > 
> > > 
> > > On Tue, Jan 22, 2013 at 4:27 PM, Boian Mihailov 
> > > <boian.mihai...@cvalka.com (mailto:boian.mihai...@cvalka.com)> wrote:
> > > Apache/2.2.14 (Ubuntu 10.04)
> > > 
> > > Module Name: mod_authz_host.c
> > > Content handlers: none
> > > Configuration Phase Participation: Create Directory Config
> > > Request Phase Participation: Check Access
> > > Module Directives:
> > > order - 'allow,deny', 'deny,allow', or 'mutual-failure'
> > > allow - 'from' followed by hostnames or IP-address wildcards
> > > deny - 'from' followed by hostnames or IP-address wildcards
> > > Current Configuration:
> > > In file: /etc/apache2/apache2.conf
> > > 160: <Files ~ "^\.ht">
> > > 161: Order allow,deny
> > > 162: Deny from all
> > > : </Files>
> > > In file: /etc/apache2/mods-enabled/alias.conf
> > > 17: <Directory "/usr/share/apache2/icons">
> > > 20: Order allow,deny
> > > 21: Allow from all
> > > : </Directory>
> > > In file: /etc/apache2/mods-enabled/info.conf
> > > 8: <Location /server-info>
> > > 10: Order deny,allow
> > > 11: Deny from all
> > > 12: Allow from localhost ip6-localhost
> > > 14: Allow from 10.10.10.1
> > > : </Location>
> > > In file: /etc/apache2/mods-enabled/status.conf
> > > 8: <Location /server-status>
> > > 10: Order deny,allow
> > > 11: Deny from all
> > > 12: Allow from localhost ip6-localhost
> > > : </Location>
> > > In file: /etc/apache2/conf.d/linkchecker
> > > 4: <Directory "/usr/share/linkchecker/lconline/">
> > > 7: Order allow,deny
> > > 8: Allow from all
> > > : </Directory>
> > > 11: <Location "/lconline/lc.cgi">
> > > 12: Order deny,allow
> > > 13: Deny from all
> > > 14: Allow from 127.0.0.0/255.0.0.0
> > > 19: Allow from ::1/128
> > > : </Location>
> > > In file: /etc/apache2/conf.d/phpmyadmin.conf
> > > 31: <Directory /usr/share/phpmyadmin/libraries>
> > > 32: Order Deny,Allow
> > > 33: Deny from All
> > > : </Directory>
> > > 35: <Directory /usr/share/phpmyadmin/setup/lib>
> > > 36: Order Deny,Allow
> > > 37: Deny from All
> > > : </Directory>
> > > In file: /etc/apache2/sites-enabled/example.com (http://example.com)
> > > 40: <VirtualHost *:443>
> > > 94: <Location />
> > > 98: Allow from localhost 10.10.10.1
> > > : </Location>
> > > 116: <Location /cosign/valid>
> > > 119: Allow from all
> > > : </Location>
> > > : </VirtualHost>
> > > 
> > > 
> > > Cosign module:
> > > 
> > > 94: <Location />
> > > 95: CosignProtected On
> > > : </Location>
> > > 116: <Location /cosign/valid>
> > > 118: CosignProtected Off
> > > : </Location>
> > > : </VirtualHost>
> > > 
> > > 
> > > --
> > > Best Regards
> > > Boian Mihailov
> > > 
> > > On Tuesday, January 22, 2013 at 3:32 PM, Mark Montague wrote:
> > > 
> > > > On January 19, 2013 9:44 , Boian Mihailov <boian.mihai...@cvalka.com 
> > > > (mailto:boian.mihai...@cvalka.com)> wrote:
> > > > > No matter what I try, cosign auth always is required. Here is my 
> > > > > config.
> > > > > 
> > > > > [...]
> > > > > <Location />
> > > > > CosignProtected On
> > > > > Allow from 10.10.10.1
> > > > > Satisfy any
> > > > > </Location>
> > > > > 
> > > > 
> > > > 
> > > > So, as Russ asked, what version of Apache HTTP Server are you running? 
> > > > And what is mod_info showing in terms of the configuration and access 
> > > > directive merging?
> > > > 
> > > > --
> > > > Mark Montague
> > > > 
> > > > m...@catseye.org (mailto:m...@catseye.org)
> > > 
> > > 
> > > 
> > > 
> > > --
> > > Best regards
> > > Boian Mihailov
> > > ------------------------------------------------------------------------------
> > > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> > > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> > > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> > > MVPs and experts. ON SALE this month only -- learn more at:
> > > http://p.sf.net/sfu/learnnow-d2d_______________________________________________
> > > Cosign-discuss mailing list
> > > Cosign-discuss@lists.sourceforge.net 
> > > (mailto:Cosign-discuss@lists.sourceforge.net)
> > > https://lists.sourceforge.net/lists/listinfo/cosign-discuss
> > > 
> > 
> > 
> > 
> > 
> > 
> > -- 
> > Best regards
> > Boian Mihailov
> > 
> > 
> > 
> > -- 
> > Best regards
> > Boian Mihailov
> > 
> 
> 
> 


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Cosign-discuss mailing list
Cosign-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cosign-discuss

Reply via email to