Re: [us...@httpd] RewriteRule : How to retain Apache Host in the url

2010-11-02 Thread Igor Cicimov
Have you tried using the P flag in the RewriteRule? Cheers, Igor On Tue, Nov 2, 2010 at 4:26 PM, Tushar Chavan tushar.cha...@hotmail.comwrote: Hi Eric, We have set SERVER_NAME HTTP_HOST env. variables but still it is not working. Let me explain our scenario.

Re: [us...@httpd] mod_proxy_ajp failed to connect infrequently

2010-11-02 Thread Yu Kikuchi
Thank you for your advice. This is the part of config file. I'm creating some virtual hosts and they are much the same configurations. Listen 8010 NameVirtualHost xxx.xxx.19.40:8010 ServerName xxx.xxx.19.40:8008 : VirtualHost xxx.xxx.19.40:8010 CustomLog

[us...@httpd] MaxRequestsPerChild for worker mpm

2010-11-02 Thread alin vasile
Hi, We're noticing that the value provided for MaxRequestsPerChild is not picked up by httpd, but somehow the default value of 10,000 is used. We can see this because each request logs the pid and the request number that served it. httpd: 2.2.15 mpm: prefork Configuration: KeepAlive On

Re: [us...@httpd] MaxRequestsPerChild for worker mpm

2010-11-02 Thread Eric Covener
On Tue, Nov 2, 2010 at 8:57 AM, alin vasile alinachegal...@yahoo.com wrote: Hi,   We're noticing that the value provided for MaxRequestsPerChild is not picked up by httpd, but somehow the default value of 10,000 is used. mpm: prefork IfModule mpm_worker_module    MaxRequestsPerChild  

Re: [us...@httpd] MaxRequestsPerChild for worker mpm

2010-11-02 Thread alin vasile
sorry, my bad here. we are using the worker mpm. - Original Message From: Eric Covener cove...@gmail.com To: users@httpd.apache.org Sent: Tue, November 2, 2010 3:06:07 PM Subject: Re: [us...@httpd] MaxRequestsPerChild for worker mpm On Tue, Nov 2, 2010 at 8:57 AM, alin vasile

Re: [us...@httpd] MaxRequestsPerChild for worker mpm

2010-11-02 Thread Tom Evans
On Tue, Nov 2, 2010 at 1:10 PM, alin vasile alinachegal...@yahoo.com wrote: sorry, my bad here. we are using the worker mpm. Your original message said you were using prefork. httpd -l to confirm please. - The official

Re: [us...@httpd] MaxRequestsPerChild for worker mpm

2010-11-02 Thread alin vasile
It is worker... ./httpd -l Compiled in modules: core.c mod_authn_file.c mod_authn_default.c mod_authz_host.c mod_authz_groupfile.c mod_authz_user.c mod_authz_default.c mod_auth_basic.c mod_include.c mod_filter.c mod_log_config.c mod_env.c mod_setenvif.c mod_version.c

Re: [us...@httpd] MaxRequestsPerChild for worker mpm

2010-11-02 Thread alin vasile
After some debugging it proves that the configuration directive is correctly recognized by httpd. When we are logging the following variable in a module for each request : char *id = apr_psprintf(r-pool, % APR_PID_T_FMT -%d, getpid(), apr_atomic_inc32(next_id)); there are around 3- 4

[us...@httpd] IP based virtual hosts for SSL

2010-11-02 Thread Tonu Mikk
Hello, I hope I can get some guidance from users on this list on how to configure virtual hosts for Apache 2.2. Eventually I would like to serve content on port 80 and 443 on two URLs: dsdev.domain.com and madev.domain.com, and on port 80 only on webdev.domain.com. Here is my scenario... I

[us...@httpd] Complex URL Mapping

2010-11-02 Thread Sai A
Hi, I am trying to figure out how to achieve the following with Apache HTTP Server 2.0 which routes all request to a cluster of application servers. I have a bunch of applications running on various subdomains on a site. Broadly there are 3 categories of sites running on a domain name

Re: [us...@httpd] IP based virtual hosts for SSL

2010-11-02 Thread Sai A
Hi Tonu, I myself am a newbie so don't take my words as gospel, but it looks like you are getting your configuration wrong. In order to be able to access webdev.domain.com, you must set a NameVirtualHost from what I understand. You also haven't specified a document root for webdev which you

Re: [us...@httpd] MaxRequestsPerChild for worker mpm

