Re: [EMAIL PROTECTED] Re: Does Apache Support Piped Logs On Windows Platform

2008-08-08 Thread William A. Rowe, Jr.

Yoann Roman wrote:

William A. Rowe, Jr. wrote:


Then it became 'run this shell command through cmd.exe' - which needed
stdin/out/err all set up right to not-fail running as-a-service.

Change it back from shellcmd to program and voila, the code works.  We
hacked at various handle codes for stdout/stderr, but nothing except
a legitimate file stream will make cmd.exe happy.

So Apache just dies with a message that it fails to create the log.


Was this problem ever resolved in 2.2.9?


Yes, the behavior I describe above, with apr 1.2, should have been resolved
with 2.2.9 and apr 1.3.0.


I'm trying to set up 2.2.9 as a service on an XP SP2 box with either
rotatelog or cronolog for main and vhost error/access logs, but I see
several cmd.exe processes when starting it up. I have a W2K box with 2.0.63
that doesn't have this shell behavior (also a service using cronolog).


Oh - it still runs cmd.exe.  The difference is - there are the correct
pipes between apache and that cmd/invoked program/script.


What I found...

This says a similar problem was resolved in 2.2.6:


Please be specific about *your* problem...


I also skimmed through the SVN logs for log.c and didn't see anything about
fixing this.


No, these are all subdependencies, you wouldn't note them from log.c


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Test Web page problems

2008-08-08 Thread Blake Simmons
Hi,
I have a problem with my Apache web server (or at least I think I do) that 
prevents me from accessing my web site's home page from my own computer.. 
Instead, it shows a "It Works!" page when I try to access the site through my 
domain name or localhost. However, when I access my domain name from another 
computer, or type in 127.0.0.1 in my browsers address bar, my web site's home 
page appears.

Can you please explain to me why this happens, and what I can do to fix it?

Thanks (please reply if this is not the purpose of this mailing list)



  

[EMAIL PROTECTED] Denis Peuziat is out of the office.

2008-08-08 Thread Denis Peuziat

I will be out of the office starting  09/08/2008 and will not return until
01/09/2008.

I'm on vacations from Monday August 11th till Friday August 29th included.
For any issues, contact Office Automation hotline on 6400

[EMAIL PROTECTED] Re: Does Apache Support Piped Logs On Windows Platform

2008-08-08 Thread Yoann Roman
William A. Rowe, Jr. wrote:
> Frank Misa wrote:
> > Hi All,
> > 
> > I've seen many references to Apache issues with logging to piped
> > processes on the forums;  but no clear answer on whether this is
> > supported or not.
> > Can someone here please confirm -- Yes/No...
> > Do the latest versions of Apache 2.0.x  OR Apache 2.2.x support piped
> > logs on Windows ?
> 
> They did until the 2.0.4x'ish timeframe.  It was 'run this binary' and
> set up the log stream as the program's stdin.
> 
> As Sander pointed out...
> 
> Then it became 'run this shell command through cmd.exe' - which needed
> stdin/out/err all set up right to not-fail running as-a-service.
> 
> Change it back from shellcmd to program and voila, the code works.  We
> hacked at various handle codes for stdout/stderr, but nothing except
> a legitimate file stream will make cmd.exe happy.
> 
> So Apache just dies with a message that it fails to create the log.

Was this problem ever resolved in 2.2.9?

I'm trying to set up 2.2.9 as a service on an XP SP2 box with either
rotatelog or cronolog for main and vhost error/access logs, but I see
several cmd.exe processes when starting it up. I have a W2K box with 2.0.63
that doesn't have this shell behavior (also a service using cronolog).

What I found...

This says a similar problem was resolved in 2.2.6:
https://issues.apache.org/bugzilla/show_bug.cgi?id=41346

Yet, there was a discussion on the dev list to add shell-skipping syntax:
http://markmail.org/message/makgeeo3m3uwj2iw

But the trunk server/log.c code doesn't appear to have that syntax:
http://svn.apache.org/viewvc/httpd/httpd/trunk/server/log.c?view=markup

And the docs for 2.2 (can't pull up trunk docs now) don't mention it:
http://httpd.apache.org/docs/2.2/logs.html

I also skimmed through the SVN logs for log.c and didn't see anything about
fixing this.

Thanks for the help,

-- 
Yoann Roman


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Can we use include directive inside location directive ???

2008-08-08 Thread Eric Covener
On Fri, Aug 8, 2008 at 1:54 PM, Mick Ken <[EMAIL PROTECTED]> wrote:
> Is this possible using the include directive or some other directive

The manual says "Include" works in "directory" context, which includes
 -- try it and see.

You might also be interested in LocationMatch or mod_authn_alias.

-- 
Eric Covener
[EMAIL PROTECTED]

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Chown -R saying it changed but didn't, effecting HTTP Apache

2008-08-08 Thread Car54

This is a summary of everything I've done to date...

1) I had to upgrade perl from 5.8.0 to 5.8.8.

2) Then I had problems with some of the Perl Modules calling on a problem
with mod_perl.

3) I did a DSO mod_perl install which was successful.

4) I was able to finish installing the Perl Modules.

