Re: [EMAIL PROTECTED] Port?

2006-09-27 Thread Steve Swift
No Listening ports available implies that something else is already listening on port 80. This is probably the windows IIS system. You'll have to configure that not to start the webserver portion of IIS, or configure it to listen on a port other then 80. 
I last did this about 15 years ago, so I don't recall the details!On 26/09/06, Brian O'Gorman Brian.O'[EMAIL PROTECTED]
 wrote:I'm getting the following errors. I'm also rather new at this, so any
help would be appreciated. Thanks.Installing the Apache2.2 serviceThe Apache2.2 service is successfully installed.Testing httpd.confErrors reported here must be corrected before the service can be
started.(OS 10048)Only one usage of each socket address (protocol/networkaddress/port)is normally permitted.: make_sock: could not bind to address0.0.0.0:80no listening sockets available, shutting down
Unable to open logsNote the errors or messages above, and press the ESC key to exit.3-The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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]-- Steve Swifthttp://www.swiftys.org.uk


Re: [EMAIL PROTECTED] Apache Sometimes Ignoring MaxSpareServers, Running Out of Memory

2006-09-27 Thread Qingshan Xie
Hi! Joshua,  Under the high load condition, if the
number of children spawned is over the ServerLimit or
MaxClients/ThreadsPerChild, what the status of those
extra children is?  Will all those extra children be
in the queue waiting for the process?

Thx, Q.Xie

--- Joshua Slive [EMAIL PROTECTED] wrote:

 On 9/23/06, Dave Mabe [EMAIL PROTECTED] wrote:
 
  OK, the problem happened again and I was able to
 pull some information
  from server-status.
 
  First of all, here's the appropriate part of my
 config:
 
  MinSpareServers 3
  MaxSpareServers 5
  StartServers 3
  MaxClients 50
  MaxRequestsPerChild 30
 
 MaxRequestsPerChild is extremely low.  Are you
 having severe memory
 leakage problems?
 
  As you can see from process.list.txt, Apache is
 completely ignoring
  MaxSpareServers and creating a ton of child
 processes until it
  completely runs out of memory.  Sometimes it gets
 in this state a
  couple times a day, other times it will go for 10
 days without the
  problem occuring.
 
 I don't see any evidence of MaxSpareServers being
 ignored.  I see
 evidence of a bunch of processes serving requests,
 which means they
 aren't spare.Then the only limit is
 MaxClients, which is 50 and
 is not being exceeded.
 
 The server-status displays do look weird.  But this
 could be caused by
 any number of things.  For example, it is possible
 that your perl
 scripts are just not able to keep up with the load
 because of some
 holdup on backend database connections or something
 like that.  The
 main difference I see between the good state and
 the bad state is
 that there are many more active requests in the
 bad state, and they
 don't seem to be making any progress.
 
 To figure out what a particular apache process is up
 to, you can use
 the instructions here:
 http://httpd.apache.org/dev/debugging.html#backtrace
 
 Joshua.
 

-
 The official User-To-User support forum of the
 Apache HTTP Server Project.
 See URL: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]
 
 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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] server error help !

2006-09-27 Thread Boyle Owen
 -Original Message-
 From: Chris Ackford [mailto:[EMAIL PROTECTED] 
 Sent: Friday, September 22, 2006 7:03 PM
 To: users@httpd.apache.org
 Subject: [EMAIL PROTECTED] server error help !
 
 Server error!
 
 The server encountered an internal error and was unable to 
 complete your
 request.
 
 Error message:
 Bareword found where operator expected at
 C:/apache2triad/htdocs/Webmessenger/default.aspx line 2, near 
 %@ Register
 syntax error at 
 C:/apache2triad/htdocs/Webmessenger/default.aspx line 2,
 near %@ Register TagPrefix Bareword found where operator expected at
 C:/apache2triad/htdocs/Webmessenger/default.aspx line 2, near uc1
 TagName Bareword found where operator expected at
 C:/apache2triad/htdocs/Webmessenger/default.aspx line 2, near 
 Footer Src
 String found where operator expected at
 C:/apache2triad/htdocs/Webmessenger/default.aspx line 4, near PUBLIC
 -//W3C//DTD HTML 4.0 Transitional//EN Bareword found where operator
 expected at C:/apache2triad/htdocs/Webmessenger/default.aspx 
 line 7, near 
 
 
 Why would I get this ?

Because the asp page is full of errors (as listed above).

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 

 
 
 -
 The official User-To-User support forum of the Apache HTTP 
 Server Project.
 See URL: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]

 
 
This message is for the named person's use only. It may contain confidential, 
proprietary or legally privileged information. No confidentiality or privilege 
is waived or lost by any mistransmission. If you receive this message in error, 
please notify the sender urgently and then immediately delete the message and 
any copies of it from your system. Please also immediately destroy any 
hardcopies of the message. You must not, directly or indirectly, use, disclose, 
distribute, print, or copy any part of this message if you are not the intended 
recipient. The sender's company reserves the right to monitor all e-mail 
communications through their networks. Any views expressed in this message are 
those of the individual sender, except where the message states otherwise and 
the sender is authorised to state them to be the views of the sender's company.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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] Two Nics, several ips aliased to each one

2006-09-27 Thread Boyle Owen
 -Original Message-
 From: jekillen [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, September 27, 2006 7:17 AM
 To: users@httpd.apache.org
 Subject: [EMAIL PROTECTED] Two Nics, several ips aliased to each one 
 
 Hello Apache list;
 I have a server running FreeBSD 6.0 RELEASE  with Apache 1.3.34.
 I have two network interface cards. I have Three static public IP's
 assigned to one interface card  and three internal IP's assigned to
 the other interface. I want to do IP based hosting. I got as far as
 a warning message informing me that Apache could not resolve one
 of the internal IP addresses. My plan is to have internal 
 access to the
 virtual hosts as well as external access to the hosts from a dev/admin
 machine.
 The question is:
 In this situation is Apache looking for  dns records for the internal
 addresses, or would there be other reasons for the warning?

Apache tries to get a domain-name for all listened IP addresses at
startup (eg, for self-referential URLs). if any fail to resolve, you get
the warning. Just make sure all IPs resolve on the server (see
/etc/hosts, /etc/resolv.conf etc..), use nslookup to confirm/test.

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 

 
 As It stands now I have three sites served on this machine and
 all three of each group of addresses brings up one of the sites.
 
 I am having more trouble with this (virtual host setup) for some
 reason, than setting up my DNS records and configuration.
 
 I have a copy of Apache the Definitive Guide published by O'Reilly,
 as well as other books and subscriptions to other tech lists but can't
 seem to get a handle on this.
 Thanks in advance for knowledgeable responses.
 Jeff K.
 [EMAIL PROTECTED]
 try
 www.brushandbard.com
 www.serioussite,com
 www.jekillen.com
 They will all bring up
 www.brushandbard.com
 I do not presently have enough business
 to call myself a business, let alone get professional help
 at a professional price.
 JK
 
 
 -
 The official User-To-User support forum of the Apache HTTP 
 Server Project.
 See URL: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]

 
 
This message is for the named person's use only. It may contain confidential, 
proprietary or legally privileged information. No confidentiality or privilege 
is waived or lost by any mistransmission. If you receive this message in error, 
please notify the sender urgently and then immediately delete the message and 
any copies of it from your system. Please also immediately destroy any 
hardcopies of the message. You must not, directly or indirectly, use, disclose, 
distribute, print, or copy any part of this message if you are not the intended 
recipient. The sender's company reserves the right to monitor all e-mail 
communications through their networks. Any views expressed in this message are 
those of the individual sender, except where the message states otherwise and 
the sender is authorised to state them to be the views of the sender's company.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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] multiple virtual machines

