[us...@httpd] PHP script as Apache filter or "callback"

2009-03-13 Thread Brian Mearns
I've got a PHP script that I want to call for every request under a certain location. Specifically, I want to alter/set the response headers using this script. I know headers can be set in other ways, but in this case, the heders are set using some fairly complex logic which I don't think can be do

Re: [us...@httpd] Apache Tunning

2009-03-13 Thread kulbir Saini
Hi All Thanks. I also agree lowering MaxRequestsPerChild will keep busy apache in killing and recreating child process. I dont know what Math i worked, i reconfigured both of the apache instances on the server with following - ServerLimit 200 StartServers 2 MaxClients

Re: [us...@httpd] cannot access sites through "localhost" on development computer

2009-03-13 Thread Brian Mearns
On Fri, Mar 13, 2009 at 5:41 PM, Thomas Johansson wrote: > Sorry to get back on this issue. The solution only helped temporarily (for 2 > days). Now it appears Windows has changed the host file and deleted the line > I added to it. (Perhaps something having to do with permissions, that I > didn't

Re: [us...@httpd] Apache Tunning

2009-03-13 Thread Tadeu Alves
i forget the other stuff i'm using moodle with some images werving with eaccelerator running with php and i you want i can send a conf file about mysql, php and apache if you would like to. On Fri, Mar 13, 2009 at 2:45 PM, Anthony J. Biacco < abia...@formatdynamics.com> wrote: > 1. I have to rai

Re: [us...@httpd] Question about 301 and 302

2009-03-13 Thread Justin Pasher
chuck.pa...@travelchannel.com wrote: Guys, I have the following rule in place to move anyone on a mobile device for our URL to another URL ### Added 022909 By CEP for Mobile Phones/WAP redirect # RewriteCond %{HTTP_user_agent} ^(DoCoMo|J-PHONE|KDDI|UP.Browser|DDIPOCKET|.*Alcatel.*|.*Amoi.*|.*

Re: [us...@httpd] Apache Tunning

2009-03-13 Thread Tadeu Alves
Man i was looking for the right calculation about this question will help me very much because we're have this problem an is a pain in the *** well ill post below our server configuration, for now is very stable but consumes too much memory (mysql=php+apache) for moodle so here it i want about 800

[us...@httpd] Question about 301 and 302

2009-03-13 Thread Chuck.Payne
Guys, I have the following rule in place to move anyone on a mobile device for our URL to another URL ### Added 022909 By CEP for Mobile Phones/WAP redirect # RewriteCond %{HTTP_user_agent} ^(DoCoMo|J-PHONE|KDDI|UP.Browser|DDIPOCKET|.*Alcatel.*|.*Amoi.*|.*AMOI.*|.*iPhone.*|.*ASUS.*|.*KDDI.*|.*C

Re: [us...@httpd] 404 when first visit if userdir is mounted using autofs

2009-03-13 Thread Justin Pasher
Tz-Huan Huang wrote: 2) If you request the http://hostname/~username from a browser, get a 404 error, then do an "ls /home", do you see the "username" directory mounted? Yes. I find that this might be not related to autofs -- while I have connected to the server via ssh and pwd is $HOME (s

Re: [us...@httpd] PRoblem with virtual host setup

2009-03-13 Thread Justin Pasher
Dan Yamins wrote: Hi, I'm trying to set up a virtual host on a new OS10.5.6 machine. I'm using settings that I run on several other OSX machines (also 10.5.6) and they work fine, but for some reason fail on this machine . The goal is set up the virtual host in the directory /Users/dad/resea

Re: [us...@httpd] cannot access sites through "localhost" on development computer