5) I'm getting this error in my log files...
[error] panic: DBI active kids (5) > kids (2) at /us$
Use of uninitialized value in concatenation (.) or string at
/home/fum/lib/i/er$
i::error::report('panic: DBI active kids (6) > kids (2) at
/usr/lib/per$
i::error::die('panic: DBI active kids (6) > kids (2) at
/usr/lib/perl5/$
   
DBD::mysql::dr::connect('DBI::dr=HASH(0x9c1c538)','mysql_read_default_f$
   
Apache::DBI::connect('undef','mysql_read_default_file=/home/fum/conf/my$
DBI::__ANON__('undef','undef') called at
/usr/lib/perl5/site_perl/5.8.0$
   
DBI::connect('DBI','dbi:mysql:mysql_read_default_file=/home/fum/conf/my$
i::db::make_db_conn() called at /home/fum/lib/i/db.pm line 58
i::db::connect() called at /home/fum/lib/i/web.pm line 50
i::web::init() called at /home/fum/www/5xx.pl line 4
Apache::ROOT::_35xx_2epl::handler('Apache=SCALAR(0x9c72ee8)') called
at$
eval {...} called at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-m$
Apache::Registry::handler('Apache=SCALAR(0x9c72ee8)') called at
/dev/nu$
eval {...} called at /dev/null line 0

6) Along with the intermittent problem in my browser with with the interface
coming up just fine then hitting my refresh button and getting this... 

Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /members/login.pl.

Reason: Document contains no data

7) This is the results of crontab -l

30 4 * * 0 /usr/sbin/logrotate -f /home/fum/logs/logrotate.conf
0 4 * * 0 /usr/sbin/ntpdate ntp1.sf-bay.org; hwclock --systohc
30 * * * * cd /home/fum/lib && ./gen_webstats.sh > /dev/null

In my log files...
-bash: line 1: cd: /home/fum/conf/webstats/: No such file or directory

**gen_webstats.sh**
#!/bin/bash

source ../conf/conf.sh

su - $FUM_USER -c "cd ~/conf/webstats/ && webalizer"

cd $FUM_HOME/awstats/wwwroot/cgi-bin && \
../../tools/awstats_buildstaticpages.pl -config=fum -update
-dir=$FUM_HOME/www/$

-- 
View this message in context: 
http://www.nabble.com/Chown--R-saying-it-changed-but-didn%27t%2C-effecting-HTTP-Apache-tp18880314p18898025.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Chown -R saying it changed but didn't, effecting HTTP Apache

2008-08-08 Thread Car54



Jacqui Caren wrote:
> 
> In that case i will ask the other obvious question
> what are the permission on the parent dir?
> 
> could it be that without g+x/g+r apache
> cannot see the tree?
> 
> Jacqui
> 

The permissions on the parent directory are drwxr-xr-x.

This is a summary of everything I've done to date...

1) I had to upgrade perl from 5.8.0 to 5.8.8.

2) Then I had problems with some of the Perl Modules calling on a problem
with mod_perl.

3) I did a DSO mod_perl install which was successful.

4) I was able to finish installing the Perl Modules.

