Re: [us...@httpd] Apache for Windows won't start

2009-09-02 Thread Lester Caine
John Oliver wrote:
> On Tue, Sep 01, 2009 at 06:12:47PM -0500, William A. Rowe, Jr. wrote:
>> John Oliver wrote:
>>> So I installed 2.2.13 on W2K3 R2 Enterprise Edition SP2  When I try to
>>> start it, I get a message about error code 1, and there is nothing in
>>> the error.log  This is the first time I've tried to do this under
>>> Windows.  With Linux/UNIX, there would be *something* in the error_log.
>>> But here, I'm stuck.  How to proceed?
>> Windows Application Event Log (until there is a chance to open the log file)
> 
> Ahh.
> 
> It's complaining about not being able to bind to port 80.  Netstat
> doesn't show anything else listening on that port.  I poked around in
> the properties of the service, thinking maybe it's running as a
> non-privileged user, but no, it's running as SYSTEM.
> 
> Next step? :-)

Disable IIS?
I seem to recall it 'hogs' port 80 even if it's not showing as running?

-- 
Lester Caine - G8HFL
-
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php

-
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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Lookaround assertions in mod_rewrite/mod_alias regex?

2009-09-02 Thread Bob Ionescu
2009/9/2 John Martin :
> How can one use lookahead/lookbehind assertions in the regex for a
> mod_rewrite RewriteRule, or mod_alias AliasMatch? Currently when I
> attempt to use a question mark in my regex, as needed for lookarounds,
> I get an internal server error for mod_rewrite, or a syntax error for
> mod_alias.

But you're using Apache 2+?

Bob

-
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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[us...@httpd] rewriterule help

2009-09-02 Thread Andrew Hole
Hi guys!

The following directive doesn't take into consideration the filename in URL:
  RewriteCond %{DOCUMENT_ROOT}/bin/core/%1 -f

In this request the REQUEST_FILENAME has the value: /bin/adt/file.swf but I
just want the filename (file.swf).

How can I do that?

Thanks a lot


   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteCond %{DOCUMENT_ROOT}/bin/core/%1 -f
   RewriteRule ^(.*)$ /core/$1 [L]