2009-03-13 Thread Thomas Johansson
Sorry to get back on this issue. The solution only helped temporarily (for 2 days). Now it appears Windows has changed the host file and deleted the line I added to it. (Perhaps something having to do with permissions, that I didn't change it the right way...?) Which sort of suggests that t

[us...@httpd] PRoblem with virtual host setup

2009-03-13 Thread Dan Yamins
Hi, I'm trying to set up a virtual host on a new OS10.5.6 machine. I'm using settings that I run on several other OSX machines (also 10.5.6) and they work fine, but for some reason fail on this machine . The goal is set up the virtual host in the directory /Users/dad/research/dataenv. The virtu

Re: [us...@httpd] strace on httpd and .htaccess directories looked at

2009-03-13 Thread Julien Pauli
Got it, thanks ;-) Julien.P On Fri, Mar 13, 2009 at 7:31 PM, Eric Covener wrote: > On Fri, Mar 13, 2009 at 2:12 PM, Julien Pauli > wrote: > > Ok but why are they parsed ? > > Is that a wanted behavior or some kind of unmastered stuff ? > > It's requested by setting AllowOverride to something o

Re: [us...@httpd] [DISCUSS] .htaccess for all and everything

2009-03-13 Thread William A. Rowe, Jr.
André Warnier wrote: Hi. Browsing this list, I often get the impression that people use .htaccess files for just about everything [...] There is no excuse for the administrator (with .conf file permissions) to ever, ever, ever deploy .htaccess or set AllowOverride != None. There are as many

Re: [us...@httpd] [DISCUSS] .htaccess for all and everything

2009-03-13 Thread Frank Gingras
Andre, I agree. So do most of the administrators in #apache on freenode, for that matter. I've seen speed improvements up to 15% in some extreme cases where htaccess contents were merged into the appropriate sections of the config files. Aside from the performance issues, most new users st

[us...@httpd] [DISCUSS] .htaccess for all and everything

2009-03-13 Thread André Warnier
Hi. Browsing this list, I often get the impression that people use .htaccess files for just about everything, even probably cases where it would be better (for performance), clearer (to avoid secondary effects) and easier (for control and maintenance) to put functionally equivalent instructio

Re: [us...@httpd] Doubt about disabling access to PHP files

2009-03-13 Thread Justin Pasher
Leandro Silva wrote: Hi, In the company where I work, we have a windows server with apache/php instaled with a shared folder in our network. The workers of company can put any file on this folder to be visible at the internet through the http protocol. We are having a problem because they can

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

2009-03-13 Thread André Warnier
Andrea Visinoni wrote: Hi there, i need to implement url rewrite on a website and i need to obtain something like that: http://site.com/a/ -> index.php?1=a http://site.com/a/b/ -> index.php?1=a&2=b http://site.com/a/b/c/ -> index.php?1=a&2=b&3=c is this possible? by now i was able to do that

Re: [us...@httpd] JkLogLevel in mod_jk

2009-03-13 Thread Eric Covener
On Fri, Mar 13, 2009 at 11:21 AM, Jai wrote: > We are running mod_jk 1.2.26 and apache 2.0.63. We have configured > JkLogLevel to error in our jk.conf file. But still we noticed that > mod_jk.log is updated with following entries which are not errors. Since we > are getting these many logs our dis

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

2009-03-13 Thread Eric Covener
On Thu, Mar 12, 2009 at 6:02 PM, Andrea Visinoni wrote: > Hi there, > i need to implement url rewrite on a website and i need to obtain something > like that: > > http://site.com/a/ -> index.php?1=a > http://site.com/a/b/ -> index.php?1=a&2=b > http://site.com/a/b/c/ -> index.php?1=a&2=b&3=c Ther

Re: [us...@httpd] strace on httpd and .htaccess directories looked at

2009-03-13 Thread Eric Covener
On Fri, Mar 13, 2009 at 2:12 PM, Julien Pauli wrote: > Ok but why are they parsed ? > Is that a wanted behavior or some kind of unmastered stuff ? It's requested by setting AllowOverride to something other then None on the directory. It's not a bug. > > If I want to enable AllowOverride, the Doc

Re: [us...@httpd] Doubt about disabling access to PHP files

2009-03-13 Thread André Warnier
Leandro Silva wrote: Hi, In the company where I work, we have a windows server with apache/php instaled with a shared folder in our network. The workers of company can put any file on this folder to be visible at the internet through the http protocol. We are having a problem because they can pu

