Re: [us...@httpd] Enabling Server Side Includes in Apache2.2

2009-12-18 Thread Zachary Uram
On Thu, Dec 17, 2009 at 3:46 PM, Greene, Gregory wrote: > Wanted to say thank you to all the people who offered help. I was finally > able to figure it out. It was the space between the to this: ? Zach - The official User-T

Re: [us...@httpd] HTTP fine, SSL segfaults every time; 2.2.14 on Solaris 10 x86. Backtrace included

2009-12-18 Thread Jeff Trawick
On Fri, Dec 18, 2009 at 5:38 PM, Chris Copeland wrote: > Hello, > > I am building OpenSSL, HTTPD, and Tomcat Connectors on Solaris 10 x86 > using the Sun Studio compiler. > > There server runs fine in HTTP mode but segfaults immediately when SSL > is enabled.  OpenSSL passed all tests when built.

Re: [us...@httpd] Code coverage while running web server

2009-12-18 Thread Guruprasad JG
I am referring to the Apache code written in C. I would like to see if all the paths are exercised for - request processing, resource management, connection pooling, and configuration directives of the apache core. This would be more like functional testing of apache. On Fri, Dec 18, 2009 at 3:42

Re: [us...@httpd] Apache intermittent crash - HELP!!!

2009-12-18 Thread gary lim
Hi daniel, 1. Glibc version - (GNU libc) 2.4 2. Our default http.conf is experiencing the intermittent apache crash, hence the performance tuning when we detected that apache has use up all the swap probably due to memory leak gary On Thu, Dec 17, 2009 at 12:42 PM, Daniel Reinhardt wrote: >

Re: [us...@httpd] Apache intermittent crash - HELP!!!

2009-12-18 Thread gary lim
hi Rodrigo, XCache doesn't seem to be installed in our setup *phpinfo() *PHP Version => 5.1.6-pl4-gentoo System => Linux trillian 2.6.16.29-ab1-xenU #1 SMP Sat Sep 23 19:20:15 SGT 2006 i686 Build Date => Dec 11 2006 15:41:50 Configure Command => './configure' '--prefix=/usr/lib/php5' '--hos

Re: [us...@httpd] Apache intermittent crash - HELP!!!

2009-12-18 Thread gary lim
yes, before we disable any PHP module, we want to be careful to only do it only if necessary since it under production On Sat, Dec 19, 2009 at 6:55 AM, Justin Pasher wrote: > gary lim wrote: > >> Hu justin, >> >> 1. Because its a production site, we are unable to disable the PHP >> modules/script

Re: [us...@httpd] Apache intermittent crash - HELP!!!

2009-12-18 Thread gary lim
Hi justin, yes, we are working on this avenue which will take some timein the meantime, we need to try to resolve the crash issue in our production system. On Sat, Dec 19, 2009 at 7:00 AM, Justin Pasher wrote: > Justin Pasher wrote: > >> gary lim wrote: >> >>> Hu justin, >>> >>> 1. Because

Re: [us...@httpd] Apache intermittent crash - HELP!!!

2009-12-18 Thread Justin Pasher
Justin Pasher wrote: gary lim wrote: Hu justin, 1. Because its a production site, we are unable to disable the PHP modules/script..From the log output below, we are having difficulty to pinpoint the source of error. I just spent the last couple of hours to run through the pages and see i

Re: [us...@httpd] Apache intermittent crash - HELP!!!

2009-12-18 Thread Justin Pasher
gary lim wrote: Hu justin, 1. Because its a production site, we are unable to disable the PHP modules/script..From the log output below, we are having difficulty to pinpoint the source of error. I just spent the last couple of hours to run through the pages and see if the log shows up an

Re: [us...@httpd] Adding Virtual Hosts for SSL / 443

2009-12-18 Thread Justin Pasher
Carlos Williams wrote: I have a server up and running with Apache 2.2.14-2. Right now in apache my Document Root is set as /srv/http and this takes you to www.mydomain.tld. This is perfect on port 80 but I have a subfolder in my Document Root called 'webmail/'. When I access the webmail subfolde

[us...@httpd] HTTP fine, SSL segfaults every time; 2.2.14 on Solaris 10 x86. Backtrace included

2009-12-18 Thread Chris Copeland
Hello, I am building OpenSSL, HTTPD, and Tomcat Connectors on Solaris 10 x86 using the Sun Studio compiler. There server runs fine in HTTP mode but segfaults immediately when SSL is enabled. OpenSSL passed all tests when built. Below I have: * Configure and compile commands for all * Error lo

Re: [us...@httpd] Apache intermittent crash - HELP!!!