2010-11-02 Thread Eric Covener
On Tue, Nov 2, 2010 at 12:17 PM, alin vasile alinachegal...@yahoo.com wrote: After some debugging it proves that the configuration directive is correctly recognized by httpd. When we are logging the following variable in a module for each request :  char *id = apr_psprintf(r-pool, %

Re: [us...@httpd] IP based virtual hosts for SSL

2010-11-02 Thread Eric Covener
VirtualHost 128.101.172.14:80 128.101.172.14:443 SSLEngine on You can't have SSL and non-SSL in a single vhost -- the non-ssl requests that are mapped to this vhost won't work. -- Eric Covener cove...@gmail.com - The

Re: [us...@httpd] IP based virtual hosts for SSL

2010-11-02 Thread chris
On Dienstag 02 November 2010, Eric Covener wrote: VirtualHost 128.101.172.14:80 128.101.172.14:443 SSLEngine on You can't have SSL and non-SSL in a single vhost -- the non-ssl requests that are mapped to this vhost won't work. But you can easily have two different vhosts, one on port 80,

Re: [us...@httpd] IP based virtual hosts for SSL

2010-11-02 Thread Tonu Mikk
Yes, indeed. Doing this works ... Thanks Chris! VirtualHost 128.101.172.14:80 http://128.101.172.14/ DocumentRoot /var/www/html/madev ServerName dsdev.oed.umn.edu Directory /var/www/html/madev AllowOverride All Options Indexes FollowSymLinks Order allow,deny Allow from all /Directory

Re: [us...@httpd] IP based virtual hosts for SSL

2010-11-02 Thread Tonu Mikk
I got the webdev.domain.com to work using the NameVirtualHost directive like this... NameVirtualHost 204.148.170.13:80 and configuring the the default Virtual Host like this: VirtualHost 204.148.170.13:80 ServerSignature email DirectoryIndex index.php index.html index.htm index.shtml

Re: [us...@httpd] MaxRequestsPerChild for worker mpm

2010-11-02 Thread alin vasile
It's actually max connections per child, but that makes your results even more wrong Shouldn't getpid() return the pid of the child? I counted some pids in our log files and they have around the same number of occurences. Maybe they die due to MaxSpareThreads though. Try setting it equal

Re: [us...@httpd] IP based virtual hosts for SSL

2010-11-02 Thread Saravanan Kannan
Dear Apache users, We need some guidance (or) installation steps on how to implement the PKI token certificates with Apache Web Server 2.2.3 for authentication purposes. Currently our production environment uses the iPlanet 6.1 webserver and Weblogic 10.0 as the application layer. The iPlanet 6.1

[us...@httpd] SetEnvIf and query string

2010-11-02 Thread Daniel Ganea
Can i use SetEnvIf and query string for logging different directory path? - 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,

[us...@httpd] Re: SetEnvIf and query string

2010-11-02 Thread Daniel Ganea
i want custom logs for the n directory paths: directory1and directory2, directoryn the log format now  LogFormat %h %v %u %t \%r\ %s %b \%{Referer}i\ \%{User-Agent}i\ \%{Cookie}i\ test  SetEnvIf Request_URI ^/directory1 customvar  SetEnvIf Request_URI ^/__utm\.gif$ customvar  CustomLog

[us...@httpd] Apache2, MySQL and mod_dbd

2010-11-02 Thread Niklas Johansson
Hello, I want to use Apache2's built in functionality to authenticate and authorize user for accessing certain pages, mod_dbd. I want to store the users in MySQL. How should I set up this? I have tried a lot of things and it seems to be really hard getting it to work. As I understand, there

[us...@httpd] webdav failure when using LOCKS from multiple threads to the same folder

2010-11-02 Thread Mike Henry
Hi all, I have discovered a problem with webdav. If multiple processes or threads are writing to unique files in the same folder on a webdav server using LOCKS, intermittent webdav errors will occur during the UNLOCK request. Server configuration: Centos 5.5. Tested with Apache/2.2.3,

[us...@httpd] Internet explorer saves Drupal Dynamic pages with ProxyPass enabled on Apache

2010-11-02 Thread Arunkumar Janarthanan
Hi, I have moved my site running on Drupal from with Boost enabled from one server to another, the only difference is I have used light weight ProxyPass Apache model in where the front end Apache running on port 80 servers static pages. There is another Apache running on backend with port 8080