Re: [us...@httpd] Doubt about disabling access to PHP files

2009-03-13 Thread matt farey
This directory should not be under your document root, instead it should lie outside the web server root, and you should use a php script to handle the download and the file and folder listing. This way when the user clicks on "http://example.org/foo/bar/word.doc"; the "/foo/bar/word.doc" will b

Re: [us...@httpd] strace on httpd and .htaccess directories looked at

2009-03-13 Thread Julien Pauli
Ok but why are they parsed ? Is that a wanted behavior or some kind of unmastered stuff ? If I want to enable AllowOverride, the DocRoot and Aliases should then be next to a device root (aka /web) if I want to prevent too many kernel open(). Julien.P On Fri, Mar 13, 2009 at 6:43 PM, Eric Covener

[us...@httpd] Doubt about disabling access to PHP files

2009-03-13 Thread Leandro Silva
Hi, In the company where I work, we have a windows server with apache/php instaled with a shared folder in our network. The workers of company can put any file on this folder to be visible at the internet through the http protocol. We are having a problem because they can put PHP files on this fol

Re: [us...@httpd] Can name- and IP-based vhosts share an address:port pair?

2009-03-13 Thread Eric Covener
On Fri, Mar 13, 2009 at 12:19 PM, Mark H. Wood wrote: > We have HTTPD 2.2 with several IP-based VirtualHost definitions.  Now > one of our partners wants to add some name-based vhosts, and it would > be convenient to just keep using the same address:port as their > existing application.  What I me

RE: [us...@httpd] Apache Tunning

2009-03-13 Thread Anthony J. Biacco
1. I have to rail totally against this. The more you lower MaxRequestsPerChild, the more often apache is killing and recreating a child process. At numbers as low as 2000 or lower, you're starting to defeat the whole purpose of using the worker mpm. >=50% of apache's time is going to be spent mana

Re: [us...@httpd] strace on httpd and .htaccess directories looked at

2009-03-13 Thread Eric Covener
On Fri, Mar 13, 2009 at 12:19 PM, Julien Pauli wrote: > Hi all. > > I did know that activating .htaccess makes Apache look in all the > subdirectories of the DocRoot (or Vhost) to look for .htaccess files and > allow inheritence for them > > But passing strace on the httpd process shows currious t

RE: [us...@httpd] Build issue

2009-03-13 Thread Jorge Medina
Sorry, you are asking for runtime changes, that would also imply spending time monitoring the logs. I don't have the time. -Original Message- From: Andres Morey [mailto:and...@octopart.com] Sent: Friday, March 13, 2009 1:14 PM To: users@httpd.apache.org Subject: Re: [us...@httpd] Build is

Re: [us...@httpd] Build issue

2009-03-13 Thread Andres Morey
Jorge - would you mind setting your LogLevel to "info" to see if you are getting any SSL Errors. I have seen SSL errors with 2.2.11 on OS X and on linux. -Andres On Mar 13, 2009, at 1:10 PM, Jorge Medina wrote: I forgot to also let you know my PATH env variable: /usr/bin:/usr/openwin/bi

FW: [us...@httpd] Build issue