2009-12-18 Thread gary lim
Hu justin, 1. Because its a production site, we are unable to disable the PHP modules/script..From the log output below, we are having difficulty to pinpoint the source of error. I just spent the last couple of hours to run through the pages and see if the log shows up any systematic error...u

Re: [us...@httpd] Apache intermittent crash - HELP!!!

2009-12-18 Thread Justin Pasher
Just a couple things to point out (but nothing specific to fixing your probem) ... gary lim wrote: Hi Daniel, After performance tuning of apache, the mem usage is now more managable. However, the apache still experience intermittent crash which we suspect is due to certain PHP module running

Re: [us...@httpd] Apache intermittent crash - HELP!!!

2009-12-18 Thread gary lim
Hi Daniel, After performance tuning of apache, the mem usage is now more managable. However, the apache still experience intermittent crash which we suspect is due to certain PHP module running in our joomla website. *top output *top - 04:58:52 up 160 days, 4:02, 1 user, load average: 0.08, 0.

Re: [us...@httpd] Request Counting algorithm

2009-12-18 Thread ricardo figueiredo
Is there RR implemented in mod_proxy ??? Independently of the lbfactor. I need too much !!! Thank you Ricardo On Tue, Dec 15, 2009 at 5:11 PM, ricardo figueiredo < ricardoogra...@gmail.com> wrote: > > Perfect !!! > > I want to know "How does It work ??" > > Ricardo > > On Tue, Dec 15, 2009 at 5

Re: AW: [us...@httpd] Silent Installation Apache HTTP Server

2009-12-18 Thread William A. Rowe Jr.
André Warnier wrote: > William A. Rowe Jr. wrote: >> Buchbauer Thomas wrote: >>> Platform: Windows >>> Version: latest release (>= 2.2.13) >> >> I recently updated the docs; see >> http://httpd.apache.org/docs/trunk/platform/windows.html#advinst >> > That is a great page. Thanks. > But it does not

Re: [us...@httpd] Adding Virtual Hosts for SSL / 443

2009-12-18 Thread Carlos Williams
On Fri, Dec 18, 2009 at 1:54 PM, Frank Gingras wrote: > Carlos, > > Your directives are commented out. Remove the leading # from each line. Yes, I did this because when I un-comment them, it doesn't work as I expected. Assume those comments are not there...what needs to change or be added?

Re: [us...@httpd] Adding Virtual Hosts for SSL / 443

2009-12-18 Thread Frank Gingras
Carlos Williams wrote: I have a server up and running with Apache 2.2.14-2. Right now in apache my Document Root is set as /srv/http and this takes you to www.mydomain.tld. This is perfect on port 80 but I have a subfolder in my Document Root called 'webmail/'. When I access the webmail subfolde

[us...@httpd] Adding Virtual Hosts for SSL / 443

2009-12-18 Thread Carlos Williams
I have a server up and running with Apache 2.2.14-2. Right now in apache my Document Root is set as /srv/http and this takes you to www.mydomain.tld. This is perfect on port 80 but I have a subfolder in my Document Root called 'webmail/'. When I access the webmail subfolder, I want to do this over

Re: [us...@httpd] Re: Enabling SSL on VirtualHosts Revisited

2009-12-18 Thread Frank Gingras
Jonathan Mast wrote: Frank, I've always used the ServerName directive, here's what my configs look like: NameVirtualHost foo.mysite.com:80 ServerName foo.mysite.com NameVirtualHost foo.mysite.com:443 ServerName foo.mysite.com SSL Stuff... My question was specifically why p

Re: [us...@httpd] Re: Enabling SSL on VirtualHosts Revisited

2009-12-18 Thread Eric Covener
On Fri, Dec 18, 2009 at 12:06 PM, Jonathan Mast wrote: > Frank, I've always used the ServerName directive, here's what my configs > look like: > NameVirtualHost foo.mysite.com:80 > >     ServerName   foo.mysite.com > > > > NameVirtualHost foo.mysite.com:443 > >     ServerName   foo.mysite.com >

Re: [us...@httpd] Re: Enabling SSL on VirtualHosts Revisited

2009-12-18 Thread Justin Pasher
Jonathan Mast wrote: OK, so I added NameVirtualHost foo.mysite.com:80 and NameVirtualHost foo.mysite.com:443 above their respective sections and it seems to work despite not being recommended as per the docs, but this was the only way to d

Re: [us...@httpd] Re: Enabling SSL on VirtualHosts Revisited