5) I'm getting this error in my log files...
[error] panic: DBI active kids (5) > kids (2) at /us$
Use of uninitialized value in concatenation (.) or string at
/home/fum/lib/i/er$
i::error::report('panic: DBI active kids (6) > kids (2) at
/usr/lib/per$
i::error::die('panic: DBI active kids (6) > kids (2) at
/usr/lib/perl5/$
   
DBD::mysql::dr::connect('DBI::dr=HASH(0x9c1c538)','mysql_read_default_f$
   
Apache::DBI::connect('undef','mysql_read_default_file=/home/fum/conf/my$
DBI::__ANON__('undef','undef') called at
/usr/lib/perl5/site_perl/5.8.0$
   
DBI::connect('DBI','dbi:mysql:mysql_read_default_file=/home/fum/conf/my$
i::db::make_db_conn() called at /home/fum/lib/i/db.pm line 58
i::db::connect() called at /home/fum/lib/i/web.pm line 50
i::web::init() called at /home/fum/www/5xx.pl line 4
Apache::ROOT::_35xx_2epl::handler('Apache=SCALAR(0x9c72ee8)') called
at$
eval {...} called at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-m$
Apache::Registry::handler('Apache=SCALAR(0x9c72ee8)') called at
/dev/nu$
eval {...} called at /dev/null line 0

6) Along with the intermittent problem in my browser with with the interface
coming up just fine then hitting my refresh button and getting this... 

Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /members/login.pl.

Reason: Document contains no data

7) This is the results of crontab -l

30 4 * * 0 /usr/sbin/logrotate -f /home/fum/logs/logrotate.conf
0 4 * * 0 /usr/sbin/ntpdate ntp1.sf-bay.org; hwclock --systohc
30 * * * * cd /home/fum/lib && ./gen_webstats.sh > /dev/null

In my log files...
-bash: line 1: cd: /home/fum/conf/webstats/: No such file or directory

**gen_webstats.sh**
#!/bin/bash

source ../conf/conf.sh

su - $FUM_USER -c "cd ~/conf/webstats/ && webalizer"

cd $FUM_HOME/awstats/wwwroot/cgi-bin && \
../../tools/awstats_buildstaticpages.pl -config=fum -update
-dir=$FUM_HOME/www/$

-- 
View this message in context: 
http://www.nabble.com/Chown--R-saying-it-changed-but-didn%27t%2C-effecting-HTTP-Apache-tp18880314p18897982.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Can we use include directive inside location directive ???

2008-08-08 Thread André Warnier

Mick Ken wrote:

Hi Friends,
I have lot's of location tags like these:


   DAV svn
   SVNPath C:/Projects1/
   AuthName "Projects1"
   AuthType SSPI
   SSPIAuth On
   SSPIAuthoritative On
   SSPIDomain mydomain
   SSPIOfferBasic On
   SSPIUsernameCase lower
   Require valid-user
   AuthzSVNAccessFile "C:/svn/svn-acl"




and I was just wondering if I can take out the common part and put it
into one common tag and include it thereafter for easier maintenance
e.g I would like to take this part out from each tag:


...
I have no idea if this would work, if it's a bug, what version of Apache 
you're using etc..

But..
there was a question on this forum a little while ago, where someone 
wanted to "protect" his whole site, but unprotect one sub-part of the 
site, like


Authxxx something
etc..


(should be free)


So basically, he wanted the opposite of what you want.
It turned out that the Auth specs for the / location appeared to be 
"inherited" by the /public location (so he could not do what he wanted 
to do).

But in your case, it may be worth a try :

>DAV svn
>AuthType SSPI
>SSPIAuth On
>SSPIAuthoritative On
>SSPIDomain mydomain
>SSPIOfferBasic On
>SSPIUsernameCase lower
>Require valid-user
>AuthzSVNAccessFile "C:/svn/svn-acl"



(what's specific to 1)


(what's specific to 2)


and, maybe, /Project1 will "inherit" the common part from /Project ?
(assuming they really start with the same prefix of course)

Please tell the result.

I don't want to hijack your question, but I find that it is, in general, 
an item relatively vague in the Apache 2.x documentation.  It does say 
in which order the , ,  etc.. are evaluated, 
but I don't think it explicitly says what happens when several 
 or  sections *could* apply to a URL.  Do their 
specs for instance get "cumulated" ? Or does Apache finaly pick one and 
one only, and applies only the specs of that one ?


Maybe another guru here can tell ?















   DAV svn
   AuthType SSPI
   SSPIAuth On
   SSPIAuthoritative On
   SSPIDomain mydomain
   SSPIOfferBasic On
   SSPIUsernameCase lower
   Require valid-user
   AuthzSVNAccessFile "C:/svn/svn-acl"

Is this possible using the include directive or some other directive

Thanks
Mick

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] mod_dbd & mod_dbd_authn - mysql user authentication problems - apache 2.2.9

2008-08-08 Thread Steve Whitson
Thanks for sharing that things are working for you! I'll try enabling
more (or all built) modules since I built most of them.

Danie Qian wrote:
>
> - Original Message - From: "Steve Whitson"
> <[EMAIL PROTECTED]>
> To: 
> Sent: Thursday, August 07, 2008 3:53 PM
> Subject: [EMAIL PROTECTED] mod_dbd & mod_dbd_authn - mysql user
> authentication problems - apache 2.2.9
>
>
>> I�m trying to use mod_dbd and mod_authn_dbd and replacements for
>> mod_auth_mysql within an apache 2.2.9 server I built on solaris.
>>
>> I configure up the database info as such:
>>
>> DBDriver mysql
>> DBDParams "host=somehostname dbname=somedatabasename user=someuser
>> pass=somepass"
>> DBDMin 4
>> DBDKeep 8
>> DBDMax 20
>> DBDExptime 300
>>
>> I have the typical root directory configuration for the htdocs folder:
>>
>> Options Indexes FollowSymLinks MultiViews
>> AllowOverride All
>> Order allow,deny
>> Allow from all
>>
>> AuthType Basic
>> AuthName "Website Mysql Userdb Verification"
>> AuthBasicProvider dbd
>>
>> AuthDBDUserPWQuery "select password from users where name = %s"
>>
>> ...
>> When I start the server I get the following error:
>>
>> [notice] Apache/2.2.9 (Unix) DAV/2 PHP/5.2.6 SVN/1.5.1 configured --
>> resuming normal operations
>> [info] Server built: Aug 7 2008 11:06:05
>> [debug] prefork.c(1001): AcceptMutex: fcntl (default: fcntl)
>> [error] (20014)Internal error: DBD: failed to prepare SQL statements:
>> Unknown command
>> [error] (20014)Internal error: DBD: failed to initialise
>>
>> If I comment out the AuthDBDUserPWQuery entry, the DBD errors don�t
>> occur.
>>
>> I also tried the entry
>> DBDPrepareSQL "select password from users where name = %s" prepQuery
>>
>> I was thinking I could use the prepared query with AuthDBUserPWQuery.
>> But, when only the DBDPrepareSQL is present (and not
>> AuthDBuserPWQuery) apache still gives the same errors.
>>
>> Ideas? Is there something I�m dong wrong here?
>>
>> Thanks much,
>>
>> -Steve
>>
>
> I have been using mod_dbd for authentication fine for over a year. You
> syntax looks the same as mine so I guess you might be missing some
> modules. the whole setup is a bunch of modules/libraries stacked together
>
> -
> The official User-To-User support forum of the Apache HTTP Server
> Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> " from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>



-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] mod_dbd & mod_dbd_authn - mysql user authentication problems - apache 2.2.9

2008-08-08 Thread Steve Whitson
The query works just fine from the command line interface (from the same 
server system), and matches the case of the tables (all lower case).


Thanks much!

Tom Donovan wrote:

Steve Whitson wrote:
I’m trying to use mod_dbd and mod_authn_dbd and replacements for 
mod_auth_mysql within an apache 2.2.9 server I built on solaris.



AuthDBDUserPWQuery "select password from users where name = %s"
...
When I start the server I get the following error:


[error] (20014)Internal error: DBD: failed to prepare SQL statements: 
Unknown command

[error] (20014)Internal error: DBD: failed to initialise


A guess: mysql table names are case-sensitive on Unix, although field 
names are not.


Is your actual table name "Users" rather than "users" ?

-tom-


-
The official User-To-User support forum of the Apache HTTP Server 
Project.

See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] mod_dbd & mod_dbd_authn - mysql user authentication problems - apache 2.2.9

2008-08-08 Thread Steve Whitson

Thanks the help!  I won't be back to work until Monday to try this

Res wrote:

On Thu, 7 Aug 2008, Tom Donovan wrote:


Steve Whitson wrote:
I’m trying to use mod_dbd and mod_authn_dbd and replacements for 
mod_auth_mysql within an apache 2.2.9 server I built on solaris.



AuthDBDUserPWQuery "select password from users where name = %s"
...
When I start the server I get the following error:


[error] (20014)Internal error: DBD: failed to prepare SQL 
statements: Unknown command

[error] (20014)Internal error: DBD: failed to initialise


A guess: mysql table names are case-sensitive on Unix, although field 
names are not.


Is your actual table name "Users" rather than "users" ?


That wont produce errors like that, not in apache log on "start up"


Steve:
Try this:   httpd -t -D DUMP_MODULES

and look for 'authn_dbd_module' and  'dbd_module'
and ensure it reprots no problems with syntax




-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




[EMAIL PROTECTED] Can we use include directive inside location directive ???

2008-08-08 Thread Mick Ken
Hi Friends,
I have lot's of location tags like these:


   DAV svn
   SVNPath C:/Projects1/
   AuthName "Projects1"
   AuthType SSPI
   SSPIAuth On
   SSPIAuthoritative On
   SSPIDomain mydomain
   SSPIOfferBasic On
   SSPIUsernameCase lower
   Require valid-user
   AuthzSVNAccessFile "C:/svn/svn-acl"



   DAV svn
   SVNPath C:/Projects2/
   AuthName "Projects2"
   AuthType SSPI
   SSPIAuth On
   SSPIAuthoritative On
   SSPIDomain mydomain
   SSPIOfferBasic On
   SSPIUsernameCase lower
   Require valid-user
   AuthzSVNAccessFile "C:/svn/svn-acl"



and I was just wondering if I can take out the common part and put it
into one common tag and include it thereafter for easier maintenance
e.g I would like to take this part out from each tag:

   DAV svn
   AuthType SSPI
   SSPIAuth On
   SSPIAuthoritative On
   SSPIDomain mydomain
   SSPIOfferBasic On
   SSPIUsernameCase lower
   Require valid-user
   AuthzSVNAccessFile "C:/svn/svn-acl"

Is this possible using the include directive or some other directive

Thanks
Mick

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Chown -R saying it changed but didn't, effecting HTTP Apache

2008-08-08 Thread Car54


Matus UHLAR - fantomas wrote:
> 
> On 07.08.08 14:40, Car54 wrote:
>> # chown -R apache:apache ttc
>> 
>> drwxr-xr-x3 apache   apache   4096 Jul 16 23:34 ttc
>> 
>> chown: changing ownership of
>> `/home/fum/ttc/home/fum/lib/templates/members/login.html.tt2c': Operation
>> not permitted
> 
> where and how is this mounted?
> -- 
> Matus UHLAR - fantomas, [EMAIL PROTECTED] ; http://www.fantomas.sk/
> Warning: I wish NOT to receive e-mail advertising to this address.
> Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
> "To Boot or not to Boot, that's the question." [WD1270 Caviar]
> 
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: [EMAIL PROTECTED]
>"   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

Matus,

I'm really new at this and I don't understand the mounted question, but I'm
getting this error now in my logs...

[error] panic: DBI active kids (5) > kids (2) at /us$
Use of uninitialized value in concatenation (.) or string at
/home/fum/lib/i/er$
i::error::report('panic: DBI active kids (6) > kids (2) at
/usr/lib/per$
i::error::die('panic: DBI active kids (6) > kids (2) at
/usr/lib/perl5/$
   
DBD::mysql::dr::connect('DBI::dr=HASH(0x9c1c538)','mysql_read_default_f$
   
Apache::DBI::connect('undef','mysql_read_default_file=/home/fum/conf/my$
DBI::__ANON__('undef','undef') called at
/usr/lib/perl5/site_perl/5.8.0$
   
DBI::connect('DBI','dbi:mysql:mysql_read_default_file=/home/fum/conf/my$
i::db::make_db_conn() called at /home/fum/lib/i/db.pm line 58
i::db::connect() called at /home/fum/lib/i/web.pm line 50
i::web::init() called at /home/fum/www/5xx.pl line 4
Apache::ROOT::_35xx_2epl::handler('Apache=SCALAR(0x9c72ee8)') called
at$
eval {...} called at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-m$
Apache::Registry::handler('Apache=SCALAR(0x9c72ee8)') called at
/dev/nu$
eval {...} called at /dev/null line 0
-- 
View this message in context: 
http://www.nabble.com/Chown--R-saying-it-changed-but-didn%27t%2C-effecting-HTTP-Apache-tp18880314p18896229.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Changing headers with mod_headers

2008-08-08 Thread Rich Schumacher
>
> Hi,
>
> Do you know if it is possible to modify http and https headers with the
> mod_headers module ??
>
> Thanks a lot,
>
> Sergio
>

Yes, that is exactly what this module was created for.  I've recently used
this mod in conjunction with mod_rewrite to do some A/B testing with
different DocumentRoots.

For Apache 2.0, see
http://httpd.apache.org/docs/2.0/mod/mod_headers.htmlfor more
information.  The Apache 2.2 docs (
http://httpd.apache.org/docs/2.2/mod/mod_headers.html) have slightly more
information, but most of it is identical.

Cheers,
Rich


Re: [EMAIL PROTECTED] Apache Http sticky session problem.

2008-08-08 Thread amie.lahey

Hi corrected that typo but still it does not seem to work!

Richard.Hall wrote:
> 
> I have absolutely no idea whether it is relevant or not, but ...
> 
> On Fri, 8 Aug 2008, amie.lahey wrote:
> [...]
>> > This how mow wrokers.properties look like:
>> >
>> > Workers.Properties file
>> >
>> >
>> > worker.list=bal1,stat1
>> > worker.Tomcat6_1.type=ajp13
>> > worker.Tomcat6_1.host=172.28.11.4
>> > worker.Tomcat6_1.port=8009
>> > worker.Tomcat6_1.sticky_session=True
>> > worker.Tomcat6_1.method=Session
>> > worker.Tomcat6_1.lbfactor=10
>> > worker.Tomcat6_2.type=ajp13
>> > worker.Tomcat6_2.host=172.28.11.4
>> > worker.Tomcat6_2.port=8010
>> > worker.Tomcat6_2.sticky_session=True
>> > worker.Tomcat6_1.method=Session
> 
>  should be _2, not _1, surely ??
> 
>> > worker.Tomcat6_2.lbfactor=10
>> > worker.bal1.type=lb
>> > worker.bal1.sticky_session=True
>> > worker.bal1.balance_workers=Tomcat6_1,Tomcat6_2
>> > worker.bal1.method=Session
>> > worker.stat1.type=status
> [...]
> 
> HTH,
>  Richard
> 
> 
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: [EMAIL PROTECTED]
>"   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Apache-Http-sticky-session-problem.-tp18877839p18892409.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Apache Http sticky session problem.

2008-08-08 Thread Richard.Hall
I have absolutely no idea whether it is relevant or not, but ...

On Fri, 8 Aug 2008, amie.lahey wrote:
[...]
> > This how mow wrokers.properties look like:
> >
> > Workers.Properties file
> >
> >
> > worker.list=bal1,stat1
> > worker.Tomcat6_1.type=ajp13
> > worker.Tomcat6_1.host=172.28.11.4
> > worker.Tomcat6_1.port=8009
> > worker.Tomcat6_1.sticky_session=True
> > worker.Tomcat6_1.method=Session
> > worker.Tomcat6_1.lbfactor=10
> > worker.Tomcat6_2.type=ajp13
> > worker.Tomcat6_2.host=172.28.11.4
> > worker.Tomcat6_2.port=8010
> > worker.Tomcat6_2.sticky_session=True
> > worker.Tomcat6_1.method=Session

 should be _2, not _1, surely ??

> > worker.Tomcat6_2.lbfactor=10
> > worker.bal1.type=lb
> > worker.bal1.sticky_session=True
> > worker.bal1.balance_workers=Tomcat6_1,Tomcat6_2
> > worker.bal1.method=Session
> > worker.stat1.type=status
[...]

HTH,
 Richard


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] mod_filter and error responses

2008-08-08 Thread Laurence Rowe

I have set up mod_transform as a filter in front of my proxied Plone site
with the following config:

FilterDeclare THEME
FilterProvider THEME XSLT resp=Content-Type $text/html
FilterChain THEME
TransformSet /theme/compiledtheme.xsl
TransformOptions +ApacheFS +HTML
RewriteEngine On
RewriteCond %{REQUEST_URI} 
!^/(theme|xdv|images|css|js|Scripts).* 
RewriteRule ^/(.*) \

http://localhost:8080/VirtualHostBase/http/%{SERVER_NAME}:80/Plone/VirtualHostRoot/$1
[L,P,NS]

This works great for normal pages, but proxied 404 responses are not
transformed. How do I instruct pass error responses through my filter chain?

Laurence
-- 
View this message in context: 
http://www.nabble.com/mod_filter-and-error-responses-tp18891962p18891962.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Apache Http sticky session problem.

2008-08-08 Thread amie.lahey

Hi Folks,

Thanks for all the responsesbut i am still not getting it to work
properly!

This is what is happening:
My application requires authentication, and displays a login on a new
session. When I kill one of the tomcats, the application works fine (i.e.,
the authenticated session is retained and used for each subsequent request).
But if both workers are running, mod_jk ping-pongs between them (which
results in new sessions being created on each request).

The thing I think is most revealing is that when I run with only one worker
alive (so the application works), mod_jk is still trying to round-robin the
two workers.

Any clues.?
All the jvmRoutes are exactly the same as mentioned by you all



amie.lahey wrote:
> 
> Hi All,
> 
> I need a urgent help with apache tomcat load balancing:
> I have configured Apache 2.2 with multiple tomcat 6 service instances to
> achieve load balancing. But I am unable to maintain sticky session . The
> application that I am using has to maintain sessions.
> But this not happening .When I login the request is JSP so it does to the
> first Tomcat after login when I click on any link it goes to the second
> Tomcat and I get a session timeout.
> 
> This how mow wrokers.properties look like:
> 
> Workers.Properties file
> 
> 
> worker.list=bal1,stat1
> worker.Tomcat6_1.type=ajp13
> worker.Tomcat6_1.host=172.28.11.4
> worker.Tomcat6_1.port=8009
> worker.Tomcat6_1.sticky_session=True
> worker.Tomcat6_1.method=Session
> worker.Tomcat6_1.lbfactor=10
> worker.Tomcat6_2.type=ajp13
> worker.Tomcat6_2.host=172.28.11.4
> worker.Tomcat6_2.port=8010
> worker.Tomcat6_2.sticky_session=True
> worker.Tomcat6_1.method=Session
> worker.Tomcat6_2.lbfactor=10
> worker.bal1.type=lb
> worker.bal1.sticky_session=True
> worker.bal1.balance_workers=Tomcat6_1,Tomcat6_2
> worker.bal1.method=Session
> worker.stat1.type=status
> 
> I have specified the jvm route too in tomcat insatnces server.xml.
> 
> Can anyone help?
> As after speciefying the sticky session, I am able to login to my
> application but if i do it more that 2-3 times...it doesn't redirect me to
> the application.
> 
> I get this eoor msg in tomcat logs:
> javax.faces.application.ViewExpiredException: viewId:/login.lahey - View
> /login.lahey could not be restored.
>   at
> com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:206)
>   at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:266)
>   at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:132)
>   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
>   at
> org.lahey.webapps.controller.ECMSFacesServlet.service(ECMSFacesServlet.java:47)
>   at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>   at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>   at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>   at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
>   at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
>   at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>   at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>   at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563)
>   at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>   at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
>   at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
>   at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
>   at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
>   at
> org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
>   at
> org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
>   at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
>   at java.lang.Thread.run(Thread.java:595)
> 

-- 
View this message in context: 
http://www.nabble.com/Apache-Http-sticky-session-problem.-tp18877839p18891955.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Basic Auth Login Retries

2008-08-08 Thread Krist van Besien
On Fri, Aug 8, 2008 at 15:27, mdn teo <[EMAIL PROTECTED]> wrote:
> Hi there!
>
> Is there a way to limit login retries in Apache Basic Auth?
> I guess the default is 4, and I'd like to let the user try just one time his
> password.

The number of retries is up to the browser, not apache.

Krist

-- 
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Basic Auth Login Retries

2008-08-08 Thread mdn teo
Hi there!

Is there a way to limit login retries in Apache Basic Auth?
I guess the default is 4, and I'd like to let the user try just one time his
password.

M.


[EMAIL PROTECTED] How to add HTTP_X_FORWARDED_FOR header

2008-08-08 Thread Stephen(Tie) Hu
Hi, 
I am using apache http server as a proxy. It's working quite well except it 
doesn't add HTTP_X_FORWARDED_FOR header. Does any one know how to force apache 
to add HTTP_X_FORWARDED_FOR header? 1000 thanks in ahead!

Here is my apache server's version: 
Server version: Apache/2.2.6 (Unix)
Server built:   Sep 18 2007 11:26:13


Here is my apache configuration section: 
ProxyRequests On

Order deny,allow
Allow from all


KeepAlive On
MaxKeepAliveRequests 100
AddDefaultCharset Off


Very Best Regards!
Stephen


Re: [EMAIL PROTECTED] apache2 permissions problem on SELS10SP1

2008-08-08 Thread James Pifer
On Fri, 2008-08-08 at 14:23 +0200, Krist van Besien wrote:
> 
> Order allow,deny
> Allow from all
> 

I think that did it! Thanks!

James


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Port to port

2008-08-08 Thread Krist van Besien
On Fri, Aug 8, 2008 at 13:39, elsergio <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Do you know if it is possible to, having a reverse proxy, to:
>
> listen on port A and forward the connection to IP1 on port B
> and
> listen on port B and forward the connection to IP1 on port D

What you want to do is not proxying, but port-forwarding. And this is
something any decent OS can do without needing the help of an
application like apache. An apache reverse proxy forwards http
requests.

Krist

-- 
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Port to port

2008-08-08 Thread Krist van Besien
On Fri, Aug 8, 2008 at 13:39, elsergio <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Do you know if it is possible to, having a reverse proxy, to:
>
> listen on port A and forward the connection to IP1 on port B
> and
> listen on port B and forward the connection to IP1 on port D

What you want to do is not proxying, but port-forwarding. And this is
something any decent OS can do without needing the help of an
application like apache. An apache reverse proxy forwards http
requests.

Krist

-- 
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Port to port

2008-08-08 Thread Krist van Besien
On Fri, Aug 8, 2008 at 13:39, elsergio <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Do you know if it is possible to, having a reverse proxy, to:
>
> listen on port A and forward the connection to IP1 on port B
> and
> listen on port B and forward the connection to IP1 on port D

What you want to do is not proxying, but port-forwarding. And this is
something any decent OS can do without needing the help of an
application like apache. An apache reverse proxy forwards http
requests.

Krist

-- 
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] apache2 permissions problem on SELS10SP1

2008-08-08 Thread Krist van Besien
On Fri, Aug 8, 2008 at 13:40, James Pifer <[EMAIL PROTECTED]> wrote:

> The config for this virtual host is:
> 
>  DocumentRoot /srv/www/htdocs/ref/
>  ServerName server.domain.com
>  ServerAdmin [EMAIL PROTECTED]
>  
>  AllowOverride None
>  Order allow,deny
>  Allow from all
>  
>  ScriptAlias /cgi-bin/ "/srv/www/cgi-bin/"
>  ErrorLog /var/log/apache2/error.com-error_log
>  CustomLog /var/log/apache2/access.com-access_log common
> 
>
> The files are in the cgi-bin directory, and I'm told they were working
> fine before this problem started.
>
> wwwrun is the user owner, and root is the grp owner. I even have the
> files temporarily set to 777.

You probably need the following:


Order allow,deny
Allow from all


You need to tell apache that clients can access files in your cgi dir,
and execute CGI's there.

Krist
-- 
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?


[EMAIL PROTECTED] Changing headers with mod_headers

2008-08-08 Thread elsergio

Hi,

Do you know if it is possible to modify http and https headers with the
mod_headers module ??

Thanks a lot,

Sergio
-- 
View this message in context: 
http://www.nabble.com/Changing-headers-with-mod_headers-tp18890471p18890471.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] apache2 permissions problem on SELS10SP1

2008-08-08 Thread James Pifer
I'm hoping someone here can give me a hand. We have an apache2 server
that has several virtual servers. Somehow they got screwed up, still not
sure how. To make a long story short, I ended up removing them all and
setting them back up again using yast2/HTTP Server tool. 

All the sites are up and answering correctly, but all of our cgi scripts
are failing with 403 errors. In the error log I get this:
[Thu Aug 07 20:47:07 2008] [error] [client ipaddress] client denied by
server configuration: /srv/www/cgi-bin/client.pl, referer:
http://server.domain.com

The config for this virtual host is:

 DocumentRoot /srv/www/htdocs/ref/
 ServerName server.domain.com
 ServerAdmin [EMAIL PROTECTED]
 
  AllowOverride None
  Order allow,deny
  Allow from all
 
 ScriptAlias /cgi-bin/ "/srv/www/cgi-bin/"
 ErrorLog /var/log/apache2/error.com-error_log
 CustomLog /var/log/apache2/access.com-access_log common


The files are in the cgi-bin directory, and I'm told they were working
fine before this problem started. 

wwwrun is the user owner, and root is the grp owner. I even have the
files temporarily set to 777.

Anyone have any suggestions?

Thanks,
James



-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Port to port

2008-08-08 Thread elsergio

Hi,

Do you know if it is possible to, having a reverse proxy, to:

listen on port A and forward the connection to IP1 on port B
and
listen on port B and forward the connection to IP1 on port D

??


Thanks a lot,

Sergio
-- 
View this message in context: 
http://www.nabble.com/Port-to-port-tp18890357p18890357.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Chown -R saying it changed but didn't, effecting HTTP Apache

2008-08-08 Thread Krist van Besien
On Fri, Aug 8, 2008 at 08:56, Car54 <[EMAIL PROTECTED]> wrote:

> I'm not sure why you would assume that I'm not a root user, before asking...
> I am a root user.

Because the error message is exactly what one would expect when a non
root user tries to change ownership on a file or dir he doesn't own.
If you are root you should be able to change ownership.

This looks like an OS issue btw, not an apache issue.

Krist

-- 
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Chown -R saying it changed but didn't, effecting HTTP Apache

2008-08-08 Thread Matus UHLAR - fantomas
On 07.08.08 14:40, Car54 wrote:
> # chown -R apache:apache ttc
> 
> drwxr-xr-x3 apache   apache   4096 Jul 16 23:34 ttc
> 
> chown: changing ownership of
> `/home/fum/ttc/home/fum/lib/templates/members/login.html.tt2c': Operation
> not permitted

where and how is this mounted?
-- 
Matus UHLAR - fantomas, [EMAIL PROTECTED] ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
"To Boot or not to Boot, that's the question." [WD1270 Caviar]

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Antwort: [EMAIL PROTECTED] Apache Http sticky session problem.

2008-08-08 Thread Rob Stewart
Oops also forgot this snippet for context.xml of each Tomcat...

Start snippet

End snippet

-- 
Rob ([EMAIL PROTECTED])

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Antwort: [EMAIL PROTECTED] Apache Http sticky session problem.

2008-08-08 Thread Rob Stewart
Regarding the 'quotes' issue - I'll explain...

  In the server.xml file for the Tomcat server you name your jvm route
something like...

jvmRoute="tc1"

  And in my case, the Apache httpd.conf, you name the route like...

BalancerMember ajp://127.0.0.1:18009 route=tc1

  For a couple of days I had...

route="tc1"

  because I had copy/pasted the value from the XML! I understand that
this may not apply to you directly, but take note that in the usual
configuration files that are NOT XML they mostly do not require
quotes.

  Here's a snippet from my Apache httpd.conf file that show how I load
balanced my set-up. I needed only a specific sub-URL, hence the weird
ProxyPass, but it *should* work for other URL settings.

Start Snippet


# Does not seem to matter which one of these are used for the ajp path.
  BalancerMember ajp://127.0.0.1:18009 route=tc1
  BalancerMember ajp://127.0.0.1:28009 route=tc2
#  BalancerMember ajp://localhost:18009 route=tc1
#  BalancerMember ajp://localhost:28009 route=tc2


# Using JSESSIONID or JSESSIONSSO for stickysession seems to make no difference.
ProxyPass /myServer   balancer://mycluster/myServer
stickysession=JSESSIONID lbmethod=bytraffic


  SetHandler balancer-manager

  Order Deny,Allow
  Deny from all
  Allow from 127.0.0.1


End snippet

Then my Tomcat1 server.xml (change ports etc for the 2nd Tomcat)
contains this (I've left some parts out)...

Start snippet

  






  

  


  
  

  

End Snippet

  Again - This is how I did it using Apache 2.2 and Tomcat 6 - you're
set-up is different and this may not solve your problems. Just thought
it might help.

-- 
Rob ([EMAIL PROTECTED])

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Chown -R saying it changed but didn't, effecting HTTP Apache

2008-08-08 Thread Jacqui Caren

Car54 wrote:

I'm not sure why you would assume that I'm not a root user, before asking...
I am a root user.


In that case i will ask the other obvious question
what are the permission on the parent dir?

could it be that without g+x/g+r apache
cannot see the tree?

Jacqui

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Antwort: [EMAIL PROTECTED] Apache Http sticky session problem.

2008-08-08 Thread Dietmar . Mueller
Hello amie,

I don't know if you use mod_jk or mod_proxy_ajp.

I have only experience on mod_jk.

There must the name from the worker "exact" the same as the
value from the jvm route.

in your case the rout should look like

Tomcat6_1 at server 172.28.11.4 with ajp conn at:8009
and 
Tomcat6_2 at server 172.28.11.4 with ajp conn at:8010

regards Dietmar





"amie.lahey" <[EMAIL PROTECTED]> 
07.08.2008 21:22
Bitte antworten an
users@httpd.apache.org


An
users@httpd.apache.org
Kopie

Thema
[EMAIL PROTECTED] Apache Http sticky session problem.






Hi All,

I need a urgent help with apache tomcat load balancing:
I have configured Apache 2.2 with multiple tomcat 6 service instances to
achieve load balancing. But I am unable to maintain sticky session . The
application that I am using has to maintain sessions.
But this not happening .When I login the request is JSP so it does to the
first Tomcat after login when I click on any link it goes to the second
Tomcat and I get a session timeout.

This how mow wrokers.properties look like:

Workers.Properties file


worker.list=bal1,stat1
worker.Tomcat6_1.type=ajp13
worker.Tomcat6_1.host=172.28.11.4
worker.Tomcat6_1.port=8009
worker.Tomcat6_1.sticky_session=True
worker.Tomcat6_1.method=Session
worker.Tomcat6_1.lbfactor=10
worker.Tomcat6_2.type=ajp13
worker.Tomcat6_2.host=172.28.11.4
worker.Tomcat6_2.port=8010
worker.Tomcat6_2.sticky_session=True
worker.Tomcat6_1.method=Session
worker.Tomcat6_2.lbfactor=10
worker.bal1.type=lb
worker.bal1.sticky_session=True
worker.bal1.balance_workers=Tomcat6_1,Tomcat6_2
worker.bal1.method=Session
worker.stat1.type=status

I have specified the jvm route too in tomcat insatnces server.xml.

Can anyone help?
As after speciefying the sticky session, I am able to login to my
application but if i do it more that 2-3 times...it doesn't redirect me to
the application.
--
View this message in context: 
http://www.nabble.com/Apache-Http-sticky-session-problem.-tp18877839p18877839.html

Sent from the Apache HTTP Server - Users mailing list archive at 
Nabble.com.


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
"   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]