2009-03-13 Thread Jorge Medina
I forgot to also let you know my PATH env variable: /usr/bin:/usr/openwin/bin:/usr/ucb:/usr/sfw/bin:/opt/sfw/bin:/usr/local/ bin:/usr/ccs/bin:/usr/local/sbin -Original Message- From: Jorge Medina Sent: Friday, March 13, 2009 1:00 PM To: 'users@httpd.apache.org' Subject: RE: [us...@httpd

RE: [us...@httpd] Build issue

2009-03-13 Thread Jorge Medina
I build 2.2.11 succesfully in Solaris 10 (both x86 and sparcv9) I build OpenSSL, APR, and APR-util before building Apache. For OpenSSL I use: Configure thread shared solaris64-sparcv9-gcc --prefix=/opt/myapp/openssl make make install For the APR: CPP_FLAGS="-m64 -O3"

RE: [us...@httpd] Build issue

2009-03-13 Thread Anthony J. Biacco
Try putting the openssl bin directory in your PATH and the openssl lib directory in your LD_LIBRARY_PATH -Tony --- Manager, IT Operations Format Dynamics, Inc. 303-573-1800x27 abia...@formatdynamics.com http://www.formatdynamics

Re: [us...@httpd] Can name- and IP-based vhosts share an address:port pair?

2009-03-13 Thread André Warnier
Mark H. Wood wrote: We have HTTPD 2.2 with several IP-based VirtualHost definitions. Now one of our partners wants to add some name-based vhosts, and it would be convenient to just keep using the same address:port as their existing application. What I mean to do is just add another VirtualHost

[us...@httpd] strace on httpd and .htaccess directories looked at

2009-03-13 Thread Julien Pauli
Hi all. I did know that activating .htaccess makes Apache look in all the subdirectories of the DocRoot (or Vhost) to look for .htaccess files and allow inheritence for them But passing strace on the httpd process shows currious things : Apache seems to look behind the DocRoot as well, here it i

[us...@httpd] Can name- and IP-based vhosts share an address:port pair?

2009-03-13 Thread Mark H. Wood
We have HTTPD 2.2 with several IP-based VirtualHost definitions. Now one of our partners wants to add some name-based vhosts, and it would be convenient to just keep using the same address:port as their existing application. What I mean to do is just add another VirtualHost for each application,

[us...@httpd] JkLogLevel in mod_jk

2009-03-13 Thread Jai
We are running mod_jk 1.2.26 and apache 2.0.63. We have configured JkLogLevel to error in our jk.conf file. But still we noticed that mod_jk.log is updated with following entries which are not errors. Since we are getting these many logs our disk space is getting filled. I thought that error mode w

[us...@httpd] Build issue

2009-03-13 Thread Rex Binns
Hello all. I'm trying to compile Apache 2.2.11 on a Solaris 10 box and have run into some issues. When I run my configure with the --with-ssl option set to the installed location of my openSSL 0.9.8j binaries, I get a failure during configure saying that the SSLeay libraries are not found. check

Re: [us...@httpd] Apache Tunning

2009-03-13 Thread Tadeu Alves
nice one. Getting on this hook, in my server we run moodle i dunno if you guys know about it and a very high hits/second i wan't to know if going down about MaxRequestsPerChild 500 will be good to performance and any idea about changing my server variables to make it support more concurrent connect

Re: [us...@httpd] Question about proxy pass

2009-03-13 Thread chris
> But what I am getting is the following > > > http://appbox.mydomain.com/portal/site/mediakittemplate.logout > > The page comes but no graphics the log in box is there > > My proxy setting are has follows > >ProxyRequests Off >ProxyPreserveHost On > >ProxyPass /static_file ! >

Re: [us...@httpd] Enable Send file - SAN

2009-03-13 Thread Matus UHLAR - fantomas
On 12.03.09 13:00, si...@allumezinfotech.com wrote: > File system is : vxfs .. this is veritas file system for san. commercial version? Do you mount that from more than one machine, e.g. use any form of clustering? > i will chk more on enable send file thing then the problem with sendfile on net

Re: [us...@httpd] Apache Tunning

2009-03-13 Thread Gaurav Khambhala
Hi Kulbir, Gaurav wrote: Tadeu Alves wrote: i thibk that you can down the variable MaxRequestsPerChild 2 to 2000 it's too much and if the child process keeps the request well i't grows bigger and bigger in memory Even 2000 is too much. Various high load,high traffic servers also don'

Re: [us...@httpd] Apache Tunning

2009-03-13 Thread Gaurav
Tadeu Alves wrote: i thibk that you can down the variable MaxRequestsPerChild 2 to 2000 it's too much and if the child process keeps the request well i't grows bigger and bigger in memory Even 2000 is too much. Various high load,high traffic servers also don't have this much high value