192.168.1.167 - - [02/Sep/2009:10:57:34 +0100]
[clappehr/sid#65c800][rid#87e078/initial] (2) init rewrite engine with
requested uri /bin/adt/file.swf
192.168.1.167 - - [02/Sep/2009:10:57:34 +0100]
[clappehr/sid#65c800][rid#87e078/initial] (3) applying pattern '^(.*)$' to
uri '/bin/adt/file.swf'
192.168.1.167 - - [02/Sep/2009:10:57:34 +0100]
[clappehr/sid#65c800][rid#87e078/initial] (4) RewriteCond:
input='/bin/adt/file.swf' pattern='!-f' => matched
192.168.1.167 - - [02/Sep/2009:10:57:34 +0100]
[clappehr/sid#65c800][rid#87e078/initial] (4) RewriteCond:
input='R:/EHR/client/pfh/bin/core/' pattern='-f' => not-matched


Re: [us...@httpd] Server Side Includes - include only a certain "xpath"

2009-09-02 Thread Thorsten Scherler
On Mon, 2009-08-31 at 11:03 +0200, Thorsten Scherler wrote:
> On Fri, 2009-08-28 at 14:32 +0100, Nick Kew wrote:
> > Thorsten Scherler wrote:
> > > Hi all,
> > > 
> > > I have a page that includes various parts via ssi.
> > > e.g. 
> > > 
> > > On our current version we "hack" the included pages to an invalid html
> > > doc. Basically we strip it down to e.g. " ...blah..." However
> > > this leaves documents that are not valid against xhtml dtd.
> > > 
> > > Is there a way to include a certain part of a page like e.g.
> > > 
> > > 
> > > TIA for any information and suggestions.
> > 
> > mod_publisher, as a markup-aware parser, can help with that
> > kind of thing, if you can map your requirements to SAX events.
> > 
> > Alternatively, if everything is XML and you want to use xpath,
> > you might try mod_transform.
> > 
> > In either case, you'll have some work to figure it out.
> 
> 
> Thanks Nick I will look into those mods and report back.

In the end we used the old approach since our production department did
not wanted too install other mods.

Cheers for your feedback again.

salu2
-- 
Thorsten Scherler 
Open Source Java 

Sociedad Andaluza para el Desarrollo de la Sociedad 
de la Información, S.A.U. (SADESI)





-
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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[us...@httpd] Allow mod_rewrite in .htaccess without Set/AddHandler

2009-09-02 Thread Mike Cardwell

Hi,

My configuration has a single VirtualHost serving all of the websites. 
I'm using suphp so that cgi scripts are executed as the owner of the 
file. In my VirtualHost I do this:


AddHandler x-suphp-cgi .cgi .pl

I want to give people access to use mod_rewrite from .htaccess files, 
but in order to do that I need to add "AllowOverride FileInfo" to a 
. However, if I do that, it also gives them access to use 
SetHandler/AddHandler in .htaccess. If they can use those directives, 
then they can override my suphp configuration and stick this in their 
.htaccess file:


AddHandler cgi-script .cgi .pl

That then makes their scripts run as the apache user, which is what I'm 
trying to avoid... Any ideas?


--
Mike Cardwell - IT Consultant and LAMP developer
Cardwell IT Ltd. (UK Reg'd Company #06920226) http://cardwellit.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: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] rewriterule help

2009-09-02 Thread Krist van Besien
On Wed, Sep 2, 2009 at 12:02 PM, Andrew Hole wrote:
> Hi guys!
>
> The following directive doesn't take into consideration the filename in URL:
>   RewriteCond %{DOCUMENT_ROOT}/bin/core/%1 -f



>    RewriteCond %{REQUEST_FILENAME} !-f
>    RewriteCond %{DOCUMENT_ROOT}/bin/core/%1 -f
>    RewriteRule ^(.*)$ /core/$1 [L]
>
> 192.168.1.167 - - [02/Sep/2009:10:57:34 +0100]
> [clappehr/sid#65c800][rid#87e078/initial] (2) init rewrite engine with
> requested uri /bin/adt/file.swf
> 192.168.1.167 - - [02/Sep/2009:10:57:34 +0100]
> [clappehr/sid#65c800][rid#87e078/initial] (3) applying pattern '^(.*)$' to
> uri '/bin/adt/file.swf'
> 192.168.1.167 - - [02/Sep/2009:10:57:34 +0100]
> [clappehr/sid#65c800][rid#87e078/initial] (4) RewriteCond:
> input='/bin/adt/file.swf' pattern='!-f' => matched
> 192.168.1.167 - - [02/Sep/2009:10:57:34 +0100]
> [clappehr/sid#65c800][rid#87e078/initial] (4) RewriteCond:
> input='R:/EHR/client/pfh/bin/core/' pattern='-f' => not-matched

%1 is the result of any capture performed during the matching in the
RHS of y RewriteCond. If you use it in the LHS it will be empty, as
you can see in the logs. Which is why this doesn't work.
You can capture the filename in the RewriteRule, and use that.

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{DOCUMENT_ROOT}/bin/core/$2 -f
RewriteRule ^(.*)/(.*)$ /bin/core/$1/$2 [L]

(I haven't acutally testet this, but this should work...)

Krist


-- 
krist.vanbes...@gmail.com
kr...@vanbesien.org
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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] rewriterule help

2009-09-02 Thread Andrew Hole
It works. However, i'm getting a popup with file save option and I would
like to see the page on Browser.

Thanks a lot

On Wed, Sep 2, 2009 at 11:41 AM, Krist van Besien  wrote:

> On Wed, Sep 2, 2009 at 12:02 PM, Andrew Hole
> wrote:
> > Hi guys!
> >
> > The following directive doesn't take into consideration the filename in
> URL:
> >   RewriteCond %{DOCUMENT_ROOT}/bin/core/%1 -f
>
>
>
> >RewriteCond %{REQUEST_FILENAME} !-f
> >RewriteCond %{DOCUMENT_ROOT}/bin/core/%1 -f
> >RewriteRule ^(.*)$ /core/$1 [L]
> >
> > 192.168.1.167 - - [02/Sep/2009:10:57:34 +0100]
> > [clappehr/sid#65c800][rid#87e078/initial] (2) init rewrite engine with
> > requested uri /bin/adt/file.swf
> > 192.168.1.167 - - [02/Sep/2009:10:57:34 +0100]
> > [clappehr/sid#65c800][rid#87e078/initial] (3) applying pattern '^(.*)$'
> to
> > uri '/bin/adt/file.swf'
> > 192.168.1.167 - - [02/Sep/2009:10:57:34 +0100]
> > [clappehr/sid#65c800][rid#87e078/initial] (4) RewriteCond:
> > input='/bin/adt/file.swf' pattern='!-f' => matched
> > 192.168.1.167 - - [02/Sep/2009:10:57:34 +0100]
> > [clappehr/sid#65c800][rid#87e078/initial] (4) RewriteCond:
> > input='R:/EHR/client/pfh/bin/core/' pattern='-f' => not-matched
>
> %1 is the result of any capture performed during the matching in the
> RHS of y RewriteCond. If you use it in the LHS it will be empty, as
> you can see in the logs. Which is why this doesn't work.
> You can capture the filename in the RewriteRule, and use that.
>
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{DOCUMENT_ROOT}/bin/core/$2 -f
> RewriteRule ^(.*)/(.*)$ /bin/core/$1/$2 [L]
>
> (I haven't acutally testet this, but this should work...)
>
> Krist
>
>
> --
> krist.vanbes...@gmail.com
> kr...@vanbesien.org
> 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: users-unsubscr...@httpd.apache.org
>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


Re: [us...@httpd] Apache issue - Need help

2009-09-02 Thread Eric Covener
On Wed, Sep 2, 2009 at 5:24 AM, bhasker
yadav wrote:
> Hi All,
>
>
>
> My application is accessing through apache 2.2 -> weblogic 10.3

> 

Try LocationMatch.  This rule is not applicable to content that
doesn't come off the filesystem (I think?).

-- 
Eric Covener
cove...@gmail.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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] rewriterule help

2009-09-02 Thread Krist van Besien
On Wed, Sep 2, 2009 at 1:15 PM, Andrew Hole wrote:
> It works. However, i'm getting a popup with file save option and I would
> like to see the page on Browser.

That is probably due to an incorrect content type header. Have a look
at what the server sends with an appropriate tool (Firebug or
HTTPHeaders for Firefox for example...)


Krist

-- 
krist.vanbes...@gmail.com
kr...@vanbesien.org
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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] 'require' keyword

2009-09-02 Thread Melanie Pfefer
Hi
 
 I have ldap integrated with apache
 
 what's the difference between require valid-user and require user
 
 Why when I have require valid-user, no authentication is required

thanks
--- On Fri, 21/8/09, Melanie Pfefer  wrote:

> From: Melanie Pfefer 
> Subject: Re: [us...@httpd] 'require' keyword
> To: users@httpd.apache.org
> Date: Friday, 21 August, 2009, 4:32 PM
> Hi,
> 
> I tried to change the AuthName but I got the same behavior:
> Forbidden
> The methid is GET (since I am only accessing the page from
> a browser): "GET /svn/ABC/XYZ/123 HTTP/1.0" 403 221
> 
> thanks in advance
> --- On Fri, 21/8/09, André Warnier 
> wrote:
> 
> > From: André Warnier 
> > Subject: Re: [us...@httpd] 'require' keyword
> > To: users@httpd.apache.org
> > Date: Friday, 21 August, 2009, 3:17 PM
> > Melanie Pfefer wrote:
> > > Hi
> > > 
> > > I meant Eric's suggestion.
> > > 
> > > But, I sent the email too fast. In fact, I am
> not
> > prompted for authentication when I create a new and
> seperate
> > location even though the Require user was put for that
> new
> > location.
> > > 
> > > In fact I just noticed that I have also:
> > > 
> > > 
> > > with the same ldap settings (require valid-user)
> > > 
> > Getting back to some basics :
> > With "Basic Authentication" (which is what you are
> using,
> > despite the fact that your back-end is an LDAP
> server), the
> > directive "AuthName" is important.
> > Basically, any Location sections for which you use the
> same
> > AuthName, is considered by the server and the browser
> as
> > "one domain", and an authentication for one of these
> > Locations is valid for all the Locations that have the
> same
> > AuthName.
> > That is why, if a user authenticates once for a
> specific
> > Location that has an "Authname X", and then accesses
> another
> > Location that also has an "AuthName X", the user will
> not be
> > asked to authenticate again, and his previous
> authentication
> > will be "re-used".
> > 
> > 
> >
> -
> > 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: users-unsubscr...@httpd.apache.org
> >   "   from the digest: users-digest-unsubscr...@httpd.apache.org
> > For additional commands, e-mail: users-h...@httpd.apache.org
> > 
> > 
> 
> 
> 
> 
> 
> -
> 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: users-unsubscr...@httpd.apache.org
>    "   from the digest: users-digest-unsubscr...@httpd.apache..org
> For additional commands, e-mail: users-h...@httpd.apache.org
> 
> 





-
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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] 'require' keyword

2009-09-02 Thread Eric Covener
On Wed, Sep 2, 2009 at 9:44 AM, Melanie
Pfefer wrote:
> Hi
>
>  I have ldap integrated with apache
>
>  what's the difference between require valid-user and require user
>
>  Why when I have require valid-user, no authentication is required

"user" is followed by a specific user or users, who have to match the
specific username that was successfully authenticated.
"valid-user" means any username that had been successfully authenticated.

-- 
Eric Covener
cove...@gmail.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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] 'require' keyword

2009-09-02 Thread Melanie Pfefer
thanks.
In what cases Require valid-user does not ask for an authentication?

This is my case here.

thanks again

--- On Wed, 2/9/09, Eric Covener  wrote:

> From: Eric Covener 
> Subject: Re: [us...@httpd] 'require' keyword
> To: users@httpd.apache.org
> Date: Wednesday, 2 September, 2009, 4:49 PM
> On Wed, Sep 2, 2009 at 9:44 AM,
> Melanie
> Pfefer
> wrote:
> > Hi
> >
> >  I have ldap integrated with apache
> >
> >  what's the difference between require valid-user and
> require user
> >
> >  Why when I have require valid-user, no
> authentication is required
> 
> "user" is followed by a specific user or users, who have to
> match the
> specific username that was successfully authenticated.
> "valid-user" means any username that had been successfully
> authenticated.
> 
> -- 
> Eric Covener
> cove...@gmail.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: users-unsubscr...@httpd.apache.org
>    "   from the digest: users-digest-unsubscr...@httpd.apache..org
> For additional commands, e-mail: users-h...@httpd.apache.org
> 
> 





-
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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



RE: [us...@httpd] Please suggest a module which can check for X-Forwarded ip address , functionality similar to mod_qos or mod_bw

2009-09-02 Thread Soumendu Bhattacharya
Sorry for the late reply , but really appreciate your response. I will surely 
check it out. 

-Original Message-
From: Tom Evans [mailto:tevans...@googlemail.com] 
Sent: Tuesday, August 25, 2009 10:47 PM
To: users@httpd.apache.org
Subject: Re: [us...@httpd] Please suggest a module which can check for 
X-Forwarded ip address , functionality similar to mod_qos or mod_bw

On Tue, 2009-08-25 at 22:05 +0530, Soumendu Bhattacharya wrote:
> Hi ,
> 
> Does anyone know of a module similar
> to mod_qos or mod_bw which can limit bandwidth/no. of connections
> based on X-Forwarded for IP address. We have an external site which is
> behind Akamai load balancer, so our webserves only see Akamai IP
> address. As far as the documentation of mod_qos goes , I don’t seem to
> see it support for X-Forwarded IP address. 
> 
>  
> 
> Please suggest. 
> 
>  
> 
> Thanks in advance
> 
>  
> 
> Soumendu
> 
> 

mod_rpaf [1] (Reverse Proxy Add Forward) will update your internal
request object with the address from X-Forwarded-For from trusted
proxies. We use it with akamai for the same purpose, and also behind our
own reverse proxies.

[1] http://stderr.net/apache/rpaf/

Cheers

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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org






-
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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] 'require' keyword

2009-09-02 Thread Eric Covener
On Wed, Sep 2, 2009 at 10:09 AM, Melanie
Pfefer wrote:
> thanks.
> In what cases Require valid-user does not ask for an authentication?
>
> This is my case here.

If you configure basic authentication with Require valid-user, you
will be prompted for credentials.

-- 
Eric Covener
cove...@gmail.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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[us...@httpd] Question about JBOSS and what is best

2009-09-02 Thread Chuck.Payne
Guys,

I am need to understand something that an admin did here, that is no longer 
with us. We have several apps that are using JBOSS with Apache Frontend. On the 
Apache side they are suppose to be the same, but they aren't. We have a total 
of Six Servers in area that are running Apache as I stated with JBOSS, but on 
three of the server he set up the boxes to use worker.properties file for the 
load balancing and on the others he used  apj proxy balancer, we were told they 
need to be same. Why would one use mod_ajp over mod_jk?

The reason I am asking the boxes with the mod_jk worker.properties works 
nicely, but the boxes with the proxy_balancer are having issue with cause a 
bunch of alerts that they are down when they aren't. I am looking to see what I 
can do to fix this issue.


CHUCK PAYNE |  Unix System Administrator

TRAVEL CHANNEL MEDIA
3700 Mansell Rd, Suite 500
Alpharetta, GA 30022
Office: 404-269-5533
Blackberry: 770-940-7765
email:chuck.pa...@travelchannel.com

CATCH IT  |  travelchannel.com

Need IT help?  Go to http://Keystoneweb.corp.cox.com
Or contact us at supp...@travelchannel.com / 301-244-
Cox Communications Help Desk (24 X 7 X 365): 800-637-3545
 
This e-mail and any attachments are intended only for the person to whom (or 
entity to which) it is addressed and may contain confidential and/or privileged 
material. Any review, re-transmission, copying, dissemination or other use of 
this information by persons or entities other than the intended recipient is 
prohibited. If you received this in error, please contact the sender and delete 
the material from any computer. The contents of this message may contain 
personal views that are not the views of The Travel Channel, L.L.C.

TRAVEL BUG EFFECT: Craving for a Challenge
Man V Food, Wednesdays at 10PM E/P
CATCH IT  |  travelchannel.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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[us...@httpd] Looking for real configuration data

2009-09-02 Thread Wei Zheng
[Sorry if you receive multiple copies of this message.] 
[Please feel free to forward the message to others who may be
interested.] 

Hi, 

We are a computer systems research group at the Computer Science
department at Rutgers University, and are conducting research on
simplifying the software configuration process.  The idea is to 
leverage the configurations of existing users of a piece of software to
ease the configuration process for each new user of the software. 

The reason for this message is that we would like to collect a large
number of deployed configurations to help evaluate our ideas. Thus, we
ask systems administrators and end users to submit information about
their configurations for any software that they have had to configure,
such as Apache, MySQL, and Linux. 

We hope that you have a few minutes to take our survey which is located
at: http://vivo.cs.rutgers.edu/massconf/MassConf.html As an incentive,
all surveys completed in their entirety will be entered into a drawing
of a number of $50 gift certificates (from Amazon.com). 

Important: Our work is purely scientific, so we have no interest in any
private or commercially sensitive information that may come along with
your configuration data.  We will make sure that no such information is
ever made public.  In fact, if you wish, you are more than welcome to
anonymize or remove any sensitive information from the configuration
data you send us. 

If you have any questions regarding this message or our work, feel free
to email Wei Zheng (wzheng at cs dot rutgers dot edu). 


Thanks for your time, 

Wei Zheng 
PhD student, Vivo Research Group (http://vivo.cs.rutgers.edu) 
Rutgers University 


-
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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] 'require' keyword

2009-09-02 Thread Melanie Pfefer
Hi

The config file looks like


DAV svn
SVNParentPath ...
Options FollowSymLinks
AuthBasicProvider ldap
AuthLDAPUrl ...

Require valid-user

AuthType Basic
AuthName "Please enter your credentials"



I am wondering why I am not asked to authenticate on the browser.

thanks
--- On Wed, 2/9/09, Eric Covener  wrote:

> From: Eric Covener 
> Subject: Re: [us...@httpd] 'require' keyword
> To: users@httpd.apache.org
> Date: Wednesday, 2 September, 2009, 5:27 PM
> On Wed, Sep 2, 2009 at 10:09 AM,
> Melanie
> Pfefer
> wrote:
> > thanks.
> > In what cases Require valid-user does not ask for an
> authentication?
> >
> > This is my case here.
> 
> If you configure basic authentication with Require
> valid-user, you
> will be prompted for credentials.
> 
> -- 
> Eric Covener
> cove...@gmail.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: users-unsubscr...@httpd.apache.org
>    "   from the digest: users-digest-unsubscr...@httpd.apache..org
> For additional commands, e-mail: users-h...@httpd.apache.org
> 
> 





-
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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] 'require' keyword

2009-09-02 Thread Tom Evans
On Wed, 2009-09-02 at 15:23 +, Melanie Pfefer wrote:
> Hi
> 
> The config file looks like
> 
> 
> DAV svn
> SVNParentPath ...
> Options FollowSymLinks
> AuthBasicProvider ldap
> AuthLDAPUrl ...
> 
> Require valid-user
> 
> AuthType Basic
> AuthName "Please enter your credentials"
> 
> 
> 
> I am wondering why I am not asked to authenticate on the browser.
> 
> thanks

Wouldn't your browser be issuing GET requests? Check your access log.
Your conf says to not require authentication for GET requests.

Cheers

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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Question about JBOSS and what is best

2009-09-02 Thread Jai
Why cant you change your configuration to use mod_jk on all six servers.

On Wed, Sep 2, 2009 at 9:48 AM,  wrote:

> Guys,
>
> I am need to understand something that an admin did here, that is no longer
> with us. We have several apps that are using JBOSS with Apache Frontend. On
> the Apache side they are suppose to be the same, but they aren't. We have a
> total of Six Servers in area that are running Apache as I stated with JBOSS,
> but on three of the server he set up the boxes to use worker.properties file
> for the load balancing and on the others he used  apj proxy balancer, we
> were told they need to be same. Why would one use mod_ajp over mod_jk?
>
> The reason I am asking the boxes with the mod_jk worker.properties works
> nicely, but the boxes with the proxy_balancer are having issue with cause a
> bunch of alerts that they are down when they aren't. I am looking to see
> what I can do to fix this issue.
>
>
> CHUCK PAYNE |  Unix System Administrator
>
> TRAVEL CHANNEL MEDIA
> 3700 Mansell Rd, Suite 500
> Alpharetta, GA 30022
> Office: 404-269-5533
> Blackberry: 770-940-7765
> email:chuck.pa...@travelchannel.com
>
> CATCH IT  |  travelchannel.com
>
> Need IT help?  Go to 
> http://Keystoneweb.corp.cox.com
> Or contact us at supp...@travelchannel.com / 301-244-
> Cox Communications Help Desk (24 X 7 X 365): 800-637-3545
>  
> This e-mail and any attachments are intended only for the person to whom
> (or entity to which) it is addressed and may contain confidential and/or
> privileged material. Any review, re-transmission, copying, dissemination or
> other use of this information by persons or entities other than the intended
> recipient is prohibited. If you received this in error, please contact the
> sender and delete the material from any computer. The contents of this
> message may contain personal views that are not the views of The Travel
> Channel, L.L.C.
>
> TRAVEL BUG EFFECT: Craving for a Challenge
> Man V Food, Wednesdays at 10PM E/P
> CATCH IT  |  travelchannel.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: users-unsubscr...@httpd.apache.org
>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


Re: [us...@httpd] Question about JBOSS and what is best

2009-09-02 Thread Mike Cardwell

Jai wrote:


Why cant you change your configuration to use mod_jk on all six servers.


Please don't top post. He was asking for people with more relevant 
experience to elaborate on reasons why the previous admin may have 
chosen to use mod_ajp for some of the servers.. He never stated that he 
couldn't change his configuration to use mod_jk on all six.


--
Mike Cardwell - IT Consultant and LAMP developer
Cardwell IT Ltd. (UK Reg'd Company #06920226) http://cardwellit.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: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[us...@httpd] mod_cache ignores max-age / s-maxage headers if expires is set in the past

2009-09-02 Thread Anthony Gerrard

Hi,

I've noticed that if an expires header is set in the past then mod_cache will 
not cache the response even if s-maxage is set in the cache-control header.  
Isn't this contrary to the HTTP 1.1 specification?

"If a response includes an s-maxage directive, then for a shared cache (but not for 
a private cache), the maximum age specified by this directive overrides the maximum age 
specified by either the max-age directive or the Expires header."

http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.3

Not caching responses with an expires header in the past seems to have been 
added deliberately in version 2.2.5.  The HTTP specification says it is valid 
to set conflicting expires and maxage / s-maxage settings to obtain different 
behaviour for HTTP 1.0 and HTTP 1.1 clients.  I'm using a caching product on my 
web server that behaves like this - hence I've noticed the problem.

I think I have a workaround but wanted to post something in case it is a bug.

Anthony
___

Anthony Gerrard
Email: anthonygerr...@gmail.com
http://www.sponsorachild.org.uk

-
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: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[us...@httpd] really slow response time even with standard html file

2009-09-02 Thread Peter Folk
Hi All,

I am running a two machine system with load balance on debian 4.0 and apache
2.0 .

I guess I am not a real expert in apache so , my ideas are limited .

both machines have 4 cores and 4 GB ram  (php apps) .

What makes it more complex that we have many virtual hosts the apache config
file is about 80 KB (almost one single file with all hosts and aliases) .

What I see that when apache starts the memory starts to load up to 2,8 G see
config below . and then processor goes back and forth .

But even a single html file of 2Kb takes up to *5 seconds ! !* Firebug shows
that connection time is about 4 sec (this is when its waiting for a slot  ?
) .

I keep seeing in the log that I need to increase maxclients but if I do so
the memory consumption goes over the limit and we start to swap .

What tools should I use to better understand the problem and trace down this
issue?

Any ideas are welcome !



cheers,
Peter

# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves

#StartServers  5
StartServers  50
#StartServers   100
#MinSpareServers   5
 MinSpareServers   10
# MinSpareServers   30
#MaxSpareServers  10
MaxSpareServers  90
#MaxSpareServers  30
#MaxSpareServers  100
#MaxClients  150
MaxClients  436
ServerLimit 436
#oldMaxRequestsPerChild   0
MaxRequestsPerChild   0



[us...@httpd] mod_proxy intermittent "(70007)The timeout specified has expired"

2009-09-02 Thread Nick Pratley
Hi,

I have two web servers that proxy around 150 backend sites, and are
experiencing a lot of mod_proxy timeout errors. The two servers are Xen
guests running CentOS 5.3, and sit behind an LVS-NAT load balancer which
is also a Xen domU, also running CentOS 5.3. The errors in the error log
are:

[error] (70007)The timeout specified has expired: proxy: HTTP: attempt
to connect to x.x.x.x:80 (www.somesite.com) failed
[error] ap_proxy_connect_backend disabling worker for (www.somesite.com)
[error] proxy: HTTP: disabled connection for (www.somesite.com)

The last error above appears every time a request is made for
www.somesite.com until that backend site is re-enabled by mod_proxy. The
errors affect a number of different backend sites with the only common
factor appearing to be that these are among the most popular
reverse-proxied sites. The errors don't seem to appear for the less
popular backend sites.

Something I've observed a number of times is that a TCP connection to a
particular backend site will be stuck in the SYN_SENT state for a long
time (approx. 2 minutes), and as soon as that connection disappears the
timeout error occurs and the backend site is disabled.

Until last week this service was running on a single domU with no load
balancer, on completely different hardware. In this configuration the
timeout errors had occurred however they were nowhere near as consistent
- about 2 or 3 times a month compared to at least once per hour that
we're experiencing now.

We receive an average of around 300,000 hits per hour, up to about a
million during busy parts of the day (as reported by AWStats). We have a
10Mbps internet link however our cacti graphs show the average usage as
being around 2Mbps, peaking to 3Mbps, so it's unlikely that we're
saturating the network link.

Here is an example virtual host directive from our configuration files:



ServerAdmin ad...@ourcompany.com
DocumentRoot /var/www/html
ServerName "www-somesite-com.ourcompany.com"
LogLevel warn
ServerSignature Off

SSLEngine on
SSLProtocol all -SSLv2
SSLCipherSuite HIGH:+MEDIUM:!EXP:!SSLv2:!LOW
SSLCertificateKeyFile /etc/httpd/certs/sp.key
SSLCertificateFile /etc/httpd/certs/sp.cer
SSLCertificateChainFile /etc/httpd/certs/server-chain.crt

ProxyPass / http://www.somesite.com/
ProxyPassReverse / http://www.somesite.com/
ProxyHTMLURLMap http://www.somesite.com /

SetOutputFilter line-editor
RequestHeader unset Accept-Encoding
ProxyPassReverseCookieDomain .somesite.com .ourcompany.com

SetEnvLineEdit
"application/x-javascript;text/plain;text/css;text/javascript;text/html"
LERewriteRule "\"http\://www\.somesite\.com/" "\"/" R
LERewriteRule "\'http\://www\.somesite\.com/" "'/" R

Include conf.d/shib.conf.include

ErrorDocument 502
https://sp.ourcompany.com/errors/providerSiteError_502.html

SetEnv proxy-nokeepalive 1




Here are some more details of the web server:

# uptime
 14:04:05 up  5:28,  1 user,  load average: 0.00, 0.01, 0.02

# uname -a
Linux ckn-sp-2 2.6.18-128.4.1.el5xen #1 SMP Tue Aug 4 20:51:12 EDT 2009
x86_64 x86_64 x86_64 GNU/Linux

# free
 total   used   free sharedbuffers cached
Mem:   4194304 9462723248032  0  32312 127636
-/+ buffers/cache: 7863243407980
Swap:  2031608  02031608

# /usr/sbin/httpd -v
Server version: Apache/2.2.3
Server built:   Jul 14 2009 06:02:39

# netstat -s
Ip:
2934756 total packets received
0 forwarded
0 incoming packets discarded
2934742 incoming packets delivered
3207218 requests sent out
Icmp:
2267 ICMP messages received
10 input ICMP message failed.
ICMP input histogram:
destination unreachable: 286
redirects: 1516
echo requests: 465
773 ICMP messages sent
0 ICMP messages failed
ICMP output histogram:
destination unreachable: 308
echo replies: 465
IcmpMsg:
InType3: 286
InType5: 1516
InType8: 465
OutType0: 465
OutType3: 308
Tcp:
61435 active connections openings
110304 passive connection openings
36 failed connection attempts
2578 connection resets received
86 connections established
2777064 segments received
3011011 segments send out
40041 segments retransmited
0 bad segments received.
318 resets sent
Udp:
157061 packets received
264 packets to unknown port received.
0 packet receive errors
157337 packets sent
TcpExt:
3 invalid SYN cookies received
36 resets received for embryonic SYN_RECV sockets
39 packets pruned from receive queue because of socket buffer overrun
2 ICMP packets dropped because socket was locked
95627 TCP sockets finished time wait in fast timer
735 time wait sockets recycled by time stamp
53736 delayed acks sent
28 delayed acks further delayed because of locked socket
  

[us...@httpd] mod_rewrite & cookies & apache 1.3.. known problem?

2009-09-02 Thread David Taveras
Hello,

I have a site that uses mod_rewrite for URLs... id like to include a
tracking cookie for users that are entering via URLs made by mod_rewrite.
The problem is that the cookie isnt getting passed through the mod_rewrite
URL.

Ive been told (and tested) that Apache2 mod_rewrite does indeed manage this
situation.

My question is:

Can anybody else confirm that this issue exists with Apache 1.3 and
mod_rewrite.. and why?


Thank you

Daniel


Re: [us...@httpd] mod_rewrite & cookies & apache 1.3.. known problem?

2009-09-02 Thread Krist van Besien
On Thu, Sep 3, 2009 at 6:42 AM, David Taveras wrote:
> Hello,
>
> I have a site that uses mod_rewrite for URLs... id like to include a
> tracking cookie for users that are entering via URLs made by mod_rewrite.
> The problem is that the cookie isnt getting passed through the mod_rewrite
> URL.

Cookies are not part of the URL. So mod_rewrite does not manipulate
them. If a cookie is part of a request, it will normally still be part
of the request after mod_rewrite has manipulated the URL.

> Ive been told (and tested) that Apache2 mod_rewrite does indeed manage this
> situation.

You can use mod_rewrite to do all kinds of nifty things. You have to
realise however that mod_rewrite's purpose is to manimpulate URLs. It
can set cookies as a sideeffect.
If your cookie "does not get through" it is most likely not being sent
to the server by the browser in the first place. Check this first.

> Can anybody else confirm that this issue exists with Apache 1.3 and
> mod_rewrite.. and why?

You have formaluted your problem in a way that it is not possible for
anyone to confirm (or deny) that this is an issue.

Krist


-- 
krist.vanbes...@gmail.com
kr...@vanbesien.org
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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org