2009-12-18 Thread Jonathan Mast
Frank, I've always used the ServerName directive, here's what my configs look like: NameVirtualHost foo.mysite.com:80 ServerName foo.mysite.com NameVirtualHost foo.mysite.com:443 ServerName foo.mysite.com SSL Stuff... My question was specifically why putting the hostname as

Re: [us...@httpd] Re: Enabling SSL on VirtualHosts Revisited

2009-12-18 Thread Frank Gingras
Jonathan Mast wrote: OK, so I added NameVirtualHost foo.mysite.com:80 and NameVirtualHost foo.mysite.com:443 above their respective sections and it seems to work despite not being recommended as per the docs, but this was the only way to do it because all my domains: mysite.com, othersite.com, et

Re: [us...@httpd] Re: Enabling SSL on VirtualHosts Revisited

2009-12-18 Thread Jonathan Mast
OK, so I added NameVirtualHost foo.mysite.com:80 and NameVirtualHost foo.mysite.com:443 above their respective sections and it seems to work despite not being recommended as per the docs, but this was the only way to do it because all my domains: mysite.com, othersite.com, etc point to a single IP.

Re: [us...@httpd] Re: Enabling SSL on VirtualHosts Revisited

2009-12-18 Thread Philip Wigg
Possibly the information you need is here:- http://httpd.apache.org/docs/2.2/vhosts/name-based.html When adding a name-based Virtual Host the... "Main host goes away If you are adding virtual hosts to an existing web server, you must also create a block for the existing host. The ServerName an

[us...@httpd] Re: Enabling SSL on VirtualHosts Revisited

2009-12-18 Thread Dan Poirier
If one or more virtual host entries match the address:port for the request, but no server names in those entries match, then the first virtual host definition in the config file, not the global configuration, will control handling for that request. -

Re: [us...@httpd] Enabling SSL on VirtualHosts Revisited

2009-12-18 Thread Frank Gingras
Jonathan Mast wrote: There's a problem with the 2 VirtualHost entries I had to add for SSL. Now every request to httpd is being handled by these VirtualHosts, even requests for with hostnames that don't match them. Here's my current config: ServerName blah.mysite.com ... ServerN

[us...@httpd] Enabling SSL on VirtualHosts Revisited

2009-12-18 Thread Jonathan Mast
There's a problem with the 2 VirtualHost entries I had to add for SSL. Now every request to httpd is being handled by these VirtualHosts, even requests for with hostnames that don't match them. Here's my current config: ServerName blah.mysite.com ... ServerName foo.mysite.com

Re: [us...@httpd] What is wrong with this RewriteCond?

2009-12-18 Thread Perl Whore
I got it to work after going through the logs. The next thing I need to do is make it override the Server header of the internal server. Can that be done with mod_proxy? - The official User-To-User support forum of the Apache HTT

Re: [us...@httpd] How to remove an environment variable...

2009-12-18 Thread André Warnier
Krist van Besien wrote: ... Maybe I could use some mod_perl to manipulate this internal representation. Yes of course. Maybe try this PerlFixupHandler "sub { \ use Apache2::Const qw(:common); my $r = shift; \ $r->user(undef); \ return Apache2::Const::OK; \ }" Note : that's really

Re: [us...@httpd] How to remove an environment variable...

2009-12-18 Thread Krist van Besien
On Fri, Dec 18, 2009 at 3:16 PM, Eric Covener wrote: > mod_cgi (and anyone acting like mod_cgi) calls a utility function to > set REMOTE_USER from the internal representation of the user, right > before running the script (in the handler phase).  There does not seem > to be any window where you c

Re: [us...@httpd] How to remove an environment variable...

2009-12-18 Thread Eric Covener
On Fri, Dec 18, 2009 at 8:54 AM, Krist van Besien wrote: > > UnsetEnv REMOTE_USER > > However, this does not work. > > Also setting REMOTE_USER to something else doesn't work either. > Setting other variables works though. > > What are my options here? How can I remove REMOTE_USER? mod_cgi (and a

Re: [us...@httpd] How to remove an environment variable...

2009-12-18 Thread Peter Schober
* Krist van Besien [2009-12-18 14:54]: > Now for test purposes I want to offer a way to look at the site as > non authenticated users would see it, but without (for now) removing > the authentication. As the website is still under development I > don't want to allow unauthenticated access yet. Ma

[us...@httpd] How to remove an environment variable...

2009-12-18 Thread Krist van Besien
Hello all, I have a PHP content management system, Drupal on a apache 2.2 server. For the moment we use a Drupal add on that uses the webserver's own authentication. So I have set up apache basic auth, and Drupal asumes that whenever a request comes with the "REMOTE_USER" variable set, the user i