2006-09-27 Thread Boyle Owen
 -Original Message-
 From: Chen, Charles [mailto:[EMAIL PROTECTED] 
 Sent: Monday, September 25, 2006 2:04 PM
 To: users@httpd.apache.org
 Subject: [EMAIL PROTECTED] multiple virtual machines
 
 
 Hi,
 
 I am working for a client who would like to group rewrite rules into
 several virtual machines so it is logically clear and easy to 
 maintain.
 
 My question is:
 
 1. is it something recommended or to be avoided?
 2. what is the best way to do this if there is only one external
 domain/IP? My understanding is that when the request comes in, it will
 be intercepted by first virtual machine which will have a rewrite rule
 to capture a group of URLs and proxy it to the second virtual machine?

The request is routed to the appropriate VirtualHost (not virtual
machine - that's a different thing entirely :-) based on the IP, port
and ServerName. Once in, it is then rewritten if it matches the rule and
and RewriteConds. The result can be proxied ([P] flag), redirected ([R]
flag) or just rewritten (no flag).

Do you have a specific problem?

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 
 
 
 
 Many thanks and regards
 
 
 
 Charles
 
 
 
 -
 The official User-To-User support forum of the Apache HTTP 
 Server Project.
 See URL: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]

 
 
This message is for the named person's use only. It may contain confidential, 
proprietary or legally privileged information. No confidentiality or privilege 
is waived or lost by any mistransmission. If you receive this message in error, 
please notify the sender urgently and then immediately delete the message and 
any copies of it from your system. Please also immediately destroy any 
hardcopies of the message. You must not, directly or indirectly, use, disclose, 
distribute, print, or copy any part of this message if you are not the intended 
recipient. The sender's company reserves the right to monitor all e-mail 
communications through their networks. Any views expressed in this message are 
those of the individual sender, except where the message states otherwise and 
the sender is authorised to state them to be the views of the sender's company.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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] Error compile mod-ssl and apache-1.3.33

2006-09-27 Thread Boyle Owen
 -Original Message-
 From: Leon King [mailto:[EMAIL PROTECTED] 
 Sent: Monday, September 25, 2006 7:05 PM
 To: users@httpd.apache.org
 Subject: [EMAIL PROTECTED] Error compile mod-ssl and apache-1.3.33
 
 Hi:
 
 I am installing Apache HTTP Server 1.3.33 on a Solaris 10 box. I have
 also installed OpenSSL 0.9.8b. When I run 'make' after the 
 configure process, I
 receive the errors listed below.  Any help will be great - thanks.

- 1.3.33 is over a year old - current version is 1.3.37.
- you need mod_ssl (you didn't mention it): for 1.3.33, that's version
2.8.24
- openSSL 0.9.8b is in the future relative to 1.3.33 it's a bit risky to
use it (try to keep versions contemporaneous)

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 


 
  
 
 Configure arguments used:
 
 ./configure --with-apache=../apache_1.3.33 
 --with-ssl=/usr/local/ssl 
 --with-crt=/opt/app/apache_1.3.33/conf/ssl.crt/server.crt 
 --with-key=/opt/app/apache_1.3.33/conf/ssl.key/server.key 
 --prefix=/opt/app/apache_1.3.33 --enable-shared=ssl
 
 Error when running 'make' below:
 
 
 ssl_engine_pphrase.c: In function `ssl_pphrase_Handle_CB':
 
 ssl_engine_pphrase.c:496: error: `PEM_F_DEF_CALLBACK' 
 undeclared (first use in this function)
 
 ssl_engine_pphrase.c:496: error: (Each undeclared identifier 
 is reported only once
 
 ssl_engine_pphrase.c:496: error: for each function it appears in.)
 
 *** Error code 1
 
 make: Fatal error: Command failed for target `ssl_engine_pphrase.lo'
 
  
 
 Leon King
 
 Senior Software Systems Eng
 
 Network Management Systems IT, OASIS
 
 v-net: 965-626  
 
 outside: 919-378-6626
 
  
 

 
 
This message is for the named person's use only. It may contain confidential, 
proprietary or legally privileged information. No confidentiality or privilege 
is waived or lost by any mistransmission. If you receive this message in error, 
please notify the sender urgently and then immediately delete the message and 
any copies of it from your system. Please also immediately destroy any 
hardcopies of the message. You must not, directly or indirectly, use, disclose, 
distribute, print, or copy any part of this message if you are not the intended 
recipient. The sender's company reserves the right to monitor all e-mail 
communications through their networks. Any views expressed in this message are 
those of the individual sender, except where the message states otherwise and 
the sender is authorised to state them to be the views of the sender's company.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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] Two questions about Directory directive in Apache2 for Windows

2006-09-27 Thread Boyle Owen
 -Original Message-
 From: news [mailto:[EMAIL PROTECTED] On Behalf Of Júlio Maranhão
 Sent: Monday, September 25, 2006 1:57 PM
 To: users@httpd.apache.org
 Subject: [EMAIL PROTECTED] Two questions about Directory 
 directive in Apache2 for Windows
 
 ...
 
 I confess I am lazy about reading the Apache manual. 

So you'd prefer us to read it for you? 

 But I 
 will only have time 
 to read the manual after 1st oct.

Well, I'll only have time to read your mail after then too, so that's alright!

Seriously: reading documentation is an essential part of a software project - 
don't take on a task if you don't have time to do it properly. It is 
unreasonable to expect to be able to configure new software without having time 
to learn how it works.

When you do manage to find the time, you might like to start here: 
http://httpd.apache.org/docs/2.2/sections.html

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 

 
 Cheers,
 
 Júlio Maranhão
 
 
 -
 The official User-To-User support forum of the Apache HTTP 
 Server Project.
 See URL: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]

 
 
This message is for the named person's use only. It may contain confidential, 
proprietary or legally privileged information. No confidentiality or privilege 
is waived or lost by any mistransmission. If you receive this message in error, 
please notify the sender urgently and then immediately delete the message and 
any copies of it from your system. Please also immediately destroy any 
hardcopies of the message. You must not, directly or indirectly, use, disclose, 
distribute, print, or copy any part of this message if you are not the intended 
recipient. The sender's company reserves the right to monitor all e-mail 
communications through their networks. Any views expressed in this message are 
those of the individual sender, except where the message states otherwise and 
the sender is authorised to state them to be the views of the sender's company.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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] dir protected with .htaccess - show a website, not a pop-up - possible?

2006-09-27 Thread Tomasz Chmielewski
I have a couple of directories which I protect with .htaccess/.htpasswd.

So, whenever a user starts a browser and enters http://server/protected, a
pop-up authorization window shows up, and he/she is required to give valid
credentials.

Is there an easy way to replace the pop-up authorization window with a web
page of my own (some text, form with user/pass, help etc.)?

What I mean, I would rather display the user a web page saying You have
to authorize, type your credentials, click here for help..., whenever
he/she enters http://server/protected, http://server/protected/file.pdf or
http://server/protected/info.html, for the first time after starting the
browser.


-- 
Tomasz Chmielewski
http://wpkg.org



-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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] dir protected with .htaccess - show a website, not a pop-up - possible?

2006-09-27 Thread Boyle Owen
 -Original Message-
 From: Tomasz Chmielewski [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, September 27, 2006 11:07 AM
 To: users@httpd.apache.org
 Subject: [EMAIL PROTECTED] dir protected with .htaccess - show a 
 website, not a pop-up - possible?
 
 I have a couple of directories which I protect with 
 .htaccess/.htpasswd.
 
 So, whenever a user starts a browser and enters 
 http://server/protected, a
 pop-up authorization window shows up, and he/she is required 
 to give valid
 credentials.
 
 Is there an easy way to replace the pop-up authorization 
 window with a web
 page of my own (some text, form with user/pass, help etc.)?

No. Not using Basic Authentication...

The pop-up is not sent by apache. It is produced automatically by the
client when apache responds with a 401 Unauthorized.

The only way to do what you want is to use a session-based approach (ie,
cookies) and forget about Basic Auth.

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 

 
 What I mean, I would rather display the user a web page 
 saying You have
 to authorize, type your credentials, click here for help..., whenever
 he/she enters http://server/protected, 
 http://server/protected/file.pdf or
 http://server/protected/info.html, for the first time after 
 starting the
 browser.
 
 
 -- 
 Tomasz Chmielewski
 http://wpkg.org
 
 
 
 -
 The official User-To-User support forum of the Apache HTTP 
 Server Project.
 See URL: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]

 
 
This message is for the named person's use only. It may contain confidential, 
proprietary or legally privileged information. No confidentiality or privilege 
is waived or lost by any mistransmission. If you receive this message in error, 
please notify the sender urgently and then immediately delete the message and 
any copies of it from your system. Please also immediately destroy any 
hardcopies of the message. You must not, directly or indirectly, use, disclose, 
distribute, print, or copy any part of this message if you are not the intended 
recipient. The sender's company reserves the right to monitor all e-mail 
communications through their networks. Any views expressed in this message are 
those of the individual sender, except where the message states otherwise and 
the sender is authorised to state them to be the views of the sender's company.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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] Apache 2.2.3 and 'File Descriptor Limits'

2006-09-27 Thread Kenneth Svee
Hi.

We have an older Apache 1.3 server with 130-ish VirtualHosts on
Solaris 8. This runs PHP and mod_perl with lots of dependencies. We've
built Apache 2.2.3 with the same basic functionality (PHP4.4.4,
mod_perl2.0.2). On this server each vhost has it's own access_log and
error_log, and we want to continue this.

In Apache 1.3 (and 2.0 according to the docs[1][2]) we add
-DHIGH_SLACK_LINE=256 to CFLAGS to increase the number of
descriptions the server can use:

  CFLAGS=-DHIGH_SLACK_LINE=256 ./configure ...

I've ported the old config to Apache 2.2, and we're about 11 vhosts
over the limit on the new build. The 1.3.37-server works. The
2.2.3-server starts if i comment out 11 vhosts. With 10 vhosts
commented out, the server dumps this to the global error_log, and
dies:

  [Tue Sep 26 17:16:41 2006] [error] (24)Too many open files: could
  not open mime types config file /our/path/to/mime.types.
  Configuration Failed

With 9 vhosts removed it dies with the following message:

  Unable to open logs

We used the HIGH_SLACK_LINE-flag for our Apache-2.2.3-build as well,
even though the docs[3] say nothing about it. What's the proper way to
do this for Apache 2.2.3? 

Also: should the flag be put in EXTRA_CFLAGS instead of CFLAGS? What's
the difference?

Thanks for any help on this.

[1] http://httpd.apache.org/docs/1.3/misc/descriptors.html
[2] http://httpd.apache.org/docs/2.0/misc/descriptors.html
[3] http://httpd.apache.org/docs/2.2/vhosts/fd-limits.html


Rgds,
Kenneth Svee

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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_rewrite %{REQUEST_URI} Question

2006-09-27 Thread Rob Wilkerson

On 9/26/06, Bob Ionescu [EMAIL PROTECTED] wrote:

Rob Wilkerson wrote:
 RewriteRule ^/(.*) /landingpage.php?requesturi=%{REQUEST_URI}[QSA,PT]

 This works fine except when I have a document (these documents are
 uploaded by users so I have little control over them) called My
 Resume  Cover Letter.doc, for example.  The , having special
 meaning in the query string, destroys the redirection capability.

 Is there any way around this?

Yes,
RewriteRule ^/  /landingpage.php [PT]

and in /landingpage.php

$requesturi=$_SERVER['REQUEST_URI'];


Okay, that seems to work in PHP, but now I have to get it working in
ColdFusion (sort of a side project of the main project).  The problem
appears to be on their end and I've posted to their mailing list, but
I'd be interested in any thoughts this community may have as well:

ColdFusion does not appear to pass the REQUEST_URI variable in its CGI
scope as expected.  The value there appears to be the landing page URI
rather than the URI originally requested.

Are there any other server variables that might include this
information?  Has anyone ever run into this issue in a ColdFusion
environment before?

Thanks.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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_rewrite %{REQUEST_URI} Question

2006-09-27 Thread Rob Wilkerson

On 9/27/06, Rob Wilkerson [EMAIL PROTECTED] wrote:

On 9/26/06, Bob Ionescu [EMAIL PROTECTED] wrote:
 Rob Wilkerson wrote:
  RewriteRule ^/(.*) /landingpage.php?requesturi=%{REQUEST_URI}[QSA,PT]
 
  This works fine except when I have a document (these documents are
  uploaded by users so I have little control over them) called My
  Resume  Cover Letter.doc, for example.  The , having special
  meaning in the query string, destroys the redirection capability.
 
  Is there any way around this?

 Yes,
 RewriteRule ^/  /landingpage.php [PT]

 and in /landingpage.php

 $requesturi=$_SERVER['REQUEST_URI'];

Okay, that seems to work in PHP, but now I have to get it working in
ColdFusion (sort of a side project of the main project).  The problem
appears to be on their end and I've posted to their mailing list, but
I'd be interested in any thoughts this community may have as well:

ColdFusion does not appear to pass the REQUEST_URI variable in its CGI
scope as expected.  The value there appears to be the landing page URI
rather than the URI originally requested.

Are there any other server variables that might include this
information?  Has anyone ever run into this issue in a ColdFusion
environment before?

Thanks.


I never got this working in ColdFusion, but I finally figured out
another way to do it.  I hadn't realized that mod_rewrite provided me
with the ability to change the environment myself.  This RewriteRule
appears to have given me exactly what I need:

RewriteRule ^/(.*)  /my/landingpage.cfm [E=MY_REQUEST_URI:%{REQUEST_URI},QSA,PT]

Now I can access #CGI.MY_REQUEST_URI# to retrieve the original URI
without worrying about what ColdFusion provides.  More testing will be
done, but it looks pretty solid as far as I can tell.

Thanks again.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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 2.2.3 and 'File Descriptor Limits'

2006-09-27 Thread Jim Jagielski
Kenneth Svee wrote:
 
 I've ported the old config to Apache 2.2, and we're about 11 vhosts
 over the limit on the new build. The 1.3.37-server works. The
 2.2.3-server starts if i comment out 11 vhosts. With 10 vhosts
 commented out, the server dumps this to the global error_log, and
 dies:
 
   [Tue Sep 26 17:16:41 2006] [error] (24)Too many open files: could
   not open mime types config file /our/path/to/mime.types.
   Configuration Failed
 
 With 9 vhosts removed it dies with the following message:
 
   Unable to open logs
 
 We used the HIGH_SLACK_LINE-flag for our Apache-2.2.3-build as well,
 even though the docs[3] say nothing about it. What's the proper way to
 do this for Apache 2.2.3? 
 

It doesn't exist in 2.2.

-- 
===
   Jim Jagielski   [|]   [EMAIL PROTECTED]   [|]   http://www.jaguNET.com/
If you can dodge a wrench, you can dodge a ball.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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 2.2.3 and 'File Descriptor Limits'

2006-09-27 Thread Kenneth Svee
[ Jim Jagielski ]

 Kenneth Svee wrote:
 
 I've ported the old config to Apache 2.2, and we're about 11 vhosts
 over the limit on the new build. The 1.3.37-server works. The
 2.2.3-server starts if i comment out 11 vhosts. With 10 vhosts
 commented out, the server dumps this to the global error_log, and
 dies:
 
   [Tue Sep 26 17:16:41 2006] [error] (24)Too many open files: could
   not open mime types config file /our/path/to/mime.types.
   Configuration Failed
 
 With 9 vhosts removed it dies with the following message:
 
   Unable to open logs
 
 We used the HIGH_SLACK_LINE-flag for our Apache-2.2.3-build as
 well, even though the docs[3] say nothing about it. What's the
 proper way to do this for Apache 2.2.3?

 It doesn't exist in 2.2.

Meaning it will not work, or that it should work automatically? Is
there a way for me to make it work?

Thank you for your reply.


Rgds,
Kenneth Svee

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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 Sometimes Ignoring MaxSpareServers, Running Out of Memory

2006-09-27 Thread Joshua Slive

On 9/27/06, Qingshan Xie [EMAIL PROTECTED] wrote:

Hi! Joshua,  Under the high load condition, if the
number of children spawned is over the ServerLimit or
MaxClients/ThreadsPerChild, what the status of those
extra children is?  Will all those extra children be
in the queue waiting for the process?


Apache will never create children over ServerLimit/MaxClients.

If you are asking what happens to extra connections in that
circumstance, the answer is that they are queued by the OS up to the
limit specified in the ListenBacklog directive.  Connections in excess
of that are simply rejected.

Joshua.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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] Two Nics, several ips aliased to each one

2006-09-27 Thread Joshua Slive

On 9/27/06, Boyle Owen [EMAIL PROTECTED] wrote:


Apache tries to get a domain-name for all listened IP addresses at
startup (eg, for self-referential URLs). if any fail to resolve, you get
the warning. Just make sure all IPs resolve on the server (see
/etc/hosts, /etc/resolv.conf etc..), use nslookup to confirm/test.


It is possible (and recommended )to get apache to startup without
doing any name resolution.  See:
http://httpd.apache.org/docs/1.3/dns-caveats.html

Beyond that, if you want help with your vhost setup, you'll need to
give us some idea of what config you are using.

Joshua.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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] Got Segmentation fault after load mod_ldap and mod_auth_ldap

2006-09-27 Thread Joshua Slive

On 9/26/06, Qingshan Xie [EMAIL PROTECTED] wrote:

Hi! All,

  We have Apache-2.0.54 compiled with worker mpm.
After load mod_ldap and mod_auth_ldap as below in
httpd.conf,

LoadModule ldap_module modules/mod_ldap.so
LoadModule auth_ldap_module modules/mod_auth_ldap.so

LDAPSharedCacheSize 0
LDAPCacheEntries 1024
LDAPCacheTTL 600
LDAPOpCacheEntries 1024
LDAPOpCacheTTL 60

when started it, it threw segmentation fault in
error_log and no child created successfully,

[Tue Sep 26 12:03:07 2006] [notice] child pid 28931
exit signal Segmentation fault (11)

Can someone tell me what is the root-cause and how to
fix it?


A segmentation fault can be cause by any number of problems.  To get
details, use the instructions here:
http://httpd.apache.org/dev/debugging.html#crashes

Joshua.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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] malformed header from script from include files about META tags

2006-09-27 Thread S.A. Birl
On Sep 26, 2006, S.A. Birl ([EMAIL PROTECTED])...:

Birl:  When I take out the META tag from .headers.shtml, no error message.


I was playing around with .headers.html some more.  Seems that Apache
doesnt like
meta name=
but will accept
meta http-equiv=


so I dont suppose there's a equiv for
meta name=robots content=Follow, NoArchive, Index




Thanks
 Birl

Please do not CC me responses to my own posts.
I'll read the responses on the list.

Archives   http://mail-archives.apache.org/mod_mbox/httpd-users/

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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 2.2.3 and 'File Descriptor Limits'

2006-09-27 Thread Jim Jagielski


On Sep 27, 2006, at 9:13 AM, Kenneth Svee wrote:


[ Jim Jagielski ]


Kenneth Svee wrote:


I've ported the old config to Apache 2.2, and we're about 11 vhosts
over the limit on the new build. The 1.3.37-server works. The
2.2.3-server starts if i comment out 11 vhosts. With 10 vhosts
commented out, the server dumps this to the global error_log, and
dies:

  [Tue Sep 26 17:16:41 2006] [error] (24)Too many open files: could
  not open mime types config file /our/path/to/mime.types.
  Configuration Failed

With 9 vhosts removed it dies with the following message:

  Unable to open logs

We used the HIGH_SLACK_LINE-flag for our Apache-2.2.3-build as
well, even though the docs[3] say nothing about it. What's the
proper way to do this for Apache 2.2.3?


It doesn't exist in 2.2.


Meaning it will not work, or that it should work automatically? Is
there a way for me to make it work?



Apache 2.2 doesn't take any special care in adjusting
fd's in the way that the optional slack'ing in Apache 1.3
did. The assumption is that the admin takes care of
ensuring that the kernel allows for sufficient fd's
or, if that's not possible, one configures Apache to
be as lean and mean with fd's as possible (eg: combining
all CustomLogs and ErrorLogs, using worker MPM, etc...)


-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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] Chaging CR/LF on-the-fly with mod_publisher

2006-09-27 Thread Oliver Schulze L.

It is posible the modify the header info also?
I'm having a problem with the device that is sending non 100% html
compliant headers.

Thanks
Oliver

Oliver Schulze L. wrote:

Hi.
I'm doing a ProxyPass in apache 2.0 of a IP camera.

The camara has a built-in webserver and I'm having a problem
the that webserver, because it sends all the http files in DOS mode,
that is, having CR/LF as the newline separator.

In the traffic flow, there is some squid proxy that does not like this
kind of CR/LF and the squid generate the errors:
1158877929.909  0 192.168.1.1 TCP_DENIED/400 1558 GET 
error:missing-http-ident - NONE/- text/html


Also, if I do a wget of a file in the Ip camera, the file ends up in 
DOS format.


My idea is to use mod_publisher or some mod to convert from CR/LF on 
te fly
in apache. So, every squid that is the traffic flow does not DENIED 
the file.


I tried this already:

VirtualHost 
...
ProxyPass / http://192.168.xx.yy/
ProxyPassReverse / http://192.168.xx.yy/
SetOutputFilter  markup-publisher
MLRewriteRule http://192.168.xx.yy /
MLOutputMode HTML
MLRewriteOptions +events +attributes +characters +cdata
MLRewriteRule \r\n \n Rn
SetOutputFilter  charset-lite
CharsetSourceEnc UTF-8
CharsetDefault ISO-8859-1
/VirtualHost

Thanks
Oliver



--
Oliver Schulze L.
Get my e-mail after a captcha test in: http://tinymailto.com/oliver


-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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] Apache 2 mod_proxy mod_rewrite questions

2006-09-27 Thread Jeff DeFord

All:

I have some questions regarding the way to implement
Apache as a reverse proxy server using mod_rewrite in order to mask the real
URLs. Users will connect to the proxy, then the proxy will connect to
the real server that is listening on port 8050 (SSL)


So far this is what I have working:

Proxy server listining on port 80 and on 443 and I am
using a rewrite rule to force a rediect to 443 only as shown below:

## Redirect all incoming HTTP requests to HTTPS locally before proxying.
RewriteRule ^/(.*) https://proxy.server.com/$1 [R,L]

This works just as expected as my initial http connection gets forced to https.

Then I have the following proxy statements set up as shown below for
the default SSL virtual host on the proxy server:

ProxyRequests Off
SSLProxyEngineOn
SSLProxyCACertificateFile conf/cacerts.crt
ProxyPreserveHost On
ProxyPass / https://real.server.com:8050/
ProxyPassReverse  / https://real.server.com:8050/

This all works great for all of the base URLs on the root level. The home
page URLs on the real server get rewritten and appear to have
originated from the proxy server when I mouse over or
click on a root-level URL.

However, any URL with a subdirectory below the root level on the real
server does not get rewritten and the real URL (the complete URL on
the real server including the port number 8050) is visible on the
proxied web page.

Now, how do go I about getting this to work for all of the URLs with
subdirectories? I have read through the documentation and I am stuck.

Do I need rewrite rules for each URL that has a subdirectly below the
root with a subsequent ProxyPass and ProxyPassReverse statement?

Do my rewrite rules need to use the proxy flag [P]? Or will they work
once written to mimic the root-level rules?

Many thanks in advance for any help that you may provide


-=jeff

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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 2.2.3 and 'File Descriptor Limits'

2006-09-27 Thread Joe Orton
The SLACK_LINE stuff was about preserving low-numbered fds for use by 
stdio because of the Solaris 8-bit fd limit with stdio.  It's not in 2.x 
because 2.x doesn't use stdio for logging.

If you're hitting fd limits in 2.2 it is only because of kernel fd 
limits which need fixing with limit/ulimit/etc (unless you suspect fd 
leaks somewhere; truss will tell you).

joe

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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] malformed header from script from include files about META tags

2006-09-27 Thread Nick Kew
On Wednesday 27 September 2006 15:05, S.A. Birl wrote:
 On Sep 26, 2006, S.A. Birl
 ([EMAIL PROTECTED])...:

 Birl:  When I take out the META tag from .headers.shtml, no error message.

You must have apache configured to run .headers.shtml as a script.

What is including it?  A static file, or a dynamically-generated page?
Is .headers.shtml in the same directory or URL-space?

 I was playing around with .headers.html some more.  Seems that Apache

.headers.html or .shtml?

-- 
Nick Kew

Application Development with Apache - the Apache Modules Book
http://www.prenhallprofessional.com/title/0132409674

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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] Chaging CR/LF on-the-fly with mod_publisher

2006-09-27 Thread Nick Kew
On Wednesday 27 September 2006 15:22, Oliver Schulze L. wrote:
 It is posible the modify the header info also?
 I'm having a problem with the device that is sending non 100% html
 compliant headers.

Hmmm, did you get my reply to your original post?
It seems that most (all?) of what I sent from OSCon to the Apache
lists last week may be lost in some black hole.

-- 
Nick Kew

Application Development with Apache - the Apache Modules Book
http://www.prenhallprofessional.com/title/0132409674

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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] Apache httpd and the DST change in 2007

2006-09-27 Thread Marco Lavoie

 
Hi,

I have read the FAQ, I did a lots of queries in Bugzilla and on Google but 
didn't find an answer to my question.

Do you know if there are known issues with Apache regarding the US (and/or 
Canada) DST change in 2007 ?

I am using versions 2.2.0 and 2.0.59 on Solaris.

I need an answer that can convince my project manager that Apache won't have 
problem ;)


Thanks,

 
Marco Lavoie

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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] Strange Delay

2006-09-27 Thread Andrew White
I have doing some stress tests on my apache2 install (using simple curl
posts) and have noticed a strange delay after it handles a large number
of requests (150-200+). The strange part is that during the delay, cpu
usage is 0% and memory usage doesn't change. So what's happening in this
2 second void? Is there a way to eliminate this delay?

Some notes: 
The post data is small (482 bytes). 
The requests are streamed in one after another. I don't know if curl is
doing any parallel threading in the background. 
The handler simply echos the data back out so no fancy processing.
All traffic is on an isolated LAN.
The delays seems to occur at regular intervals.

Thanks,
Andrew


-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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] Chaging CR/LF on-the-fly with mod_publisher

2006-09-27 Thread Oliver Schulze L.

Hi Nick,
no, I did not received it. :(
I'm glad you answer me, could you please re-send it to the list
or to me?

Many thanks!
Oliver

Nick Kew wrote:

On Wednesday 27 September 2006 15:22, Oliver Schulze L. wrote:
  

It is posible the modify the header info also?
I'm having a problem with the device that is sending non 100% html
compliant headers.



Hmmm, did you get my reply to your original post?
It seems that most (all?) of what I sent from OSCon to the Apache
lists last week may be lost in some black hole.

  


--
Oliver Schulze L.
Get my e-mail after a captcha test in: http://tinymailto.com/oliver


-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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] Location of rewrite rules when using mod_proxy in 2.2

2006-09-27 Thread David Salisbury

Well, you may need Rewrite or you may not.. but for the immediate problem
below have you checked into using the ProxyPass directives outside of the 
VirtualHost blocks?

...something along the lines of

ProxyPass /ajp://localhost:8009/
ProxyPassReverse / ajp://domain.com:8009

-ds

- Original Message - 
From: Chris Hane [EMAIL PROTECTED]

To: users@httpd.apache.org
Sent: Wednesday, September 27, 2006 9:08 AM
Subject: [EMAIL PROTECTED] Location of rewrite rules when using mod_proxy in 2.2



I am about to upgrade from 2.0 to 2.2.

Our current configuration is pretty simple.  We have a couple of virtual 
hosts and are using mod_jk to talk to 3 applications in Tomcat.  The 
mod_jk rules are not in a VirtualHost but are in the top level of the 
http.conf file.  This setup allows any domain to use the application. An 
example of the configuration is:


#[jboss]
JkMount /backoffice-demo/faces* worker2
#[tomcat]
JkMount /backoffice-demo* worker1

Since we are moving to 2.2, we decide to move to mod_proxy_ajp. However, 
the rewrite rules seem to have to be in a VirtualHost block in order to 
work.  If we have them at the top level (not in a VirtualHost) block, 
they are never executed.  Is there a way to have a set of rewrite rules 
apply to ALL requests regardless of the requested host domain?


An example of the rewrite rule is (just in case it makes a difference):

#[jboss]
RewriteCond %{REQUEST_URI} /backoffice-demo/faces(.*)
RewriteRule ^/(.*) ajp://localhost:9009/$1 [P]

#[tomcat]
RewriteCond %{REQUEST_URI} /backoffice-local(.*)
RewriteRule ^/(.*) ajp://localhost:8009/$1 [P]

These work great if there are not any VirtualHosts or if they are in a 
VirtualHost.  However, we want any domain that this server handles to be 
able to use these rewrites.


TIA,
Chris


-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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 URL: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] apache-worker bugged child, cannot close connection

2006-09-27 Thread Albert Poon
I will keep it short:

Related settings:
ServerLimit   8
StartServers  8
MaxClients  512
MinSpareThreads 512
MaxSpareThreads   0
ThreadsPerChild  64
MaxRequestsPerChild   0

Problem: (well, see for yourself)

Current Time: Wednesday, 27-Sep-2006 23:34:09 HKT 
Restart Time: Wednesday, 27-Sep-2006 06:00:20 HKT 
Parent Server Generation: 9 
Server uptime: 17 hours 33 minutes 49 seconds 
Total accesses: 781692 - Total Traffic: 28.2 GB 
CPU Usage: u1129.62 s1146.09 cu7.51563 cs0 - 3.61% CPU load 
12.4 requests/sec - 468.0 kB/second - 37.9 kB/request 
256 requests currently being processed, 256 idle workers 


_W__C_C___K_K_KWC_WW
_C___K_W__W__W__KWK__WK___WC__W_K__K_W_C___W

__W_W_KWK__K_K_W_C__C___

___WWKK_CW__W__C_W_C__C__W_W__W_W___
CC__W_W___W_W___W_K_C_KK

Eventually all lines will be full of W and the server will reject all new 
connections.

Tried but no good:
EnableMMAP On/Off
EnableSendfile On/Off
KeepAlive On/Off

Last words:
PLEASE HELP!

Best Regards,

Albert Poon


-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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] Location of rewrite rules when using mod_proxy in 2.2

2006-09-27 Thread Chris Hane
I will try to use the ProxyPass directive.  I think I tried that first 
and ran into a limitation that I want to do three things:

1) only redirect if the requests starts with /backoffice-production
2) if #1 then redirect to jboss on port 9009 if the url ends with *.its
3) otherwise redirect to tomcat on port 8009

Does ProxyPass accept wildcards?  I'll give it a try here shortly.

If there is a better way to accomplish what I am trying to do in those 
three requirements without using rewriting, I would appreciate a 
pointer.  I had searched the lists for similar criteria and thought 
Rewriting was the way to go.


The following are the all the entries I added to get this to work 
without any VirtualHost blocks.  Now I'm trying to get it to work with 
VirtualHosts.  Here are all the changes I made to the stock httpd.conf 
file (beyond standard things like ServerName and DocumentRoot).



part of httpd.conf

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so

ProxyRequests Off

Proxy *
   Order deny,allow
   Allow from all
/Proxy

RewriteEngine on
RewriteLogLevel 5
RewriteLog rewrite.log

# JBoss
#example URL  some.domain.com/backoffice-production/some/path/edit.its
#example URL  other.domain.com/backoffice-production/other/path/edit.its

RewriteCond %{REQUEST_URI} /backoffice-production/(.*).its(.*)
RewriteRule ^/(.*) ajp://localhost:9009/$1 [P]

#example URL  some.domain.com/backoffice-production/js/functions.js
RewriteCond %{REQUEST_URI} /backoffice-production/js(.*)
RewriteRule ^/(.*) ajp://localhost:9009/$1 [P]


# TOMCAT
#example URL  some.domain.com/backoffice-production/other/path2/edit.jsf

RewriteCond %{REQUEST_URI} /backoffice-production(.*)
RewriteRule ^/(.*) ajp://localhost:8009/$1 [P]

/part of httpd.conf

Thanks,
Chris



David Salisbury wrote:

Well, you may need Rewrite or you may not.. but for the immediate problem
below have you checked into using the ProxyPass directives outside of 
the VirtualHost blocks?


...something along the lines of

ProxyPass /ajp://localhost:8009/
ProxyPassReverse / ajp://domain.com:8009

-ds

- Original Message - From: Chris Hane [EMAIL PROTECTED]
To: users@httpd.apache.org
Sent: Wednesday, September 27, 2006 9:08 AM
Subject: [EMAIL PROTECTED] Location of rewrite rules when using mod_proxy in 
2.2




I am about to upgrade from 2.0 to 2.2.

Our current configuration is pretty simple.  We have a couple of 
virtual hosts and are using mod_jk to talk to 3 applications in 
Tomcat.  The mod_jk rules are not in a VirtualHost but are in the top 
level of the http.conf file.  This setup allows any domain to use the 
application. An example of the configuration is:


#[jboss]
JkMount /backoffice-demo/faces* worker2
#[tomcat]
JkMount /backoffice-demo* worker1

Since we are moving to 2.2, we decide to move to mod_proxy_ajp. 
However, the rewrite rules seem to have to be in a VirtualHost block 
in order to work.  If we have them at the top level (not in a 
VirtualHost) block, they are never executed.  Is there a way to have a 
set of rewrite rules apply to ALL requests regardless of the requested 
host domain?


An example of the rewrite rule is (just in case it makes a difference):

#[jboss]
RewriteCond %{REQUEST_URI} /backoffice-demo/faces(.*)
RewriteRule ^/(.*) ajp://localhost:9009/$1 [P]

#[tomcat]
RewriteCond %{REQUEST_URI} /backoffice-local(.*)
RewriteRule ^/(.*) ajp://localhost:8009/$1 [P]

These work great if there are not any VirtualHosts or if they are in a 
VirtualHost.  However, we want any domain that this server handles to 
be able to use these rewrites.


TIA,
Chris


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

See URL: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 URL: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 URL: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-worker bugged child, cannot close connection

2006-09-27 Thread Joshua Slive

On 9/27/06, Albert Poon [EMAIL PROTECTED] wrote:


Problem: (well, see for yourself)

Current Time: Wednesday, 27-Sep-2006 23:34:09 HKT
Restart Time: Wednesday, 27-Sep-2006 06:00:20 HKT
Parent Server Generation: 9
Server uptime: 17 hours 33 minutes 49 seconds
Total accesses: 781692 - Total Traffic: 28.2 GB
CPU Usage: u1129.62 s1146.09 cu7.51563 cs0 - 3.61% CPU load
12.4 requests/sec - 468.0 kB/second - 37.9 kB/request
256 requests currently being processed, 256 idle workers


_W__C_C___K_K_KWC_WW
_C___K_W__W__W__KWK__WK___WC__W_K__K_W_C___W

__W_W_KWK__K_K_W_C__C___

___WWKK_CW__W__C_W_C__C__W_W__W_W___
CC__W_W___W_W___W_K_C_KK

Eventually all lines will be full of W and the server will reject all new
connections.


Attach to some of the stuck processes with a debugger (those that
sit in W on the same request forever) and see what they are up to:
http://httpd.apache.org/dev/debugging.html#backtrace

Joshua.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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-worker bugged child, cannot close connection

2006-09-27 Thread Albert Poon
On Wed, 27 Sep 2006 12:57:16 -0400, Joshua Slive wrote
 On 9/27/06, Albert Poon [EMAIL PROTECTED] wrote:
 
  Problem: (well, see for yourself)
 
  Current Time: Wednesday, 27-Sep-2006 23:34:09 HKT
  Restart Time: Wednesday, 27-Sep-2006 06:00:20 HKT
  Parent Server Generation: 9
  Server uptime: 17 hours 33 minutes 49 seconds
  Total accesses: 781692 - Total Traffic: 28.2 GB
  CPU Usage: u1129.62 s1146.09 cu7.51563 cs0 - 3.61% CPU load
  12.4 requests/sec - 468.0 kB/second - 37.9 kB/request
  256 requests currently being processed, 256 idle workers
 
  
  _W__C_C___K_K_KWC_WW
  _C___K_W__W__W__KWK__WK___WC__W_K__K_W_C___W
  
  __W_W_KWK__K_K_W_C__C___
  
  ___WWKK_CW__W__C_W_C__C__W_W__W_W___
  CC__W_W___W_W___W_K_C_KK
 
  Eventually all lines will be full of W and the server will reject all 
new
  connections.
 
 Attach to some of the stuck processes with a debugger (those that
 sit in W on the same request forever) and see what they are up to:
 http://httpd.apache.org/dev/debugging.html#backtrace
 
 Joshua.
 
 -
 The official User-To-User support forum of the Apache HTTP Server Project.
 See URL: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]

Thanks Joshua!

However I am not familiar with gdb... thus I CP the result here... sorry if 
its too long...

GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show warranty for details.
This GDB was configured as i386-marcel-freebsd...(no debugging symbols 
found)...
Attaching to program: /usr/local/sbin/httpd, process 23223
Reading symbols from /lib/libm.so.4...(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.4
Reading symbols from /usr/local/lib/libaprutil-1.so.2...(no debugging symbols 
found)...done.
Loaded symbols for /usr/local/lib/libaprutil-1.so.2
Reading symbols from /usr/local/lib/libexpat.so.6...(no debugging symbols 
found)...done.
Loaded symbols for /usr/local/lib/libexpat.so.6
Reading symbols from /usr/local/lib/libiconv.so.3...(no debugging symbols 
found)...done.
Loaded symbols for /usr/local/lib/libiconv.so.3
Reading symbols from /usr/local/lib/libapr-1.so.2...(no debugging symbols 
found)...done.
Loaded symbols for /usr/local/lib/libapr-1.so.2
Reading symbols from /lib/libcrypt.so.3...(no debugging symbols found)...done.
Loaded symbols for /lib/libcrypt.so.3
Reading symbols from /usr/lib/libpthread.so.2...(no debugging symbols 
found)...done.

warning: Unable to get location for thread creation breakpoint: generic error
[New Thread 0x8377a00 (sleeping)]
[New Thread 0x8377800 (sleeping)]
[New Thread 0x8377600 (sleeping)]
[New Thread 0x8377400 (sleeping)]
[New Thread 0x8377200 (sleeping)]
[New Thread 0x8377000 (sleeping)]
[New Thread 0x8356e00 (sleeping)]
[New Thread 0x8356c00 (sleeping)]
[New Thread 0x8356a00 (sleeping)]
[New Thread 0x8356800 (sleeping)]
[New Thread 0x8356600 (sleeping)]
[New Thread 0x8356400 (sleeping)]
[New Thread 0x8356200 (sleeping)]
[New Thread 0x8356000 (sleeping)]
[New Thread 0x8335e00 (sleeping)]
[New Thread 0x8335c00 (sleeping)]
[New Thread 0x8335a00 (sleeping)]
[New Thread 0x8335800 (sleeping)]
[New Thread 0x8335600 (sleeping)]
[New Thread 0x8335400 (sleeping)]
[New Thread 0x8335200 (sleeping)]
[New Thread 0x8335000 (sleeping)]
[New Thread 0x8314e00 (sleeping)]
[New Thread 0x8314c00 (sleeping)]
[New Thread 0x8314a00 (sleeping)]
[New Thread 0x8314800 (sleeping)]
[New Thread 0x8314600 (sleeping)]
[New Thread 0x8314400 (sleeping)]
[New Thread 0x8314200 (sleeping)]
[New Thread 0x8314000 (sleeping)]
[New Thread 0x82f6e00 (sleeping)]
[New Thread 0x82f6c00 (sleeping)]
[New Thread 0x82f6a00 (sleeping)]
[New Thread 0x82f6800 (sleeping)]
[New Thread 0x82f6600 (sleeping)]
[New Thread 0x82f6400 (sleeping)]
[New Thread 0x82f6200 (sleeping)]
[New Thread 0x82f6000 (sleeping)]
[New Thread 0x82e5e00 (sleeping)]
[New Thread 0x82e5c00 (sleeping)]
[New Thread 0x82e5a00 (sleeping)]
[New Thread 0x82e5800 (sleeping)]
[New Thread 0x82e5600 (sleeping)]
[New Thread 0x82e5400 (sleeping)]
[New Thread 0x82e5200 (sleeping)]
[New Thread 0x82e5000 (sleeping)]
[New Thread 0x82d4e00 (sleeping)]
[New Thread 0x82d4c00 (sleeping)]
[New Thread 0x82d4a00 (sleeping)]
[New Thread 0x82d4800 (sleeping)]
[New Thread 

Re: [EMAIL PROTECTED] apache-worker bugged child, cannot close connection

2006-09-27 Thread Joshua Slive

On 9/27/06, Albert Poon [EMAIL PROTECTED] wrote:


However I am not familiar with gdb... thus I CP the result here... sorry if
its too long...


I'm not an expert in this either but...

It looks like you are using the worker mpm, in which case the
instructions I referenced tell you to use thread apply bt all

But that brings up another point.  You seem to be using the worker mpm
in conjuction with php.  Have you read all the warning about this?
Are you sure that all the libraries you are using are threadsafe?
Have you tried using the prefork mpm to see if the problem goes away?

Joshua.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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-worker bugged child, cannot close connection

2006-09-27 Thread Joshua Slive

On 9/27/06, Joshua Slive [EMAIL PROTECTED] wrote:

On 9/27/06, Albert Poon [EMAIL PROTECTED] wrote:

 However I am not familiar with gdb... thus I CP the result here... sorry if
 its too long...

I'm not an expert in this either but...

It looks like you are using the worker mpm, in which case the
instructions I referenced tell you to use thread apply bt all

But that brings up another point.  You seem to be using the worker mpm
in conjuction with php.  Have you read all the warning about this?
Are you sure that all the libraries you are using are threadsafe?
Have you tried using the prefork mpm to see if the problem goes away?


Oops... It's actually thread apply all bt full, and it is in a
different part of the instructions than what I referenced for you.

Joshua.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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] running a virtual server under a different user

2006-09-27 Thread Chris Cheshire

I have an existing Apache setup (2.0.59 on Solaris 8 x86) that I am
trying to install Subversion on.

The main server is running as user nobody, group nogroup, and is
started via init.d at bootup.

I don't want to create local (filesystem) permissions for the
subversion repository as nobody/nogroup so I need to be able to run
the virtual host as the user and group the subversion repository is
owned by.

Is there any way to do this? I looked through the configuration and
can't find anything. suexec isn't installed, and doesn't appear to be
the right option as Subversion runs through the DAV module, not SSI or
CGI.

Or do I need to create a separate config, have it listen on a
different port with a different user/group at bootup start another
instance of httpd using the new config file?

Thanks

Chris

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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-worker bugged child, cannot close connection

2006-09-27 Thread Albert Poon
On Wed, 27 Sep 2006 13:38:17 -0400, Joshua Slive wrote
 On 9/27/06, Joshua Slive [EMAIL PROTECTED] wrote:
  On 9/27/06, Albert Poon [EMAIL PROTECTED] wrote:
 
   However I am not familiar with gdb... thus I CP the result here... 
sorry if
   its too long...
 
  I'm not an expert in this either but...
 
  It looks like you are using the worker mpm, in which case the
  instructions I referenced tell you to use thread apply bt all
 
  But that brings up another point.  You seem to be using the worker mpm
  in conjuction with php.  Have you read all the warning about this?
  Are you sure that all the libraries you are using are threadsafe?
  Have you tried using the prefork mpm to see if the problem goes away?
 
 Oops... It's actually thread apply all bt full, and it is in a
 different part of the instructions than what I referenced for you.
 
 Joshua.
 
 -
 The official User-To-User support forum of the Apache HTTP Server Project.
 See URL: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]

I am sure PHP4 was compiled threadsafe, because I had to recompile it when I 
switched from prefork to worker. I recompiled the PHP4 together with all 
extensions too. I have to use worker mpm because the server has limited RAM...

Best Regards,

Albert Poon


-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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-worker bugged child, cannot close connection

2006-09-27 Thread Joshua Slive

On 9/27/06, Albert Poon [EMAIL PROTECTED] wrote:


I am sure PHP4 was compiled threadsafe, because I had to recompile it when I
switched from prefork to worker. I recompiled the PHP4 together with all
extensions too. I have to use worker mpm because the server has limited RAM...


It's not simply a question of compiling php4 as threadsafe.  All the
supporting libraries that are used by php must also be threadsafe.
Here's what the php developers have to say on the subject:
http://www.php.net/manual/en/faq.installation.php#faq.installation.apache2

That is not to say it is impossible to run php with worker, but if you
haven't looked carefully at the thread-safety issue, then I certainly
wouldn't recommend it.  Stuck processes (especially when they are
stuck in pthread mutexes) can most certainly be a symptom of
thread-unsafe libraries.

Joshua.




Best Regards,

Albert Poon


-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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 URL: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] running a virtual server under a different user

2006-09-27 Thread Joshua Slive

On 9/27/06, Chris Cheshire [EMAIL PROTECTED] wrote:


Is there any way to do this? I looked through the configuration and
can't find anything. suexec isn't installed, and doesn't appear to be
the right option as Subversion runs through the DAV module, not SSI or
CGI.

Or do I need to create a separate config, have it listen on a
different port with a different user/group at bootup start another
instance of httpd using the new config file?


Yes, you need to use a separate instance of httpd to run under a
separate userid.  If necessary, you can use ProxyPass/ProxyPassReverse
to bring the separate instance into the same namespace as the main
server.

Joshua.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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-worker bugged child, cannot close connection

2006-09-27 Thread Albert Poon
On Wed, 27 Sep 2006 14:00:33 -0400, Joshua Slive wrote
 On 9/27/06, Albert Poon [EMAIL PROTECTED] wrote:
 
  I am sure PHP4 was compiled threadsafe, because I had to recompile it 
when I
  switched from prefork to worker. I recompiled the PHP4 together with all
  extensions too. I have to use worker mpm because the server has limited 
RAM...
 
 It's not simply a question of compiling php4 as threadsafe.  All the
 supporting libraries that are used by php must also be threadsafe.
 Here's what the php developers have to say on the subject:
 http://www.php.net/manual/en/faq.installation.php#faq.installation.apache2
 
 That is not to say it is impossible to run php with worker, but if 
 you haven't looked carefully at the thread-safety issue, then I certainly
 wouldn't recommend it.  Stuck processes (especially when they are
 stuck in pthread mutexes) can most certainly be a symptom of
 thread-unsafe libraries.
 
 Joshua.
 
 
  Best Regards,
 
  Albert Poon
 
 
  -
  The official User-To-User support forum of the Apache HTTP Server Project.
  See URL: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 URL: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]

Alright... I'll try digging into everything I installed on the box... Thanks 
Joshua~

Best Regards,

Albert Poon


-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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] running a virtual server under a different user

2006-09-27 Thread Chris Cheshire

Thanks Joshua

I read the docs on the proxy directive and I am a little confused.

Is it actually possible to have
myhost.mydomain.com:80 (nobody/nogroup) running on one instance

and then somehow have
myhost.mydomain.com:80/svn (svn/svngroup) running on another instance?

This would be the ideal situation, but I think there will be a port conflict.

Should I just have the second instance configured as

svn.mydomain.com:3690

instead? (3690 is the port for svn, but since I am not using inetd or
the daemon, I might as well use it here)

Thanks

Chris

On 9/27/06, Joshua Slive [EMAIL PROTECTED] wrote:

On 9/27/06, Chris Cheshire [EMAIL PROTECTED] wrote:

 Is there any way to do this? I looked through the configuration and
 can't find anything. suexec isn't installed, and doesn't appear to be
 the right option as Subversion runs through the DAV module, not SSI or
 CGI.

 Or do I need to create a separate config, have it listen on a
 different port with a different user/group at bootup start another
 instance of httpd using the new config file?

Yes, you need to use a separate instance of httpd to run under a
separate userid.  If necessary, you can use ProxyPass/ProxyPassReverse
to bring the separate instance into the same namespace as the main
server.

Joshua.


-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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] running a virtual server under a different user

2006-09-27 Thread Joshua Slive

On 9/27/06, Chris Cheshire [EMAIL PROTECTED] wrote:

I read the docs on the proxy directive and I am a little confused.

Is it actually possible to have
myhost.mydomain.com:80 (nobody/nogroup) running on one instance

and then somehow have
myhost.mydomain.com:80/svn (svn/svngroup) running on another instance?



No.  But you can make it look that way from the outside.  For example,
if you have the other instance running at svn.mydomain.com:3690, then
include the following in the myhost config:

ProxyPass /svn http://svn.mydomain.com:3690/svn
ProxyPassReverse /svn http://svn.mydomain.com:3690/svn

Then any access to http://myhost.domain.com/svn will transparently get
served from the 3690 server.

(I do recommend keeping the directory-structure parallel; ie, make
sure the directory /svn/ on the front-end is goes to /svn/ on the
backend.  This avoids problems with broken relative links.)

Joshua.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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] Installation problem for apache2.2.3

2006-09-27 Thread Kong, Alan
Title: Installation problem for apache2.2.3






Hi all,


I am having a problem when trying to install apache2.2.3.


I am running hpux11.00, there is apache1.3.3 running as well. Now I try to install apache2.2.3 with php, so that the enable-so is require on the installation. However, when I run make, it thrown an ld: Can't find dependent library libapr-1.sl.2 error. I also tried to build apr and apr-util separately and configure apache with --with-apr and --with-apr-util, it still give me the same error. There is no permission issue, LDFLAGS is set pointing to the path where libapr-1.sl.2 is located, LD_LIBRARY_PATH is set, SHLIB_PATH is set, and added the record to /etc/ld.so.conf, but the error just isn't going away.

Anyone has any idea of what did I miss?


Thanks in advance,

Alan





Re: [EMAIL PROTECTED] malformed header from script from include files about META tags

2006-09-27 Thread S.A. Birl
On Sep 27, 2006, Nick Kew ([EMAIL PROTECTED]) typed:

Nick:  On Wednesday 27 September 2006 15:05, S.A. Birl wrote:
Nick:   On Sep 26, 2006, S.A. Birl
Nick:   ([EMAIL PROTECTED])...:
Nick:  
Nick:   Birl:  When I take out the META tag from .headers.shtml, no error 
message.
Nick:
Nick:  You must have apache configured to run .headers.shtml as a script.


Nay.  If that were the case, Id see A LOT more errors in the error_log.

My httpd.conf for 2.2.3 is virtually identical to the 2.0.51 that
I upgraded from.




Nick:  What is including it?  A static file, or a dynamically-generated page?
Nick:  Is .headers.shtml in the same directory or URL-space?


(
I see that my last message never made it to the list.  It would have
been sent prior to your response and prehaps explained my situation
better.  It had 6 attached files.
)


http://concept.temple.edu/testing_includes/  should explain it.






Nick:   I was playing around with .headers.html some more.  Seems that Apache
Nick:
Nick:  .headers.html or .shtml?

.shtml
Good catch.




Thanks
 Birl

Please do not CC me responses to my own posts.
I'll read the responses on the list.

Archives   http://mail-archives.apache.org/mod_mbox/httpd-users/

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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] Running Apache with DocumentRoot on a Mapped Drive

2006-09-27 Thread Christian Toledo
Is it possible to run Apache Win32 with a DocumentRoot pointing to a
network drive? The servers are on a Workgroup (one with data content and
the other running Apache) and I have setup identical users on both
systems with local admin rights. I have set the Apache service to use
this local user but the service fails to start. The drive is mapped and
I am able to run Apache from the console but it doesn't seem to want to
load using a mapped drive and my guess is that it's due to permissions
issue. I have read this works with servers in the same domain and was
wondering if this was possible with servers in a workgroup
(stand-alone). Thanx.

Christian Toledo
Web Administrator

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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] running a virtual server under a different user

2006-09-27 Thread Chris Cheshire

Thank you for the quick help Joshua :)

On 9/27/06, Joshua Slive [EMAIL PROTECTED] wrote:

On 9/27/06, Chris Cheshire [EMAIL PROTECTED] wrote:
 I read the docs on the proxy directive and I am a little confused.

 Is it actually possible to have
 myhost.mydomain.com:80 (nobody/nogroup) running on one instance

 and then somehow have
 myhost.mydomain.com:80/svn (svn/svngroup) running on another instance?


No.  But you can make it look that way from the outside.  For example,
if you have the other instance running at svn.mydomain.com:3690, then
include the following in the myhost config:

ProxyPass /svn http://svn.mydomain.com:3690/svn
ProxyPassReverse /svn http://svn.mydomain.com:3690/svn

Then any access to http://myhost.domain.com/svn will transparently get
served from the 3690 server.

(I do recommend keeping the directory-structure parallel; ie, make
sure the directory /svn/ on the front-end is goes to /svn/ on the
backend.  This avoids problems with broken relative links.)

Joshua.



-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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] Apache 2.2.3 CGI OS 5 Issue under load

2006-09-27 Thread Stan Kaushanskiy

Hi All,

I am running a cgi program through Apache 2.2.3.  Usually everything
works fine,
but sometimes under load and after about 1-2 hours continuous requests,
I get the following error in the apache log:

[Tue Sep 26 19:08:16 2006] [error] [client 192.168.26.155] (OS 5)Access
is denied.  : couldn't set child process attributes: E:/php/php-cgi.exe
[Tue Sep 26 19:08:16 2006] [error] [client 192.168.26.155] (OS 5)Access
is denied.  : couldn't spawn child process: E:/php/php-cgi.exe

[Wed Sep 27 11:25:22 2006] [error] [client 192.168.26.155] (OS 5)Access
is denied.  : couldn't set child process attributes:
E:/cgi-bin/UploadProcessor.exe
[Wed Sep 27 11:25:22 2006] [error] [client 192.168.26.155] (OS 5)Access
is denied.  : couldn't spawn child process: E:/cgi-bin/UploadProcessor.exe

This error happens with both PHP 5.1.6 as well as with a CGI I compiled
from C++, so it cannot be a php issue.

I have around 50 - 150 clients hitting the server every 10 seconds.  The
CGI processes are long-lived they take 1 second to 3 minutes to do
their thing.
I have not noticed the lifetime of the cgi processes affecting this
behavior.

When these errors happen the clients get 500 errors.

Prior to 2.2.3 I ran Apache 2.0.52 and the same issues happened.

My Setup:
P4 3Ghz HT
1 GB Ram
Windows XP Pro
Apache 2.2.3

any ideas?

thanks,

stan



-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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] Apache 2.2.3 lots of empty error logs

2006-09-27 Thread Stan Kaushanskiy

Hi All,

I am running a cgi program through Apache 2.2.3.

I get the following errors in the apache log:

[Mon Sep 25 18:17:29 2006] [info] [client 127.0.0.1] (OS 10053)An established connection was aborted by the software in your 
host machine.  : core_output_filter: writing data to the network

[Mon Sep 25 18:17:30 2006] [error] [client 127.0.0.1]
[Mon Sep 25 18:18:10 2006] [info] [client 127.0.0.1] (OS 10053)An established connection was aborted by the software in your 
host machine.  : core_output_filter: writing data to the network

[Mon Sep 25 19:01:07 2006] [error] [client 127.0.0.1]
[Mon Sep 25 19:01:17 2006] [error] [client 127.0.0.1]
[Mon Sep 25 19:01:23 2006] [error] [client 127.0.0.1]
[Mon Sep 25 19:01:38 2006] [error] [client 127.0.0.1]
[Mon Sep 25 19:01:49 2006] [error] [client 127.0.0.1]
[Mon Sep 25 19:01:54 2006] [error] [client 127.0.0.1]
[Mon Sep 25 19:02:05 2006] [error] [client 127.0.0.1]
[Mon Sep 25 19:02:10 2006] [error] [client 127.0.0.1]
[Mon Sep 25 19:02:26 2006] [error] [client 127.0.0.1]
[Mon Sep 25 19:02:36 2006] [error] [client 127.0.0.1]
[Mon Sep 25 19:02:42 2006] [error] [client 127.0.0.1]
[Mon Sep 25 19:02:52 2006] [error] [client 127.0.0.1]
[Mon Sep 25 19:02:58 2006] [error] [client 127.0.0.1]
[Mon Sep 25 19:03:13 2006] [error] [client 127.0.0.1]
[Mon Sep 25 19:03:24 2006] [error] [client 127.0.0.1]
[Mon Sep 25 19:03:29 2006] [error] [client 127.0.0.1]
[Mon Sep 25 19:03:40 2006] [error] [client 127.0.0.1]
[Mon Sep 25 19:03:45 2006] [error] [client 127.0.0.1]
[Mon Sep 25 19:04:01 2006] [error] [client 127.0.0.1]
[Mon Sep 25 19:04:11 2006] [error] [client 127.0.0.1]
[Mon Sep 25 19:04:16 2006] [error] [client 127.0.0.1]
[Mon Sep 25 19:04:27 2006] [error] [client 127.0.0.1]
[Mon Sep 25 19:04:32 2006] [error] [client 127.0.0.1]
[Mon Sep 25 19:04:48 2006] [error] [client 127.0.0.1]
[Mon Sep 25 19:04:58 2006] [error] [client 127.0.0.1]
[Mon Sep 25 19:05:04 2006] [error] [client 127.0.0.1]


These logs appear harmless because the clients seem happy, but they
are filling up my error log very quickly.

It does not happen one every request, but just about. This happens with PHP 
5.1.6, PHP 5.1.2, and with
a custom CGI compiled from C++.

Prior to 2.2.3 I ran Apache 2.0.52 which did NOT have this problem.

My Setup:
P4 3Ghz HT
1 GB Ram
Windows XP Pro
Apache 2.2.3

any ideas?

thanks,

stan




-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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] Running Apache with DocumentRoot on a Mapped Drive

2006-09-27 Thread Todd L Hicks
Dewey,
I know that this doesn't exactly answer the mail, but...
my solution to this problem was rather than using a network share, I used an
iscsi solution.
Using the microsoft iSCSI initiator on the host and an iscsi enterprise
target on FC4. If your remote storage needs to be a windows host, then there
are mostly only commercial solutions, but I have found one free one that is
somewhat limited that may meed the need. I've used for development purposes
on occasion (http://www.iscsicake.com/).

Todd 

-Original Message-
From: Williams, Dewey [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 27 September, 2006 4:36 PM
To: users@httpd.apache.org
Subject: RE: [EMAIL PROTECTED] Running Apache with DocumentRoot on a Mapped
Drive

I have tried to do this for years and it always fails.  I keep hoping a
version of Apache httpd for Win32 will finally recognize mapped drives
but so far, no matter how I setup permissions and accounts, it doesn't
work.

If anyone has this working and can walk us through the steps I know I
would greatly appreciate it.

Dewey Williams

-Original Message-
From: Christian Toledo [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 27, 2006 2:35 PM
To: users@httpd.apache.org
Subject: [EMAIL PROTECTED] Running Apache with DocumentRoot on a Mapped
Drive

Is it possible to run Apache Win32 with a DocumentRoot pointing to a
network drive? The servers are on a Workgroup (one with data content and
the other running Apache) and I have setup identical users on both
systems with local admin rights. I have set the Apache service to use
this local user but the service fails to start. The drive is mapped and
I am able to run Apache from the console but it doesn't seem to want to
load using a mapped drive and my guess is that it's due to permissions
issue. I have read this works with servers in the same domain and was
wondering if this was possible with servers in a workgroup
(stand-alone). Thanx.

Christian Toledo
Web Administrator

-
The official User-To-User support forum of the Apache HTTP Server
Project.
See URL: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 URL: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 URL: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] Previewing a Virtual Host before server name is available in DNS

2006-09-27 Thread Richard de Vries
I know my hosting provider puts the document root for
the virtual host in the document root of the main
host. So I can look at it via
http://mainhost.domain.com/docroot-of-subhost.

Personally I don't like this at all.

You could also create a /etc/host file entry on the
server running your virtual host, configure an Apache
proxy server on that host (different port) and
configure that proxy to forward all the requests to
your new virtual host, at which time it will utilize
the alias in your /etc/hosts file.

--- Amador, Orlando M. [OBIPR]
[EMAIL PROTECTED] wrote:

 I have configured 2 virtual host in the http.conf
 file.  Both are working
 fine since we have configured the DNS server to
 point to the apache server.
 We need to configure a 3rd virtual host, but can't
 change the DNS to point
 to our apache server until it is approved.
 
 So the question is how we configure the new virtual
 host so it is visible
 without DNS?
 
 This is the same to what a web hosting company will
 do.  One can preview the
 website under some URL of the main server.
 
 For example if the real server is named
 www.server1.com and the new virtual
 host is for www.server2.com, then one could type
 something like
 www.server1.com/server2 or similar and view the file
 from the virtual host
 (server2) instead.
 
 I read the virtual hosting documentation and did not
 find anything in this
 subject.  I though that maybe ServerPath could do
 the trick, but id did
 not work.  Tried to set serverpath to /server2/
 and the requested
 www.server1.com/server2/ but it only complains that
 the URL was not found.
 
 I understand that we can set an entry in the host
 file to map the virtual
 host name to an IP, but this is not practical since
 we need to have several
 people in different workstations looking at this.
 
 How to the web hosting companies accomplish this? 
 is it just with Apache or
 is it something else?
 
 Any suggestions?
 
 This is for Apache 2.0.52 running on Linux.
 
 Saludos, 
 Orlando 
 
 Orlando M. Amador 
 Technology Lead 
 Ortho Biologics LLC 
 [EMAIL PROTECTED] 
 (787) 854-1800 x2294 
 
 Confidentiality Notice: This e-mail transmission may
 contain confidential or
 legally privileged information that is intended only
 for the individual or
 entity named in the e-mail address. If you are not
 the intended recipient,
 you are hereby notified that any disclosure,
 copying, distribution, or
 reliance upon the contents of this e-mail is
 strictly prohibited. If you
 have received this e-mail transmission in error,
 please reply to the sender,
 so that Johnson  Johnson can arrange for proper
 delivery, and then please
 delete the message from your inbox. Thank you. 
 
 
 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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] Previewing a Virtual Host before server name is available in DNS

2006-09-27 Thread Joshua Slive

On 9/27/06, Richard de Vries [EMAIL PROTECTED] wrote:

I know my hosting provider puts the document root for
the virtual host in the document root of the main
host. So I can look at it via
http://mainhost.domain.com/docroot-of-subhost.

Personally I don't like this at all.

You could also create a /etc/host file entry on the
server running your virtual host, configure an Apache
proxy server on that host (different port) and
configure that proxy to forward all the requests to
your new virtual host, at which time it will utilize
the alias in your /etc/hosts file.



It's easier than that.  Simply configure your browser to use the test
server as its proxy server.  Then whatever request you make, it will
be directed through the test server, and the test server will try to
match it with each of the name-based virtual hosts.

Joshua.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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 2 mod_proxy mod_rewrite questions

2006-09-27 Thread Jim BAO
Did you try HTTP Connect?

 [EMAIL PROTECTED] 9/27/2006 10:35 AM 
All:

I have some questions regarding the way to implement
Apache as a reverse proxy server using mod_rewrite in order to mask the
real
URLs. Users will connect to the proxy, then the proxy will connect to
the real server that is listening on port 8050 (SSL)


So far this is what I have working:

Proxy server listining on port 80 and on 443 and I am
using a rewrite rule to force a rediect to 443 only as shown below:

 ## Redirect all incoming HTTP requests to HTTPS locally before
proxying.
 RewriteRule ^/(.*) https://proxy.server.com/$1 [R,L]

This works just as expected as my initial http connection gets forced
to https.

Then I have the following proxy statements set up as shown below for
the default SSL virtual host on the proxy server:

 ProxyRequests Off
 SSLProxyEngineOn
 SSLProxyCACertificateFile conf/cacerts.crt
 ProxyPreserveHost On
 ProxyPass / https://real.server.com:8050/ 
 ProxyPassReverse  / https://real.server.com:8050/ 

This all works great for all of the base URLs on the root level. The
home
page URLs on the real server get rewritten and appear to have
originated from the proxy server when I mouse over or
click on a root-level URL.

However, any URL with a subdirectory below the root level on the real
server does not get rewritten and the real URL (the complete URL on
the real server including the port number 8050) is visible on the
proxied web page.

Now, how do go I about getting this to work for all of the URLs with
subdirectories? I have read through the documentation and I am stuck.

Do I need rewrite rules for each URL that has a subdirectly below the
root with a subsequent ProxyPass and ProxyPassReverse statement?

Do my rewrite rules need to use the proxy flag [P]? Or will they work
once written to mimic the root-level rules?

Many thanks in advance for any help that you may provide


-=jeff

-
The official User-To-User support forum of the Apache HTTP Server
Project.
See URL: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 URL: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] suexec2 setup on Suse 10.1

2006-09-27 Thread Pierre Imbaud

Hello, folks, Im trying to make apache2 work on my box with suexec2.
Not familiar with apache2 (but configured, and works fine so far), and
I guess my questions are somewhat naive.
Oh, Im on Suse 10.1, with apache2-2.2.0-21
First: do I have to recompile apache2 to have this working? On start,
I have [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec2)
in my log.
apache2ctl -V|less
Server version: Apache/2.2.0
Server built:   May  2 2006 08:47:14
Server's Module Magic Number: 20051115:0
Architecture:   32-bit
Server MPM: Prefork
  threaded: no
forked: yes (variable process count)
Server compiled with
 -D APACHE_MPM_DIR=server/mpm/prefork
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=128
 -D HTTPD_ROOT=/srv/www
 -D SUEXEC_BIN=/usr/sbin/suexec2
 -D DEFAULT_PIDLOG=/var/run/httpd2.pid
 -D DEFAULT_SCOREBOARD=logs/apache_runtime_status
 -D DEFAULT_LOCKFILE=/var/run/accept.lock
 -D DEFAULT_ERRORLOG=/var/log/apache2/error_log
 -D AP_TYPES_CONFIG_FILE=/etc/apache2/mime.types
 -D SERVER_CONFIG_FILE=/etc/apache2/httpd.conf


 suexec2 -V
 -D AP_DOC_ROOT=/srv/www
 -D AP_GID_MIN=96
 -D AP_HTTPD_USER=wwwrun
 -D AP_LOG_EXEC=/var/log/apache2/suexec.log
 -D AP_SAFE_PATH=/usr/local/bin:/usr/bin:/bin
 -D AP_UID_MIN=96
 -D AP_USERDIR_SUFFIX=public_html

2nd question: do all compilation options, as documented in apache
documentation, like --with-suexec-userdir=DIR, translate in these -D
options? And if not, is there a way to know after compilation which
options have been chosen?

3rd question: a lot of conditions must be fulfilled before suexec
(suexec2 here) is even accessed. Who does log what, in which log
files? specifically, is the suexec logfile written only by suexec?
do I find account for errors prior to launching suexec in the normal
log file?


Thanks in advance for any help.


-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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] Two Nics, several ips aliased to each one

2006-09-27 Thread jekillen


On Sep 26, 2006, at 11:34 PM, Boyle Owen wrote:


-Original Message-
From: jekillen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 27, 2006 7:17 AM
To: users@httpd.apache.org
Subject: [EMAIL PROTECTED] Two Nics, several ips aliased to each one

Hello Apache list;
I have a server running FreeBSD 6.0 RELEASE  with Apache 1.3.34.
I have two network interface cards. I have Three static public IP's
assigned to one interface card  and three internal IP's assigned to
the other interface. I want to do IP based hosting. I got as far as
a warning message informing me that Apache could not resolve one
of the internal IP addresses. My plan is to have internal
access to the
virtual hosts as well as external access to the hosts from a dev/admin
machine.
The question is:
In this situation is Apache looking for  dns records for the internal
addresses, or would there be other reasons for the warning?


Apache tries to get a domain-name for all listened IP addresses at
startup (eg, for self-referential URLs). if any fail to resolve, you 
get

the warning. Just make sure all IPs resolve on the server (see
/etc/hosts, /etc/resolv.conf etc..), use nslookup to confirm/test.

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored.

Thanks for the reply, I can't use the private IP addresses in public
DNS records, I don't think, particularly when they reference the same 
host.

So would I use. Seems to me I've seen a DNS setup called a split server
where one resolves internal addresses and the other resolvers external 
addresses.
But etc/host would work on the internal network? This is somewhat 
confusing to

me. Time to go back and study the networking stuff.
Jeff K.




As It stands now I have three sites served on this machine and
all three of each group of addresses brings up one of the sites.

I am having more trouble with this (virtual host setup) for some
reason, than setting up my DNS records and configuration.

I have a copy of Apache the Definitive Guide published by O'Reilly,
as well as other books and subscriptions to other tech lists but can't
seem to get a handle on this.
Thanks in advance for knowledgeable responses.
Jeff K.
[EMAIL PROTECTED]
try
www.brushandbard.com
www.serioussite,com
www.jekillen.com
They will all bring up
www.brushandbard.com
I do not presently have enough business
to call myself a business, let alone get professional help
at a professional price.
JK


-
The official User-To-User support forum of the Apache HTTP
Server Project.
See URL: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]




This message is for the named person's use only. It may contain 
confidential, proprietary or legally privileged information. No 
confidentiality or privilege is waived or lost by any mistransmission. 
If you receive this message in error, please notify the sender 
urgently and then immediately delete the message and any copies of it 
from your system. Please also immediately destroy any hardcopies of 
the message. You must not, directly or indirectly, use, disclose, 
distribute, print, or copy any part of this message if you are not the 
intended recipient. The sender's company reserves the right to monitor 
all e-mail communications through their networks. Any views expressed 
in this message are those of the individual sender, except where the 
message states otherwise and the sender is authorised to state them to 
be the views of the sender's company.


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

See URL: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 URL: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 Sometimes Ignoring MaxSpareServers, Running Out of Memory

2006-09-27 Thread Qingshan Xie
 
 Apache will never create children over
 ServerLimit/MaxClients.

Joshua,  I did see our apache created extra children
spawned by Apache parent.  We configured Apache-2.0.54
with worker MPM, the serverlimit was 32 but it spawned
over 42 children in the high load condition.  Any
comment?

Thx, Q.Xie 
 
 If you are asking what happens to extra connections
 in that
 circumstance, the answer is that they are queued by
 the OS up to the
 limit specified in the ListenBacklog directive. 
 Connections in excess
 of that are simply rejected.
 
 Joshua.
 

-
 The official User-To-User support forum of the
 Apache HTTP Server Project.
 See URL: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]
 
 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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] Two Nics, several ips aliased to each one

2006-09-27 Thread jekillen


On Sep 27, 2006, at 6:25 AM, Joshua Slive wrote:


On 9/27/06, Boyle Owen [EMAIL PROTECTED] wrote:


Apache tries to get a domain-name for all listened IP addresses at
startup (eg, for self-referential URLs). if any fail to resolve, you 
get

the warning. Just make sure all IPs resolve on the server (see
/etc/hosts, /etc/resolv.conf etc..), use nslookup to confirm/test.


It is possible (and recommended )to get apache to startup without
doing any name resolution.  See:
http://httpd.apache.org/docs/1.3/dns-caveats.html

Beyond that, if you want help with your vhost setup, you'll need to
give us some idea of what config you are using.

Joshua.

I can send attachment of the relevant line, in my httpd.conf file
I'm using listen for all 6 of the addresses and reference one
internal and one external address for each host in the opening
VirtualHost tag. I copied the documentation on the Apache site
and the examples of vhost setups. It looks a bit better than what
I have to hand already. It looks like there is enough there to get
me straightened out
Thanks for your response
Jeff K


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

See URL: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 URL: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] Apache 2.2 Adds a / before ?

2006-09-27 Thread Jack van Ooststroom

Hello,

I'm trying to achieve the following scenario using Apache 2.2:

   - http://localhost/aaa/bbb?a=b must be proxied to 
http://BalancerMember:1234/aaa/bbb?a=b (where BalanceMember is 
either jack or jill)
   - http://localhost/aaa/bbb?b=c must be proxied to 
http://BalancerMember:1234/aaa/bbb?b=c
   - http://localhost/aaa must be proxied to 
http://BalancerMember:8080/aaa
   - http://localhost/aaa/must be proxied to 
http://BalancerMember:8080/aaa/
   - http://localhost/aaa/ccc must be proxied to 
http://BalancerMember:8080/aaa/ccc


Assume the following httpd.conf snippet on localhost:

   VirtualHost _default_
   DocumentRoot /usr/local/apache2/htdocs
   ServerName jack
   ErrorLog logs/error_log
   TransferLog logs/access_log

   IfModule mod_proxy.c
   ProxyPass /aaa/bbb balancer://balancer1
   ProxyPass /aaa balancer://balancer2

   Proxy balancer://balancer1
   BalancerMember http://jack:1234/aaa/bbb
   BalancerMember http://jill:1234/aaa/bbb
   /Proxy

   Proxy balancer://balancer2
   BalancerMember http://jack:8080/aaa
   BalancerMember http://jill:8080/aaa
   /Proxy
   /IfModule
   /VirtualHost

When I try this I end up with the following undesired result:

   - http://localhost/aaa/bbb?a=b proxies to 
http://BalancerMember:1234/aaa/bbb/?a=b
   - http://localhost/aaa/bbb?b=c proxies to 
http://BalancerMember:1234/aaa/bbb/?b=c


Please note the added / in front of the ?

How can I fix this?

I initially used Apache 2.0 but that version seems to lack good 
load-balancing and failover features, if I'm not mistaken. There were a 
few things mentioned in the Apache2 Bible regarding load-balancing, for 
instance using a DNS server to load-balance. However, these options 
didn't seem feasible. That's why we switched to Apacha 2.2.


Just as some additional information, this was how I configured Apache 
2.0 when we didn't use load-balancing and failover:


   IfModule mod_proxy.c
   ProxyRequests Off

   Proxy *
   Order deny,allow
   Allow from all
   /Proxy

   ProxyPass /aaa/bbb http://localhost:1234/aaa/bbb
   ProxyPassReverse /aaa/bbb http://localhost:1234/aaa/bbb
   ProxyPass /aaa http://localhost:8080/aaa
   ProxyPassReverse /aaa http://localhost:8080/aaa
   /IfModule

This seemed to have the desired result:

   - http://localhost/aaa/bbb?a=b proxies to 
http://localhost:1234/aaa/bbb/?a=b
   - http://localhost/aaa/bbb?b=c proxies to 
http://localhost:1234/aaa/bbb/?b=c


Regards,
Jack...



-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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 Sometimes Ignoring MaxSpareServers, Running Out of Memory

2006-09-27 Thread Joshua Slive

On 9/27/06, Qingshan Xie [EMAIL PROTECTED] wrote:


 Apache will never create children over
 ServerLimit/MaxClients.

Joshua,  I did see our apache created extra children
spawned by Apache parent.  We configured Apache-2.0.54
with worker MPM, the serverlimit was 32 but it spawned
over 42 children in the high load condition.  Any
comment?


How are you measuring?  ServerLimit is a limit on the number of
processes, not threads.  On many OSes, it is difficult to distinguish
between processes and threads.

Also note that ServerLimit limits only the worker children.  There
will still be some additional processes for cgi, etc.

Joshua.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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] Running Apache with DocumentRoot on a Mapped Drive

2006-09-27 Thread William A. Rowe, Jr.
Williams, Dewey wrote:
 I have tried to do this for years and it always fails.  I keep hoping a
 version of Apache httpd for Win32 will finally recognize mapped drives
 but so far, no matter how I setup permissions and accounts, it doesn't
 work.
 
 If anyone has this working and can walk us through the steps I know I
 would greatly appreciate it.

Remember you aren't living in the GUI.  You don't have explorer.exe in
place as a service, so your environmental consideration are missing.

NOW - it's rather trivial if you

 1. set your run-as account to an authorized file user of those network
resources (workgroup, or nt domain member).  NEVER use LocalSystem
aka SYSTEM account for this purpose, or change it's permissions.

 2. use absolute file syntax instead of drive letters.  E.g., for S:
mounted from \\bigbertha\cdrive\ copy of htdocs, you would use

Alias /docs/ //bigbertha/cdrive/htdocs/

and the same, for the Directory  sections, DocumentRoot, etc.



-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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] DSO cleanup causes abort

2006-09-27 Thread Manish Singh








Hello,



I tried to Load PHP5 module to httpd.conf

When I try to start HTTPD it aborts without displaying any
error in error logs.

On debugging I found that apr_pool_clear calls run_cleanups
on pool which in turn calls the functions registered at the time of loading.

The call to dlclose aborts the whole process.

Please suggest why this happens and how important is the
role of dso_cleanup in de registering a module.

The OS being used is linux 2.6 from ELDK.

Here is the back trace of abort.



Program received signal SIGABRT, Aborted. 
[Switching to Thread 16384 (LWP 25158)] 
0x0fa800a8 in kill () from /lib/libc.so.6 
(gdb) bt 
#0 0x0fa800a8 in kill () from /lib/libc.so.6 
#1 0x0fbccc70 in pthread_kill () from /lib/libpthread.so.0 
#2 0x0fbcd03c in raise () from /lib/libpthread.so.0 
#3 0x0fa7fea4 in raise () from /lib/libc.so.6 
#4 0x0fa81414 in abort () from /lib/libc.so.6 
#5 0x0fb50828 in __deregister_frame_info_bases () from /lib/libc.so.6 
#6 0x0fb508a8 in __deregister_frame_info () from /lib/libc.so.6 
#7 0x0f556318 in __do_global_dtors_aux () 
 from /home/msingh/httpd-2.2.3/usr/local/modules/libphp5.so 
#8 0x0f556318 in __do_global_dtors_aux () 
 from /home/msingh/httpd-2.2.3/usr/local/modules/libphp5.so 
#9 0x0f556318 in __do_global_dtors_aux () 
 from /home/msingh/httpd-2.2.3/usr/local/modules/libphp5.so 
#10 0x0f556318 in __do_global_dtors_aux () 
 from /home/msingh/httpd-2.2.3/usr/local/modules/libphp5.so 
#11 0x0f556318 in __do_global_dtors_aux () 
 from /home/msingh/httpd-2.2.3/usr/local/modules/libphp5.so 
#12 0x0f556318 in __do_global_dtors_aux () 
 from /home/msingh/httpd-2.2.3/usr/local/modules/libphp5.so 
#13 0x0f556318 in __do_global_dtors_aux () 
 from /home/msingh/httpd-2.2.3/usr/local/modules/libphp5.so 
#14 0x0f556318 in __do_global_dtors_aux () 
 from /home/msingh/httpd-2.2.3/usr/local/modules/libphp5.so 
---Type return to continue, or q return to quit--- 
#15 0x0f556318 in __do_global_dtors_aux () 
 from /home/msingh/httpd-2.2.3/usr/local/modules/libphp5.so 
#16 0x0f556318 in __do_global_dtors_aux () 
 from /home/msingh/httpd-2.2.3/usr/local/modules/libphp5.so 
#17 0x0f556318 in __do_global_dtors_aux () 
 from /home/msingh/httpd-2.2.3/usr/local/modules/libphp5.so 
#18 0x0f556318 in __do_global_dtors_aux () 
 from /home/msingh/httpd-2.2.3/usr/local/modules/libphp5.so 
#19 0x0f556318 in __do_global_dtors_aux () 
 from /home/msingh/httpd-2.2.3/usr/local/modules/libphp5.so 
#20 0x0f556318 in __do_global_dtors_aux () 
 from /home/msingh/httpd-2.2.3/usr/local/modules/libphp5.so 
Previous frame inner to this frame (corrupt stack?)

.



Please suggest.

TIA






 
  
  Nexthop
  Technologies
  Manish Singh
  Software Engineer
  [EMAIL PROTECTED]
  #701, Prestige Meridian,
MG Road,
Bangalore
  tel: 91 80 5178 8026
  mobile: 91 9341732704
  AIM: manishsngh 
  
  
  
  
 
 
  
  
  
 
 
  
  Add
  me to your address book... Want a signature like this?