Re: [us...@httpd] What is wrong with this RewriteCond?

2009-12-18 Thread Krist van Besien
On Fri, Dec 18, 2009 at 11:34 AM, Perl Whore wrote: > I read the docs for the flags and it says for [C] that if a rule is > not matched then it skips the rest of the rules. I told you my example was "advanced"... > What I'm trying to do are set individual rules for the same condition > and not

Re: [us...@httpd] What is wrong with this RewriteCond?

2009-12-18 Thread Perl Whore
I got it to work correctly with the [L] flag. Now everything is working as intended. One last thing I need to accomplish is overriding the Server header when using the [P] flag. For example in this rule RewriteRule /inbox/(.+) http://127.0.0.1:22131/$1 [P] The Server header returned is "TwistedW

RE: [us...@httpd] What is wrong with this RewriteCond?

2009-12-18 Thread Cristian Pini
It skips the rest of the rules that are chained with that rule if it does not match, not necessarily the rest of the conditions that are set. Can you add the code pls as the next part seems a little unclear. -Original Message- From: Perl Whore [mailto:whorep...@gmail.com] Sent: 18 Decem

Re: [us...@httpd] What is wrong with this RewriteCond?

2009-12-18 Thread Perl Whore
I read the docs for the flags and it says for [C] that if a rule is not matched then it skips the rest of the rules. What I'm trying to do are set individual rules for the same condition and not a chain of rules. So only the rule that match should be applied. -

Re: [us...@httpd] Re: SSLProxyEngine config help

2009-12-18 Thread Philip Wigg
> On Thu, Dec 17, 2009 at 9:45 PM, Todd Volkert wrote: >> >> Ok, hopefully I'm not missing something stupid again...  I'm trying to >> enable the SSL proxy engine for use in one of my virtual hosts, and though >> it seems to accept my SSLProxyMachineCertificateFile upon startup, I get >> gobledego

RE: [us...@httpd] Counting requests

2009-12-18 Thread Emmanuel Bailleul
> -Message d'origine- > De : André Warnier [mailto:a...@ice-sa.com] > Envoyé : vendredi 18 décembre 2009 10:27 > À : users@httpd.apache.org > Objet : Re: [us...@httpd] Counting requests > > ricardo figueiredo wrote: > > hi, > > > > How Can I count the number of requests processed ? > > > >

Re: [us...@httpd] Counting requests

2009-12-18 Thread André Warnier
ricardo figueiredo wrote: hi, How Can I count the number of requests processed ? For example, I would like to count the number of requests were processed each ten seconds. Like as monitor Maybe first look at tools such as munin (http://munin.projects.linpro.no/) and webalizer. In a very gene

Re: [us...@httpd] Code coverage while running web server

2009-12-18 Thread Jonathan Zuckerman
On Thu, Dec 17, 2009 at 9:49 PM, Guruprasad JG wrote: > > I am working on a project which requires running httpd web server. I need to > ensure that all the important code paths are covered while the web server is > running.  I looked around for test scripts which can help in doing that, but > cou

Re: AW: [us...@httpd] Silent Installation Apache HTTP Server

2009-12-18 Thread André Warnier
William A. Rowe Jr. wrote: Buchbauer Thomas wrote: Platform: Windows Version: latest release (>= 2.2.13) I recently updated the docs; see http://httpd.apache.org/docs/trunk/platform/windows.html#advinst That is a great page. Thanks. But it does not seem to be the same one as one gets when fo

Re: [us...@httpd] What is wrong with this RewriteCond?

2009-12-18 Thread Krist van Besien
Enable RewriteLog, with a high RewriteLogLevel. That way you see in great detail exactly what is happening. You'll see what matches are tried, against what strings, what matches are successfull, what rules are considered. Etc... BTW, but this is advanced stuff, there is a trick to make whole bloc

Re: [us...@httpd] auth_ldap returns "Password Mismatch" but the password is correct

2009-12-18 Thread Sandro Tosi
Didn't anyone experience "weird things" with ldap authentication? Like: - password mismatch that get solved by restarting apache - password error, wait 10 minutes, relogin (with same username/password) and you can enter Any help and suggestion is appreciate, this is really critical for us an

[us...@httpd] Newbie question:How to change chunk size?

2009-12-18 Thread zmerry
When I use Apache and PHP to learn Chunked Transfer Encoding, I found all chunk-size are about 8k bytes. However, I saw some chunk-size are less than 100 bytes in a http tutorial. I spend lots of time trying to solve the question, but get nothing. Could you tell me where I can set chunk size i