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

2010-11-26 Thread alin vasile


 Worker MPM will *never* spawn more than StartServers children.


Can you detail this? Because I was aware that the maximum limit was given 
by ServerLimit.


  

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



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

2010-11-26 Thread alin vasile
This is what we followed in our configuration:

ServerLimit 40
ThreadsPerChild 15

MaxClients 600 = 40 * 15


- Original Message 
From: Igor Galić i.ga...@brainsware.org
To: users@httpd.apache.org
Sent: Fri, November 26, 2010 2:48:19 PM
Subject: Re: [us...@httpd] MaxRequestsPerChild for worker mpm


- alin vasile alinachegal...@yahoo.com wrote:

  Worker MPM will *never* spawn more than StartServers children.
 
 
 Can you detail this? Because I was aware that the maximum limit was
 given 
 by ServerLimit.

No.
http://httpd.apache.org/docs/current/mod/mpm_common.html#serverlimit

For the worker MPM, this directive in combination with
ThreadLimit sets the maximum configured value for MaxClients
for the lifetime of the Apache process.

and

With worker  use this directive only if your MaxClients and
ThreadsPerChild  settings require more than 16 server
processes (default).

i

-- 
Igor Galić

Tel: +43 (0) 664 886 22 883
Mail: i.ga...@brainsware.org
URL: http://brainsware.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: users-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org




-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



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

2010-11-25 Thread alin vasile


 Maybe they die due to MaxSpareThreads though.  Try setting it equal to
 MaxClients.


Thanks Eric, I put MaxSpareThreads  to be 15% of MaxClients and changed the 
restarting behaviour. Is there a formula or some guidelines for this directive?


- Original Message 
From: Eric Covener cove...@gmail.com
To: users@httpd.apache.org
Sent: Tue, November 2, 2010 8:05:58 PM
Subject: Re: [us...@httpd] MaxRequestsPerChild for worker mpm

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, % APR_PID_T_FMT -%d, getpid(),
 apr_atomic_inc32(next_id));

 there are around 3- 4 thousands occurrences for each pid, below the max 
setting
 of 100,000.


It's actually max connections per child, but that makes your results
even more wrong.

   MaxSpareThreads  30

Maybe they die due to MaxSpareThreads though.  Try setting it equal to
MaxClients.




 - Original Message 
 From: alin vasile alinachegal...@yahoo.com
 To: users@httpd.apache.org
 Sent: Tue, November 2, 2010 5:18:56 PM
 Subject: Re: [us...@httpd] MaxRequestsPerChild for worker mpm

 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
  worker.c
  http_core.c
  mod_mime.c
  mod_status.c
  mod_autoindex.c
  mod_asis.c
  mod_cgid.c
  mod_negotiation.c
  mod_dir.c
  mod_actions.c
  mod_userdir.c
  mod_alias.c
  mod_so.c





 - Original Message 
 From: Tom Evans tevans...@googlemail.com
 To: users@httpd.apache.org
 Sent: Tue, November 2, 2010 5:05:16 PM
 Subject: Re: [us...@httpd] MaxRequestsPerChild for worker mpm

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




 -
 The official User-To-User support forum of the Apache HTTP Server Project.
 See URL:http://httpd.apache.org/userslist.html for more info.
 To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
 For additional commands, e-mail: users-h...@httpd.apache.org




 -
 The official User-To-User support forum of the Apache HTTP Server Project.
 See URL:http://httpd.apache.org/userslist.html for more info.
 To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
 For additional commands, e-mail: users-h...@httpd.apache.org





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


  

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[us...@httpd] 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
KeepAliveTimeout 2
MaxKeepAliveRequests 100

IfModule mpm_worker_module
ServerLimit  40 
StartServers  5
MaxClients  600
MinSpareThreads  15
MaxSpareThreads  30 
ThreadsPerChild  15
MaxRequestsPerChild  10
/IfModule

Regards,
Alin



  

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



Re: [us...@httpd] 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 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  10
 /IfModule


ifModule is no-oping that stanza since you're not loading worker.

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


  

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] 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
  worker.c
  http_core.c
  mod_mime.c
  mod_status.c
  mod_autoindex.c
  mod_asis.c
  mod_cgid.c
  mod_negotiation.c
  mod_dir.c
  mod_actions.c
  mod_userdir.c
  mod_alias.c
  mod_so.c





- Original Message 
From: Tom Evans tevans...@googlemail.com
To: users@httpd.apache.org
Sent: Tue, November 2, 2010 5:05:16 PM
Subject: Re: [us...@httpd] MaxRequestsPerChild for worker mpm

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


  

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] 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 thousands occurrences for each pid, below the max setting 
of 100,000. 




- Original Message 
From: alin vasile alinachegal...@yahoo.com
To: users@httpd.apache.org
Sent: Tue, November 2, 2010 5:18:56 PM
Subject: Re: [us...@httpd] MaxRequestsPerChild for worker mpm

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
  worker.c
  http_core.c
  mod_mime.c
  mod_status.c
  mod_autoindex.c
  mod_asis.c
  mod_cgid.c
  mod_negotiation.c
  mod_dir.c
  mod_actions.c
  mod_userdir.c
  mod_alias.c
  mod_so.c





- Original Message 
From: Tom Evans tevans...@googlemail.com
To: users@httpd.apache.org
Sent: Tue, November 2, 2010 5:05:16 PM
Subject: Re: [us...@httpd] MaxRequestsPerChild for worker mpm

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


  

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org


  

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] 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 to 
MaxClients.

The load is constantly 30 hits per second. We have around 7 httpd processes 
 running, 2 of them remaining active since the server start, and the rest being 
restarted at each 10 minutes. Increasing the MaxRequestsPerChild to 10,000,000 
leads to the same behaviour, but this time 3 child processes are not being 
restarted.


- Original Message 
From: Eric Covener cove...@gmail.com
To: users@httpd.apache.org
Sent: Tue, November 2, 2010 8:05:58 PM
Subject: Re: [us...@httpd] MaxRequestsPerChild for worker mpm

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, % APR_PID_T_FMT -%d, getpid(),
 apr_atomic_inc32(next_id));

 there are around 3- 4 thousands occurrences for each pid, below the max 
setting
 of 100,000.


It's actually max connections per child, but that makes your results
even more wrong.

   MaxSpareThreads  30

Maybe they die due to MaxSpareThreads though.  Try setting it equal to
MaxClients.




 - Original Message 
 From: alin vasile alinachegal...@yahoo.com
 To: users@httpd.apache.org
 Sent: Tue, November 2, 2010 5:18:56 PM
 Subject: Re: [us...@httpd] MaxRequestsPerChild for worker mpm

 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
  worker.c
  http_core.c
  mod_mime.c
  mod_status.c
  mod_autoindex.c
  mod_asis.c
  mod_cgid.c
  mod_negotiation.c
  mod_dir.c
  mod_actions.c
  mod_userdir.c
  mod_alias.c
  mod_so.c





 - Original Message 
 From: Tom Evans tevans...@googlemail.com
 To: users@httpd.apache.org
 Sent: Tue, November 2, 2010 5:05:16 PM
 Subject: Re: [us...@httpd] MaxRequestsPerChild for worker mpm

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




 -
 The official User-To-User support forum of the Apache HTTP Server Project.
 See URL:http://httpd.apache.org/userslist.html for more info.
 To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
 For additional commands, e-mail: users-h...@httpd.apache.org




 -
 The official User-To-User support forum of the Apache HTTP Server Project.
 See URL:http://httpd.apache.org/userslist.html for more info.
 To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
 For additional commands, e-mail: users-h...@httpd.apache.org





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


  

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Apache 2.2.11 mod_proxy returns 503 (service unavailable) under load

2010-07-16 Thread alin vasile
Hi,

 Since in  your apache logs you can see a  timeout while connecting to the 
backend :

  [Wed Jul 14 15:59:46 2010] [error] (110)Connection timed out: proxy:
HTTP:  attempt to connect to 1xx.7x.xxx.xxx:80 (web.mycompany.net)
failed

  it is normal that there not to have any logs at that time. 

  The problem here is that your backend may not support a spike load or can 
hove 
some capacity problems.





From: pratyoosh sharma pratyoosh.sha...@gmail.com
To: users@httpd.apache.org
Sent: Fri, July 16, 2010 7:10:34 AM
Subject: [us...@httpd] Apache 2.2.11 mod_proxy returns 503 (service 
unavailable) 
under load

We are running a high volume portal that uses Apache 2.2.11 mod_proxy
to reverse proxy content from downstream apache- application servers,
we recently started observing 503 errors on the Apache which happen
sporadically throughout the day during activity on random requests.

The requests returned with 503 don't appear on the backend apache
access logs at all, there are no 503 failures on backend
apache.Network traces of connectivity between frontend apache  the
backend don't reveal anything either.

An interesting pattern is the failed requests always take ~3-4 seconds

Frontend Apache:
Error log:
[Wed Jul 14 15:59:46 2010] [error] (110)Connection timed out: proxy:
HTTP: attempt to connect to 1xx.7x.xxx.xxx:80 (web.mycompany.net)
failed
[Wed Jul 14 15:59:46 2010] [error] ap_proxy_connect_backend disabling
worker for (web.mycompany.net)
Access log:
USER13 xx.xx.xxx.xxx - [14/Jul/2010:15:59:43 -0400] GET
/myapp/web/css/ext-all.css HTTP/1.1 503 1030  3041412

Backend:
This request never reached the backend server  doesn't shows up in
the access logs of backend server


All the failing requests like the above take ~3 seconds so i guess its
like a timeout but i can't find any such configuration.

Is there some known Apache bug for this behavior? We have retry=0 
disablereuse on for all proxy pass directives

What kind of starvation should i look for in Apache we have mod_status
enabled, file descriptor limit set a 64K, CPU is almost always idle 
25 Gig memory free on the server.

Thanks

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org


  

Re: [us...@httpd] using ProxyPreserveReverseCookie

2010-07-05 Thread alin vasile
What do you mean by 

My virtual host configuration is as follows
I  want to use 
ProxyPassReverseCookieDomain
2 websites are not working while rest 
are working in this setup

What doesn't work?





From: Tapas Mishra mightydre...@gmail.com
To: users@httpd.apache.org
Sent: Mon, July 5, 2010 8:45:39 AM
Subject: [us...@httpd] using ProxyPreserveReverseCookie

I am not clear with
ProxyPassReverseCookieDomain and ProxyPassReverseCookiePath
I checked this page
http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypassreverse
but I am not able to understand it
I am having 8 websites running on a machine one of them is not getting
connected via internet



My virtual host configuration is as follows
I  want to use ProxyPassReverseCookieDomain
2 websites are not working while rest are working in this setup

is it some how possible to make it I am totally confused

VirtualHost *:80

ServerAdmin webmas...@localhost
ServerName mydomain.com
ProxyRequests off
Proxy *
Order deny,allow
Allow from all
/Proxy

ProxyPreserveHost On

ProxyPass /something1 http://192.168.1.5/something1
ProxyPassReverse /something1 http://192.168.1.5/something1

ProxyPass /something2 http://192.168.1.5/something2/www/
ProxyPassReverse /something2 http://192.168.1.5/something2/www/

ProxyPass /something3 http://192.168.1.5/something3/
ProxyPassReverse /something3 http://192.168.1.5/something3/

ProxyPass /something4 http://192.168.1.5/something4/
ProxyPassReverse /something4 http://192.168.1.5/something4/

ProxyPass /something5 http://192.168.1.5/something5
ProxyPassReverse /something5 http://192.168.1.5/something5

   ProxyPass /something6 http://192.168.1.5:8080/something6
   ProxyPassReverse /something6 http://192.168.1.5:8080/something6

ProxyPass /something7 http://192.168.1.5:6060/portal
ProxyPassReverse /something7 http://192.168.1.5:6060/portal

ProxyPass / http://192.168.1.5/
ProxyPassReverse / http://192.168.1.5/

ErrorLog /var/log/apache2/mydomain_error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel debug

CustomLog /var/log/apache2/mydomain_access.log combined

CustomLog /var/log/apache2/mydomain-resp_log resp
LogFormat %D %{X-Forwarded-For}i %t resp

/VirtualHost



-- 
Tapas

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org


  

Re: [us...@httpd] using ProxyPreserveReverseCookie

2010-07-05 Thread alin vasile
try logging in both from the intranet and internet and check the http 
communication maybe the cookies are sent for the wrong domains.





From: Tapas Mishra mightydre...@gmail.com
To: users@httpd.apache.org
Sent: Mon, July 5, 2010 12:07:48 PM
Subject: Re: [us...@httpd] using ProxyPreserveReverseCookie

On two websites when people are logging they get a session if they
login from inside LAN.
but if people login from internet then it is not possible for them to login.

These applications are not developed by me so some one suggested me
X-Forwarded-For header is not being properly handled by
these applications so this problem is coming.

I have not developed any of those applications
I downloaded them from internet and I am trying to use them.

If some one is trying to reach them by internet i.e. login then this
problem is coming.

-- 
Tapas

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org


  

Re: [us...@httpd] using ProxyPreserveReverseCookie

2010-07-05 Thread alin vasile
Try accessing the internet part with Firefox and an add-on that logs the http 
communication and check there if the cookies have the same domain as your 
internet address.





From: Tapas Mishra mightydre...@gmail.com
To: users@httpd.apache.org
Sent: Mon, July 5, 2010 2:10:01 PM
Subject: Re: [us...@httpd] using ProxyPreserveReverseCookie

From intranet they are working absolutely perfect.But from internet it
is not working.
How do I check the cookies you are saying  I do not have any idea to
this problem of cookies.
see this link
http://www.atutor.ca/view/7/20279/1.html
this is what I am trying to do.


-- 
Tapas

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org


  

[us...@httpd] RewriteRule for requests without additional slashes

2010-07-01 Thread alin vasile
Hi,
  
   Does anyone know how can a RewriteRule must be written to match only 
requests urls that have no slashes except the initial one? For example to match 
/index.html, /login.do but not /path/login.jsp or /home/reports/daily.pdf.

Thanks,
Alin


  

Re: [us...@httpd] RewriteRule for requests without additional slashes

2010-07-01 Thread alin vasile
sorry, I meant RewriteCond and not RewriteRule.





From: alin vasile alinachegal...@yahoo.com
To: users@httpd.apache.org
Sent: Thu, July 1, 2010 10:07:59 PM
Subject: [us...@httpd] RewriteRule for requests without additional slashes


Hi,
  
   Does anyone know how can a RewriteRule must be written to match only 
requests urls that have no slashes except the initial one? For example to match 
/index.html, /login.do but not /path/login.jsp or /home/reports/daily.pdf.

Thanks,
Alin



  

Re: [us...@httpd] RewriteRule for requests without additional slashes

2010-07-01 Thread alin vasile
thanks. I completely forgot about the greedy matching. now my qustion looks 
silly :)





From: Eric Covener cove...@gmail.com
To: users@httpd.apache.org
Sent: Thu, July 1, 2010 10:53:56 PM
Subject: Re: [us...@httpd] RewriteRule for requests without additional slashes

    Does anyone know how can a RewriteRule must be written to match only
 requests urls that have no slashes except the initial one? For example to
 match /index.html, /login.do but not /path/login.jsp or
 /home/reports/daily.pdf.

IOW completely non-slash characters between the first slash and the
end of the URL:

  RewriteCond %{REQUEST_URI} ^/[^/]*$

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


  

Re: [us...@httpd] Help required for Configuring Apache Web Server For High Availibility

2010-06-25 Thread alin vasile
put your apache error log  to debug and check what it says...





From: Karthik Nanjangude karthik.nanjang...@xius-bcgi.com
To: users@httpd.apache.org users@httpd.apache.org
Sent: Fri, June 25, 2010 1:38:38 PM
Subject: RE: [us...@httpd] Help required for Configuring Apache Web Server For 
High Availibility

 
Hi
 
Ø   The 502 bad gateway error is
 
Sorry for  Hi-jacking up this Thread.
 
I too have some similar Issues with JBOSS /
Apache   LB process
 
I my case Apache is Displaying Bad Gateway  
[  http://.application.com/aap1
]
 
But  when the same page is being  direct
call  [ http://application:8081/aap1 ] internal direct hit to JBOSS server 
displays the  page properly
 
 
Between 2 instance of JBOSS
4.2.1 and Apache 2.x we use mod_jk [ available from Apache Tomcat Connector Web
site ]
 
http://tomcat.apache.org/connectors-doc/news/20100101.html#1%20March%20-%20JK-1.2.30%20released
 
 
 
 
with regards
Karthik
 


 
From:HERALD
[mailto:herald.j...@avenues.info] 
Sent: Tuesday, June 22, 2010 6:57
PM
To: users@httpd.apache.org
Subject: RE: [us...@httpd] Help
required for Configuring Apache Web Server For High Availibility
 
Hi 
 
Thanks again, will
check the logs for any errors and get back to you. 
 
 
Best
Regards
Herald
Jose
Ph: - 91
22 6742 Ext :-( 906)
 
 
From:alin vasile
[mailto:alinachegal...@yahoo.com] 
Sent: Tuesday, June 22, 2010 6:09
PM
To: users@httpd.apache.org
Cc: aniruddha; an...@avenues.info;
anup...@avenues.info; nandkumar.me...@avenues.info
Subject: Re: [us...@httpd] Help
required for Configuring Apache Web Server For High Availibility
 
Clearly
those exceptions appear in jboss. Check if you have a stacktrace associated and
try to determine exactly which peer is involved when they appear.
 


 
From:HERALD
herald.j...@avenues.info
To: users@httpd.apache.org
Cc: aniruddha
aniruddha.r...@avenues.info; an...@avenues.info; anup...@avenues.info;
nandkumar.me...@avenues.info
Sent: Tue, June 22, 2010 2:56:56
PM
Subject: RE: [us...@httpd] Help
required for Configuring Apache Web Server For High Availibility
Hi
Thanks  Alin
 
The 502 bad gateway error is  followed
by these error
 
· java.net.SocketException: Connection reset
· Blank request
· java.net.SocketException: Unexpected end of file from server
 
Due you think all these are due to Jboss
server.
 
Best
Regards
Herald
Jose
Ph: - 91 22
6742 Ext :-( 906)
 
 
From:alin vasile [mailto:alinachegal...@yahoo.com] 
Sent: Tuesday, June 22, 2010 5:08
PM
To: users@httpd.apache.org
Subject: Re: [us...@httpd] Help
required for Configuring Apache Web Server For High Availibility
 
This
response suggest more that your jboss setup doesn't handle the load
 


 
From:HERALD herald.j...@avenues.info
To: users@httpd.apache.org
Cc: aniruddha
aniruddha.r...@avenues.info; an...@avenues.info; anup...@avenues.info;
nandkumar.me...@avenues.info
Sent: Tue, June 22, 2010 2:15:55
PM
Subject: [us...@httpd] Help
required for Configuring Apache Web Server For High Availibility
Hi 
We
are having issues configuring our servers for High Traffic. We receive 502 Bad
gateway Error after a specified number of Hits, it persists for a while and
then resumes normal operation after a while. We would appreciate any help and
thanks in advance.  Configuration Files would be shared if required.
Module
used : Apache 2.2.14 with mod_jk -- Jboss 4.2.3
 
Best Regards
Herald Jose
Ph: - 91 22
6742 Ext :-( 906)


  

Re: [us...@httpd] endless loop as soon as second BalancerMember is added

2010-06-23 Thread alin vasile
try removing the directive

ProxyPassReverse / balancer://mycluster/




From: nos...@kaigrabfelder.de nos...@kaigrabfelder.de
To: users@httpd.apache.org
Sent: Wed, June 23, 2010 6:11:46 PM
Subject: [us...@httpd] endless loop as soon as second BalancerMember is added

Hi there, 

we are using mod_proxy, mod_proxy_ajp and mod_proxy_balancer for
loadbalancing between two tomcat servers.

We are using apache 2.2.3 (Linux/SUSE) (on suse linux enterprise server)
and two tomcats 6.0.26

Our proxy related apache configuration looks like

Proxy balancer://mycluster/
BalancerMember ajp://localhost:7009 route=jvmtest01
BalancerMember ajp://localhost:7010 route=jvmtest02
/Proxy
ProxyPass / balancer://mycluster/ stickysession=JSESSIONID|jsessionid
nofailover=On
ProxyPassReverse / balancer://mycluster/

The tomcat setings.xml seems to be correct as well:

tomcat1
Connector port=7080 protocol=HTTP/1.1 connectionTimeout=2
redirectPort=8443 / 
Connector port=7009 protocol=AJP/1.3 redirectPort=8443 / 
Engine name=Catalina defaultHost=localhost jvmRoute=jvmtest01

tomcat2
Connector port=7081 protocol=HTTP/1.1 connectionTimeout=2
redirectPort=8443 /  
Connector port=7010 protocol=AJP/1.3 redirectPort=8443 / 
Engine name=Catalina defaultHost=localhost jvmRoute=jvmtest02

As long as only one balancermember is defined everything works as expected.
So
Proxy balancer://mycluster/
# BalancerMember ajp://localhost:7009 route=jvmtest01
BalancerMember ajp://localhost:7010 route=jvmtest02
/Proxy
As well as 
Proxy balancer://mycluster/
BalancerMember ajp://localhost:7009 route=jvmtest01
# BalancerMember ajp://localhost:7010 route=jvmtest02
/Proxy
is working.

But as soon as both BalancerMember are configured we are getting an endless
loop once we try to access the app. See the following requests and
responses that the browser is performing below. Looks like the stickyness
somehow does not work? The funny thing is that the same setup as above
works on an ubuntu system with Apache/2.2.8 (Ubuntu)

One additional part of information is the fact that while starting
troublemaking apache (the one on suse) the error Cannot determine host
name... occurs. Could it be that this is the reason why it does not work?
Unfortunately I wasn't able to correct that error message because I no
longer have root access to the system.

Any other ideas of how to possibly fix this?

Request 1
GET /app-context/login.0 HTTP/1.1
Host: hostname.de
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.3)
Gecko/20100401 Firefox/3.6.3
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Cookie: JSESSIONID=3D0A27633D06E88E58C345F687E48A84.jvmtest01

Response 1
HTTP/1.1 302 Moved Temporarily
Date: Wed, 23 Jun 2010 14:53:56 GMT
Set-Cookie: JSESSIONID=67EF7D0025583CCBEA7F8CB19E979F33.jvmtest02;
Path=/app-context
Location: http://hostname.de/app-context/login.0
Content-Length: 0
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/plain

Request 2
GET /app-context/login.0 HTTP/1.1
Host: hostname.de
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.3)
Gecko/20100401 Firefox/3.6.3
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Cookie: JSESSIONID=67EF7D0025583CCBEA7F8CB19E979F33.jvmtest02

Response 2
HTTP/1.1 302 Moved Temporarily
Date: Wed, 23 Jun 2010 14:53:56 GMT
Set-Cookie: JSESSIONID=75965FC0843D5021F8FCAF7EE18F53F2.jvmtest01;
Path=/app-context
Location: http://hostname.de/app-context/login.0
Content-Length: 0
Keep-Alive: timeout=15, max=99
Connection: Keep-Alive
Content-Type: text/plain

Request 3
GET /app-context/login.0 HTTP/1.1
Host: hostname.de
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.3)
Gecko/20100401 Firefox/3.6.3
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Cookie: JSESSIONID=75965FC0843D5021F8FCAF7EE18F53F2.jvmtest01

Response 3
HTTP/1.1 302 Moved Temporarily
Date: Wed, 23 Jun 2010 14:53:56 GMT
Set-Cookie: JSESSIONID=F97F81DC80CE08C086C720CFA063AFB1.jvmtest02;
Path=/app-context
Location: http://hostname.de/app-context/login.0
Content-Length: 0
Keep-Alive: timeout=15, max=98
Connection: Keep-Alive
Content-Type: text/plain




-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  

Re: [us...@httpd] Help required for Configuring Apache Web Server For High Availibility

2010-06-22 Thread alin vasile
This response suggest more that your jboss setup doesn't handle the load





From: HERALD herald.j...@avenues.info
To: users@httpd.apache.org
Cc: aniruddha aniruddha.r...@avenues.info; an...@avenues.info; 
anup...@avenues.info; nandkumar.me...@avenues.info
Sent: Tue, June 22, 2010 2:15:55 PM
Subject: [us...@httpd] Help required for Configuring Apache Web Server For High 
Availibility

 
Hi 
We
are having issues configuring our servers for High Traffic. We receive 502 Bad
gateway Error after a specified number of Hits, it persists for a while and
then resumes normal operation after a while. We would appreciate any help and
thanks in advance.  Configuration Files would be shared if required.
Module
used : Apache 2.2.14 with mod_jk -- Jboss 4.2.3
 
Best
Regards
Herald
Jose
Ph: - 91 22 6742 Ext :-( 906)


  

Re: [us...@httpd] Help required for Configuring Apache Web Server For High Availibility

2010-06-22 Thread alin vasile
Clearly those exceptions appear in jboss. Check if you have a stacktrace 
associated and try to determine exactly which peer is involved when they appear.





From: HERALD herald.j...@avenues.info
To: users@httpd.apache.org
Cc: aniruddha aniruddha.r...@avenues.info; an...@avenues.info; 
anup...@avenues.info; nandkumar.me...@avenues.info
Sent: Tue, June 22, 2010 2:56:56 PM
Subject: RE: [us...@httpd] Help required for Configuring Apache Web Server For 
High Availibility

 
Hi
Thanks
 Alin
 
The
502 bad gateway error is  followed by these error
 
· java.net.SocketException: Connection reset
· Blank request
· java.net.SocketException: Unexpected end
of file from server
 
Due
you think all these are due to Jboss server.
 
Best Regards
Herald Jose
Ph: - 91 22 6742 Ext :-( 906)
 
 
From:alin vasile
[mailto:alinachegal...@yahoo.com] 
Sent: Tuesday, June 22, 2010 5:08 PM
To: users@httpd.apache.org
Subject: Re: [us...@httpd] Help required for Configuring Apache Web
Server For High Availibility
 
This response suggest more that your jboss setup doesn't
handle the load
 


 
From:HERALD herald.j...@avenues.info
To: users@httpd.apache.org
Cc: aniruddha aniruddha.r...@avenues.info; an...@avenues.info;
anup...@avenues.info; nandkumar.me...@avenues.info
Sent: Tue, June 22, 2010 2:15:55 PM
Subject: [us...@httpd] Help required for Configuring Apache Web Server
For High Availibility
Hi 
We are having issues configuring our servers for High
Traffic. We receive 502 Bad gateway Error after a specified number of Hits, it
persists for a while and then resumes normal operation after a while. We would
appreciate any help and thanks in advance.  Configuration Files would be
shared if required.
Module used : Apache 2.2.14 with mod_jk -- Jboss 4.2.3
 
Best
Regards
Herald
Jose
Ph: - 91 22 6742 Ext :-( 906)


  

Re: [us...@httpd] Upgrade from version 2.0.61 to 2.2.15

2010-05-12 Thread alin vasile
You'll have to determine if you use any dynamic modules (loaded via the 
LoadModule directive).

After that check the ChangeLog for Apache 2.2 and see if there are any 
differences that may affect you.





From: Yossi Ben-Gigi yossi.ben-g...@exlibrisgroup.com
To: users@httpd.apache.org
Sent: Mon, May 10, 2010 7:33:06 AM
Subject: RE: [us...@httpd] Upgrade from version 2.0.61 to 2.2.15

 
Hi, 
 
I am using the following modules:
  mod_perl
  mod_userdir
  mod_dir 
  mod_mime
  mod_mime_magic
  mod_alias
  mod_autoindex
  mod_negotiation
  mod_setenvif
  mod_ssl
 
 
Thanks.
 
 



 From: alin vasile 
[mailto:alinachegal...@yahoo.com] 
Sent: Sunday, May 09, 2010 3:45 
PM
To: users@httpd.apache.org
Subject: Re: [us...@httpd] 
Upgrade from version 2.0.61 to 2.2.15


what modules do you use?





 From: Yossi Ben-Gigi 
yossi.ben-g...@exlibrisgroup.com
To: users@httpd.apache.org
Sent: Sun, May 9, 2010 3:15:16 
PM
Subject: [us...@httpd] 
Upgrade from version 2.0.61 to 2.2.15


Hi All, 
 
I 
am using Apache version 2.0.61 in my application and all is working 
well.
 
Will I be required to perform any changes after 
upgrading to version 2.2.15?  (Code or Configuration)
 
Thanks.


  

Re: [us...@httpd] Upgrade from version 2.0.61 to 2.2.15

2010-05-09 Thread alin vasile
what modules do you use?





From: Yossi Ben-Gigi yossi.ben-g...@exlibrisgroup.com
To: users@httpd.apache.org
Sent: Sun, May 9, 2010 3:15:16 PM
Subject: [us...@httpd] Upgrade from version 2.0.61 to 2.2.15


Hi All, 
 
I 
am using Apache version 2.0.61 in my application and all is working 
well.
 
Will I be required to perform any changes after 
upgrading to version 2.2.15?  (Code or Configuration)
 
Thanks.



Re: [us...@httpd] redirecting to index.jsp using rewrite rules

2010-05-03 Thread alin vasile
DirectoryIndex index.jsp ?




From: Charan charan...@gmail.com
To: users@httpd.apache.org
Sent: Mon, May 3, 2010 9:46:51 PM
Subject: [us...@httpd] redirecting to index.jsp using rewrite rules

Hi, 

I'm using the below rule to redirect to index.jsp if user doesn't add index.jsp 
to the url. Is it possible to have one rule instead of the below repeating rule.

RewriteEngine On
RewriteCond %{REQUEST_URI} /en/[a-z]*/$
RewriteCond %{REQUEST_URI} !\.jsp$
RewriteRule ^(.*)$ $1index.jsp [R=301,L]
RewriteCond %{REQUEST_URI} /en/[a-z]*/[a-z]*_?[a-z]*/$
RewriteCond %{REQUEST_URI} !\.jsp$
RewriteRule ^(.*)$ $1index.jsp [R=301,L]


Thanks,
Charan


  

[us...@httpd] Internal server error simulation using mod_rewrite

2010-04-26 Thread alin vasile
Hi,
 
 Can i use the follwoing rule to simulate an internal server error?

RewriteRule .* - [R=500,L]

Thanks,
Alin



  

Re: [us...@httpd] Reverse Proxy https to http

2010-04-22 Thread alin vasile
Shouldn't be  ProxyPassReverse / https://10.173.90.167:8443/  ?






From: GB GB gbcy...@gmail.com
To: users@httpd.apache.org
Sent: Thu, April 22, 2010 3:56:36 PM
Subject: Re: [us...@httpd] Reverse Proxy https to http

The version I am using is
Server version: Apache/2.0.54
Server built:   Sep 23 2005 15:28:48

ProxyHTMLURLMap doesn't work with what I am using.


On Thu, Apr 22, 2010 at 8:32 AM, Mauri lai...@gmail.com wrote:
 Hi GB.

 I have a similar solution.

 Client -- https://mysite.com-- proxy -- http://backend.

 the url in the client broswer is https://mysite.com.

 this is my /etc/httpd/conf.d/ssl.conf:



 LoadModule ssl_module modules/mod_ssl.so
 LoadFile   /usr/lib/libxml2.so
 LoadModule proxy_html_module modules/mod_proxy_html.so
 LoadModule xml2enc_module modules/mod_xml2enc.so
 Listen 443
 AddType application/x-x509-ca-cert .crt
 AddType application/x-pkcs7-crl.crl
 SSLPassPhraseDialog  builtin
 SSLSessionCache shmcb:/var/cache/mod_ssl/scache(512000)
 SSLSessionCacheTimeout  300
 SSLMutex default
 SSLRandomSeed startup file:/dev/urandom  256
 SSLRandomSeed connect builtin
 SSLCryptoDevice builtin

 NameVirtualHost mysite.com:443
 VirtualHost mysite.com:443
 ServerName mysite.com
 ProxyRequests off
 ProxyPass / https://10.173.90.167:8443/
 ProxyHTMLURLMap https://10.173.90.167:8443 /
 Location /
 ProxyPassReverse https://10.173.90.167:8443/
 ProxyHTMLEnable On
 ProxyHTMLURLMap  /  /
 RequestHeaderunset  Accept-Encoding
 /Location

 SSLEngine on
 SSLProxyEngine on
 SSLProtocol all -SSLv2
 SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW
 SSLCertificateFile /etc/httpd/cert/IT_Global_Alternative.cer
 SSLCertificateKeyFile /etc/httpd/cert/IT_Global_Alternative.key
 SSLCertificateChainFile /etc/httpd/cert/IT_Global_CA.cer

 Files ~ \.(cgi|shtml|phtml|php3?)$
 SSLOptions +StdEnvVars
 /Files
 Directory /var/www/cgi-bin
 SSLOptions +StdEnvVars
 /Directory
 SetEnvIf User-Agent .*MSIE.* \
  nokeepalive ssl-unclean-shutdown \
  downgrade-1.0 force-response-1.0
 CustomLog logs/ssl_request_log \
   %t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \%r\ %b
 /VirtualHost






 2010/4/22 GB GB gbcy...@gmail.com

 Basically what goes on when the user types in https://mydomain.com/lsw
 he gets an authentification page from the backend application. Once he
  enters his credentials, I notice a POST in the apache logs.

 This is what the user types in:
 https://mydomain.com/lsw/clientele/gen/authentification.jsp
 he enters his credentials, then a POST appears in the log :
 POST /lsw/clientele/gen/authentification.jsp HTTP/1.1 302

 and in the browser I get the following: The connection has timed out


 http://backend2.ca/lsw/clientele/ses/pagePersonnelle.jsp?Mouftah=VXV744A9SVZMU9P

 the above link doesn't work because its http rather than https!!

 If I add the s manually

 https://backend2.ca/lsw/clientele/ses/pagePersonnelle.jsp?Mouftah=VXV744A9SVZMU9P
  then it works.

 1)So how can I force the protocole to remain https once the client
 does a POST.
 2)I have noticed in many examples that people use PreserveHost on, in
 my case, if activate
 PreserveHost on then I cant even get the first page to work:

 Thx in advance




 On Wed, Apr 21, 2010 at 4:56 AM, Krist van Besien
 krist.vanbes...@gmail.com wrote:
  On Tue, Apr 20, 2010 at 6:41 PM, GB GB gbcy...@gmail.com wrote:
 
 
 
  #this for some reason becomes http from client perspective
  #PreserveHost on does not work with lsw, so I disabled it
  RewriteRule   ^/lsw(.*)$http://backend2.ca:8082/lsw$1
  [NC,P,L]
  ProxyPassReverse  /lsw  http://backend2.ca:8082/lsw
  Redirect permanent /lsw https://mydomain.com/lsw
 
  First of all: Remove the Redirect Permanent. It's not needed (as
  this virtualhost only gets https requests anyway) and confuses. If you
  want to make sure that people who accidentaly land on the http site
  get redirected to https you need to put a redirect in the http virtual
  host.
 
  Secondly: Look at what your backend produces. It is very well possible
  that it passes html pages back to the client that contain http://
  style URLs. RewriteRule only operates on request URLs,
  ProxyPassReverse only on redirects passed back. The content passed
  back by the backend is not modified.
 
  HTH,
 
  Krist
 
  --
  krist.vanbes...@gmail.com
  kr...@vanbesien.org
  Bremgarten b. Bern, Switzerland
  --
  A: It reverses the normal flow of conversation.
  Q: What's wrong with top-posting?
  A: Top-posting.
  Q: What's the biggest scourge on plain text email discussions?
 
  -
  The official User-To-User support forum of the Apache HTTP Server
  Project.
  See http://httpd.apache.org/userslist.html for more info.
  To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   from the digest: 

Re: [us...@httpd] Running script from configuration file of Apache2

2010-04-21 Thread alin vasile
only if you don't have rewrite rules that force proxy ([P])





From: Petr Hracek phrac...@gmail.com
To: users@httpd.apache.org
Sent: Wed, April 21, 2010 4:41:43 PM
Subject: Re: [us...@httpd] Running script from configuration file of Apache2

OK. Thanks but for the clarification on the
http://httpd.apache.org/docs/2.2/mod/mod_proxy.html
in section Forward Proxies and Reverse Proxyies is mentioned:

A reverse proxy is activated using the ProxyPass directiveor the [P] flag to 
the RewriteRule directive.  It is not necessary to turn ProxyRequests on in 
order to configure a reverse proxy.

Does it mean that Rewrite Rule has to be mentioned always?

BR
Petr

2010/4/21 Tom Evans tevans...@googlemail.com

On Wed, Apr 21, 2010 at 2:21 PM, Petr Hracek phrac...@gmail.com wrote:

 Is there any possibility how to work without RewriteRule
 with turn on RewriteRule?

 thank you in advance
 Petr


No, not really.


Cheers

Tom

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org




-- 
Best Regards / S pozdravem
Petr Hracek



  

Re: [us...@httpd] Reverse proxy question

2010-04-20 Thread alin vasile
Hi,

  I am unable to set the proxy worker properties (connection pool size etc.) . 
If I remove my all Proxy  Rewrite directives, I still see this in logs:

 proxy: initialized worker 0 in child 29085 for (*) min=0 max=7 smax=7

How this gets initialized?





From: alin vasile alinachegal...@yahoo.com
To: users@httpd.apache.org
Sent: Sun, April 18, 2010 8:38:03 PM
Subject: Re: [us...@httpd] Reverse proxy question


The key here is that I want to rewrite some URL's using a remote proxy and I 
need to set the proxy properties in a common place (not repeating them at every 
RewriteRule).

I saw that if I remove the ProxyPass directives the warnings dissapear. But 
are the ProxySet properties used in this case?





From: alin vasile alinachegal...@yahoo.com
To: users@httpd.apache.org
Sent: Sat, April 17, 2010 5:44:43 PM
Subject: [us...@httpd] Reverse proxy question


Hi,
 
   I try to setup a reverse proxy with httpd 2.2.15:
 
ProxyPass /112 http:/mywebserver/112
ProxyPassReverse /112 http:/mywebserver/112
 
   and I want to rewrite some requests through it:
 
RewriteCond %{REQUEST_URI} /112
RewriteRule /112/(.*) http://mywebserver/112/$1 [P,L]
 
   Also I would like to set some properties for this proxy:
 
Proxy http:/mywebserver/112
 ProxySet keepalive=On
/Proxy
 
   In this moment if I start httpd I'll get the warning: worker 
http:/mywebserver/112 already used by another worker.
 
What I am doing wrong?
 
Thanks


  

Re: [us...@httpd] Re: Apache module that enables ActiveX

2010-04-20 Thread alin vasile
what is the activex area in your html?





From: Mauri lai...@gmail.com
To: users@httpd.apache.org
Sent: Tue, April 20, 2010 1:12:15 PM
Subject: Re: [us...@httpd] Re: Apache module that enables ActiveX


Hi expert.

I'm sorry for the reply but I'm working for some days with no solution :(

I have this scenario:

SCENARIO 1)
client i.e.7 -- proxy with SSL -- web server in http (I tried https, also)
wireshark output (plain text) in attach: file with_proxy.txt

I have apache-2.2.3, mod_proxy and mod_ssl. Below all details.

SCENARIO 2)
client i.e.7 -- web server in http (I tried https, also)
wireshark output (plain text) in attach: file without_proxy.txt

In Scenario 2 my browser is running properly the ACTIVEX. In the file in attach 
named GET /reports/TeeFromWeb.asp?teefile=2010420112359_2_teeFile HTTP/1.1 
it working fine.
In Scenario 1 the browser don't running properly the activex.
If you see the attach the only difference id correlated to this GET: HTTP/1.1 
200 OK  (GIF89a) . I suppose that the client interprets the file as
per an image (GIF).
I don't undestand the reason.

Anyone can help me?

thanks for any suggest.

Cheers,
Mauri

# uname -a
Linux SRV01 2.6.18-128.el5 #1 SMP Wed Dec 17 11:42:39 EST 2008 i686 i686 i386 
GNU/Linux
# rpm -qa | grep http
httpd-manual-2.2.3-31.el5_4.2
system-config-httpd-1.3.3.3-1.el5
jakarta-commons-httpclient-3.0-7jpp.1
httpd-2.2.3-31.el5_4.2
httpd-devel-2.2.3-31.el5_4.2
# rpm -qa | grep ssl
openssl-devel-0.9.8e-7.el5
mod_ssl-2.2.3-31.el5_4.2
docbook-style-dsssl-1.79-4.1
openssl-0.9.8e-7.el




2010/4/16 Tom Evans tevans...@googlemail.com

On Fri, Apr 16, 2010 at 11:43 AM, Mauri lai...@gmail.com wrote:

 in this moment I don't use any others modules. I use mod_proxy and mod_ssl,
 only.
 Then you mean that the apache mod_proxy don't blocks any activex request?
 I don't have any problems in this request:
 client -- SERVERA mod_proxy (ex.192.168.0.10) over HTTPS -- SERVERB web
 server with activex (ex. 192.168.0.11) over HTTP
 If I try to connect to SERVERB the browser read the activex, if I try to
 connect to SERVERA the browser don't read the activex from the SERVERB.
 I'll find the problem on SERVERB?
 many thanks for your suggest.
 Cheers,
 Mauri



So when you go direct to server b it works, and when you go via server
a it doesn't work? Doesn't sound like anything to do with mod_proxy,
sounds more like the browser refusing to run activex from a different
security context.

Is the HTML the same?
Do either of the servers report any errors in error_log?
Does the browser?
Have you tried different browsers?


Tom

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org


  

Re: [us...@httpd] Reverse proxy - block explicit proxy setup

2010-04-20 Thread alin vasile
I managed to do this with rewrite rules; if the requested host is not on 
intranet, I'll forbid the request:

RewriteRule .* - [F]




From: alin vasile alinachegal...@yahoo.com
To: users@httpd.apache.org
Sent: Mon, April 19, 2010 11:36:23 PM
Subject: Re: [us...@httpd] Reverse proxy - block explicit proxy setup


Actually it doesn't block all the requests, but the requests that should go 
through the transparent proxy aren't rewriten, they are tried to be resolved to 
local files.




From: alin vasile alinachegal...@yahoo.com
To: users@httpd.apache.org
Sent: Mon, April 19, 2010 11:24:16 PM
Subject: Re: [us...@httpd] Reverse proxy - block explicit proxy setup


I made this virtual host:

NameVirtualHost *

VirtualHost *
   Directory / 
   Order deny, allow
   Deny from all
   /Directory
/VirtualHost *

  But it blocks also my normal GET requests that should go through the 
transparent proxy (the client doesn't have the webserver configured as proxy).




From: Eric Covener cove...@gmail.com
To: users@httpd.apache.org
Sent: Mon, April 19, 2010 10:39:31 PM
Subject: Re: [us...@httpd] Reverse proxy - block explicit proxy setup

On Mon, Apr 19, 2010 at 2:47 PM, alin vasile alinachegal...@yahoo.com wrote:
 Hi all,
After I am setting up a reverse proxy using httpd, how can I disable the
 requests from the clients that have it configured as (forward)  proxy?
   For example If i put my proxy IP  port in Proxomitron, even if I
 configured ProxyRequests Off, I can see in it while testing :
 New Message Log Window
 Testing 192.168.187.129:3
 Waiting for remote proxy's reply
   HTTP/1.1 200 OK
 Ending proxy test
 Testing 192.168.187.129:3
 Waiting for remote proxy's reply
   HTTP/1.1 200 OK
 Ending proxy test
   Thanks.

It's probably not being proxied, but served by your default
(first-listed) vhost that matches.

Create a default virtualhost to capture these and configure it to deny all.

-- 
Eric Covener
cove...@gmail.com

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org


  

[us...@httpd] Reverse proxy - block explicit proxy setup

2010-04-19 Thread alin vasile
Hi all,

   After I am setting up a reverse proxy using httpd, how can I disable the 
requests from the clients that have it configured as (forward)  proxy?

  For example If i put my proxy IP  port in Proxomitron, even if I configured 
ProxyRequests Off, I can see in it while testing :

New Message Log Window

Testing 192.168.187.129:3
Waiting for remote proxy's reply
  HTTP/1.1 200 OK
Ending proxy test

Testing 192.168.187.129:3
Waiting for remote proxy's reply
  HTTP/1.1 200 OK
Ending proxy test

  Thanks.



  

Re: [us...@httpd] Reverse proxy - block explicit proxy setup

2010-04-19 Thread alin vasile
I made this virtual host:

NameVirtualHost *

VirtualHost *
   Directory / 
   Order deny, allow
   Deny from all
   /Directory
/VirtualHost *

  But it blocks also my normal GET requests that should go through the 
transparent proxy (the client doesn't have the webserver configured as proxy).




From: Eric Covener cove...@gmail.com
To: users@httpd.apache.org
Sent: Mon, April 19, 2010 10:39:31 PM
Subject: Re: [us...@httpd] Reverse proxy - block explicit proxy setup

On Mon, Apr 19, 2010 at 2:47 PM, alin vasile alinachegal...@yahoo.com wrote:
 Hi all,
After I am setting up a reverse proxy using httpd, how can I disable the
 requests from the clients that have it configured as (forward)  proxy?
   For example If i put my proxy IP  port in Proxomitron, even if I
 configured ProxyRequests Off, I can see in it while testing :
 New Message Log Window
 Testing 192.168.187.129:3
 Waiting for remote proxy's reply
   HTTP/1.1 200 OK
 Ending proxy test
 Testing 192.168.187.129:3
 Waiting for remote proxy's reply
   HTTP/1.1 200 OK
 Ending proxy test
   Thanks.

It's probably not being proxied, but served by your default
(first-listed) vhost that matches.

Create a default virtualhost to capture these and configure it to deny all.

-- 
Eric Covener
cove...@gmail.com

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org


  

Re: [us...@httpd] Reverse proxy - block explicit proxy setup

2010-04-19 Thread alin vasile
Actually it doesn't block all the requests, but the requests that should go 
through the transparent proxy aren't rewriten, they are tried to be resolved to 
local files.




From: alin vasile alinachegal...@yahoo.com
To: users@httpd.apache.org
Sent: Mon, April 19, 2010 11:24:16 PM
Subject: Re: [us...@httpd] Reverse proxy - block explicit proxy setup


I made this virtual host:

NameVirtualHost *

VirtualHost *
   Directory / 
   Order deny, allow
   Deny from all
   /Directory
/VirtualHost *

  But it blocks also my normal GET requests that should go through the 
transparent proxy (the client doesn't have the webserver configured as proxy).




From: Eric Covener cove...@gmail.com
To: users@httpd.apache.org
Sent: Mon, April 19, 2010 10:39:31 PM
Subject: Re: [us...@httpd] Reverse proxy - block explicit proxy setup

On Mon, Apr 19, 2010 at 2:47 PM, alin vasile alinachegal...@yahoo.com wrote:
 Hi all,
After I am setting up a reverse proxy using httpd, how can I disable the
 requests from the clients that have it configured as (forward)  proxy?
   For example If i put my proxy IP  port in Proxomitron, even if I
 configured ProxyRequests Off, I can see in it while testing :
 New Message Log Window
 Testing 192.168.187.129:3
 Waiting for remote proxy's reply
   HTTP/1.1 200 OK
 Ending proxy test
 Testing 192.168.187.129:3
 Waiting for remote proxy's reply
   HTTP/1.1 200 OK
 Ending proxy test
   Thanks.

It's probably not being proxied, but served by your default
(first-listed) vhost that matches.

Create a default virtualhost to capture these and configure it to deny all.

-- 
Eric Covener
cove...@gmail.com

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org


  

Re: [us...@httpd] Reverse proxy question

2010-04-18 Thread alin vasile
The key here is that I want to rewrite some URL's using a remote proxy and I 
need to set the proxy properties in a common place (not repeating them at every 
RewriteRule).

I saw that if I remove the ProxyPass directives the warnings dissapear. But 
are the ProxySet properties used in this case?





From: alin vasile alinachegal...@yahoo.com
To: users@httpd.apache.org
Sent: Sat, April 17, 2010 5:44:43 PM
Subject: [us...@httpd] Reverse proxy question


Hi,
 
   I try to setup a reverse proxy with httpd 2.2.15:
 
ProxyPass /112 http:/mywebserver/112
ProxyPassReverse /112 http:/mywebserver/112
 
   and I want to rewrite some requests through it:
 
RewriteCond %{REQUEST_URI} /112
RewriteRule /112/(.*) http://mywebserver/112/$1 [P,L]
 
   Also I would like to set some properties for this proxy:
 
Proxy http:/mywebserver/112
 ProxySet keepalive=On
/Proxy
 
   In this moment if I start httpd I'll get the warning: worker 
http:/mywebserver/112 already used by another worker.
 
What I am doing wrong?
 
Thanks



  

[us...@httpd] Reverse proxy question

2010-04-17 Thread alin vasile
Hi,

   I try to setup a reverse proxy with httpd 2.2.15:

ProxyPass /112 http:/mywebserver/112
ProxyPassReverse /112 http:/mywebserver/112

   and I want to rewrite some requests through it:

RewriteCond %{REQUEST_URI} /112
RewriteRule /112/(.*) http://mywebserver/112/$1 [P,L]

   Also I would like to set some properties for this proxy:

Proxy http:/mywebserver/112
 ProxySet keepalive=On
/Proxy

   In this moment if I start httpd I'll get the warning: worker 
http:/mywebserver/112 already used by another worker.
 
What I am doing wrong?
 
Thanks


  

Re: [us...@httpd] virtualhost not picking up for non port 80

2010-04-12 Thread alin vasile
in httpd.conf it shouldn't be 

Listen 192.168.0.10:8886?




From: Michael Ni michael...@gmail.com
To: users@httpd.apache.org
Sent: Mon, April 12, 2010 5:39:42 PM
Subject: Re: [us...@httpd] virtualhost not picking up for non port 80

yes i have 

Listen 8886
in the httpd.conf file 

i tried changing the private ip to localhost, it doesn't work as well




On Mon, Apr 12, 2010 at 7:33 AM, Frank Gingras francois.ging...@gmail.com 
wrote:

Michael,

Make sure you have a corresponding Listen directive before your vhost as well 
for that port.

Frank.


On 04/12/2010 10:20 AM, Michael Ni wrote:

i added log in virtual host
ErrorLog logs/asdf-error.log
CustomLog logs/asdf-access.log common

when i tried again, nothing shows up on both

i also did a httpd -S and got the following

C:\Program Files\Apache Software Foundation\Apache2.2\binhttpd -S
VirtualHost configuration:
192.168.0.10:8886http://192.168.0.10:8886  is a NameVirtualHost
  default server www.foobar.comhttp://www.foobar.com

(C:/Program Files/Apache Software Foundat
ion/Apache2.2/conf/extra/httpd-vhosts.conf:52)

  port 8886 namevhost www.foobar.com http://www.foobar.com

(C:/Program Files/Apache Software Fo
undation/Apache2.2/conf/extra/httpd-vhosts.conf:52)
Syntax OK

but it just won't pick up for some reason


On Mon, Apr 12, 2010 at 7:12 AM, [triplepack] info (i...@pack3.ch

mailto:i...@pack3.ch) i...@pack3.ch mailto:i...@pack3.ch wrote:

Am 12.04.2010 16:00, schrieb Michael Ni:

I'm having difficulty on windows XP getting a virtualhost to work
with non port 80.
it works when i use port 80 in the virtualhost but doesn't work
with other ports.
i have turned off my firewall, although this is private ip,
shouldn't matter
i have tried ports 8080, , 8000, and now with 8886.
when it doesn't match my virtualhost, it will redirect to the main
configuration servername automatically
if i turn off the all other listen and only keep listen 8886,
i will just be unable to connect
i have searched all over the internet but i can't find the solution.

hope someone can help.

the following is my config

WINDOWS HOSTS FILE


192.168.0.10 www.foobar.com http://www.foobar.com


HTTPD.CONF
---
Listen 8886

HTTPD-VHOSTS.CONF


NameVirtualHost 192.168.0.10:8886 http://192.168.0.10:8886

VirtualHost 192.168.0.10:8886 http://192.168.0.10:8886


Directory C:/Program Files/Apache Software
Foundation/Apache2.2/htdocs
Options Indexes FollowSymLinks
AllowOverride none
Order allow,deny
Allow from all
/Directory


   ServerName www.foobar.com http://www.foobar.com

   DocumentRoot C:/Program Files/Apache Software
Foundation/Apache2.2/htdocs

/VirtualHost



Hi Michael,

1) it would be interesting what you see in the log file

2) as soon apache is started it would be interesting if its really
listening or actually something else is listening on that port

you can check this with a simple telnet connect to your ip and port
and see if you get a connection working - where ever it would go

greetings

aaron



-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
 from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org





  

Re: [us...@httpd] The requested URL ....was not found on this server - Scratch my head

2010-04-09 Thread alin vasile
The directory /usr/brass/www/projects/ms-tools-charts/ exists on your server?

What should be the index page there?





From: Wang, Mary Y mary.y.w...@boeing.com
To: users@httpd.apache.org users@httpd.apache.org
Sent: Fri, April 9, 2010 9:43:47 PM
Subject: RE: [us...@httpd] The requested URL was not found on this server - 
Scratch my head

Hmmm.  Actually the http://devbrass2.ana.bna.boeing.com/ is a variable.  Any 
thing after .com could be anything based on the frontend php code.  I could 
have hundreds of /projects/xxx.  It seems like it's not following the link...

I'm also concerned that I don't understand the newer httpd.conf configuration 
features...

Mary


-Original Message-
From: Libo Song [mailto:ls...@google.com] 
Sent: Friday, April 09, 2010 10:43 AM
To: users@httpd.apache.org
Subject: Re: [us...@httpd] The requested URL was not found on this server - 
Scratch my head

You are using this URL:
https://devbrass2.ana.bna.boeing.com/projects/ms-tools-charts/

Your httpd.conf setting has this
ServerName devbrass2.ana.bna.boeing.com:443

so, how about try this URL
http://devbrass2.ana.bna.boeing.com:443/projects/ms-tools-charts/

On Fri, Apr 9, 2010 at 1:34 PM, Wang, Mary Y mary.y.w...@boeing.com wrote:
 Thank for your response.  I don't understand what you were saying.
 Can you point out where the possible problem was in the my httpd.conf file?  
 Or give me an example.

 Mary


 -Original Message-
 From: Libo Song [mailto:ls...@google.com]
 Sent: Friday, April 09, 2010 10:27 AM
 To: users@httpd.apache.org
 Subject: Re: [us...@httpd] The requested URL was not found on this 
 server - Scratch my head

 One quick point, you have port in your ServerName, but your request does not. 
 Is that a typo?


 On Fri, Apr 9, 2010 at 12:34 PM, Wang, Mary Y mary.y.w...@boeing.com wrote:
 Hi,

 I'm in the process of upgrading to httpd 2.0.46.  I'm getting this error 
 when it goes to this URL 
 https://devbrass2.ana.bna.boeing.com/projects/ms-tools-charts/ .  The page 
 showed as The requested URL /projects/ms-tools-charts/ was not found on 
 this server.   The ssl_error_log showed File does not exist:               
       /usr/brass/www/projects/ms-tools-charts/, 

 I read several blogs and postings, and many people suggested using the 
 RewriteEngine directive.  I've never used the rewriteengine directive in the 
 previous apache configuration (it worked before).

 In the httpd.conf file
 I have defined the following:

 ServerName devbrass2.ana.bna.boeing.com:443

 DocumentRoot /usr/brass/www

 # This should be changed to whatever you set DocumentRoot to.
 #
 Directory /usr/brass/www
    Options Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
 /Directory

 I'm running on Redhat.

 Any ideas on how I can fix this problem?

 Thanks in advance.

 Mary






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



 -
 The official User-To-User support forum of the Apache HTTP Server Project.
 See URL:http://httpd.apache.org/userslist.html for more info.
 To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
      from the digest: users-digest-unsubscr...@httpd.apache.org
 For additional commands, e-mail: users-h...@httpd.apache.org


 -
 The official User-To-User support forum of the Apache HTTP Server Project.
 See URL:http://httpd.apache.org/userslist.html for more info.
 To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
      from the digest: users-digest-unsubscr...@httpd.apache.org
 For additional commands, e-mail: users-h...@httpd.apache.org



-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
    from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org


-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
    from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org


  

Re: [us...@httpd] Apache/2.2.13 : Starting httpd: (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 error

2010-04-04 Thread alin vasile
so you killed the existing process that listens to 80 and started again. now 
you can see that a process listens to 80?

also please check if the log directories configured in httpd.conf exist and the 
apache user has permission to write in them.






From: Ravi Roy ravi.a...@gmail.com
To: users@httpd.apache.org
Sent: Sun, April 4, 2010 12:29:52 PM
Subject: Re: [us...@httpd] Apache/2.2.13 : Starting httpd: (98)Address already  
in use: make_sock: could not bind to address 0.0.0.0:80 error




On Sat, Apr 3, 2010 at 8:35 PM, alin vasile alinachegal...@yahoo.com wrote:

yes, should be enough.

have you tried killing the running process that listens to that port and start 
apache again?

 
Yes, tried, but same error.
 
Thanks!
-RR


  

Re: [us...@httpd] Apache/2.2.13 : Starting httpd: (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 error

2010-04-03 Thread alin vasile
Are you sure that you have the permisson to listen on port 80?





From: Ravi Roy ravi.a...@gmail.com
To: users@httpd.apache.org
Sent: Sat, April 3, 2010 7:08:17 AM
Subject: Re: [us...@httpd] Apache/2.2.13 : Starting httpd: (98)Address already  
in use: make_sock: could not bind to address 0.0.0.0:80 error




On Sat, Apr 3, 2010 at 9:13 AM, Nilesh Govindarajan li...@itech7.com wrote:

On 04/03/10 07:53, Ravi Roy wrote:



On Fri, Apr 2, 2010 at 9:57 PM, Nilesh Govindarajan li...@itech7.com

mailto:li...@itech7.com wrote:

   On 04/02/10 21:52, Ravi Roy wrote:

   Hi
   I installed Apache/2.2.13 (Unix) on CentOS 5.4. My prolbem is
   that when
   I try to start and stop it using sudo /etc/rc.d/init.d/httpd
   start /
   stop / restart
   It gives me the following, I googgled a lot but could not really
   find a
   solution.
   1.Command : $ sudo /etc/rc.d/init.d/httpd start
   Error Message :
   Starting httpd: (98)Address already in use: make_sock: could not
   bind to
   address 0.0.0.0:80http://0.0.0.0/ http://0.0.0.0/
   http://0.0.0.0/ 



   no listening sockets available, shutting down
   Unable to open logs
   [FAILED]
   2. Command : $ sudo /etc/rc.d/init.d/httpd stop
   Error message :
   Stopping httpd:[FAILED]
   3.Command : $sudo /etc/rc.d/init.d/httpd restart
   Error message :
   Stopping httpd:[FAILED]
   Starting httpd: (98)Address already in use: make_sock: could not
   bind to
   address 0.0.0.0:80 http://0.0.0.0/ http://0.0.0.0:80
   http://0.0.0.0/ 



   no listening sockets available, shutting down
   Unable to open logs
   [FAILED]
   Can sombody help me on this please?
   Thanks!
   -RR


   Some other process is already running at port number 80. Use netstat
   -ltnp | grep ':80' to get the process name and pid.

  Thanks Nilesh, netstat reveals the following :
tcp0  0 :::80
:::*LISTEN  2056/httpd
Strange thing I notice is that start / stop / restart fails, but
service is still started, I am just curious if service is failed to
start (as error message explains) how come it is started at the first
place?
To my view a command 'stop / restart' should kill a started process
and free the port '80' and next initialization should get the  port
without any error.
My http configuration have 'Listen 80'
Not much into linux stuff. Forgive me if I am wrong somehere and
correct me please.
Thanks for your help.
  - RR


Try using the /sbin/service command instead of this.

Also, your httpd is self compiled or installed using yum ?

And did you make any alterations (or created) /etc/rc.d/init.d/httpd ?



Thanks Nilesh,
 
I tried ;  
 
command : sudo /sbin/service httpd restart
 
Error message :
 
Stopping httpd:[FAILED]
Starting httpd: (98)Address already in use: make_sock: could not bind to 
address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
   [FAILED]

I compiled httpd server is myself on CentOS 5.4, I did not make any alterations 
to /etc/rc.d/init.d/httpd.
 
Thanks
 
-RR



  

Re: [us...@httpd] Apache/2.2.13 : Starting httpd: (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 error

2010-04-03 Thread alin vasile
yes, should be enough.

have you tried killing the running process that listens to that port and start 
apache again?





From: Ravi Roy ravi.a...@gmail.com
To: users@httpd.apache.org
Sent: Sat, April 3, 2010 5:50:50 PM
Subject: Re: [us...@httpd] Apache/2.2.13 : Starting httpd: (98)Address already  
in use: make_sock: could not bind to address 0.0.0.0:80 error




On Sat, Apr 3, 2010 at 8:10 PM, Ravi Roy ravi.a...@gmail.com wrote:




On Sat, Apr 3, 2010 at 5:02 PM, alin vasile alinachegal...@yahoo.com wrote:

Are you sure that you have the permisson to listen on port 80?

 
 
 User logged in (current user) in the system is part of sudoers. I think that 
 is sufficient ? 
 Thanks.
-RR
 
Also, current user is also mentioned in httpd.conf Apache :
 
user username
group groupname
 
Thanks
-RR


  

[us...@httpd] mod_logio threadsafe

2010-03-31 Thread alin vasile
Hi,
  
   Does everyone know if mod_logio can be used with worker mpm?

Thanks,
Alin


  

Re: [us...@httpd] mod_logio threadsafe

2010-03-31 Thread alin vasile
i'm not sure what do you mean by loaded question.

i'm planning to switch the mpm to with a multithreaded one and i'm studying the 
impact. I saw that this module stores some data (in a connection filter) in the 
module's config structure  and i don't know how this playes with multithreading.





From: Eric Covener cove...@gmail.com
To: users@httpd.apache.org
Sent: Wed, March 31, 2010 4:11:14 PM
Subject: Re: [us...@httpd] mod_logio threadsafe

On Wed, Mar 31, 2010 at 9:10 AM, Eric Covener cove...@gmail.com wrote:
 On Wed, Mar 31, 2010 at 9:05 AM, alin vasile alinachegal...@yahoo.com wrote:
 Hi,

Does everyone know if mod_logio can be used with worker mpm?

 I've never seen any indication that it isn't.  Is this a loaded question?

Sorry for the repeats, blame gmail.

-- 
Eric Covener
cove...@gmail.com

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org


  

Re: [us...@httpd] Re: high load apache mpm configuration

2010-03-30 Thread alin vasile
memory : 6Gb
cpu: 8 cores @ 2.53GHz





From: Nicholas Sherlock n.sherl...@gmail.com
To: users@httpd.apache.org
Sent: Tue, March 30, 2010 9:35:50 AM
Subject: [us...@httpd] Re: high load apache mpm configuration

On 30/03/2010 9:02 a.m., alin vasile wrote:
 Hi All,
 Did anyone configured an apache 2.2 for a high traffic server? I am
 interested in how many connections can handle an apache installation
 using worker or prefork (and wich one is more suitable) for a minimum
 response time, ignoring file i/o (this server will server reverse proxy
 requests). I intend to configure it for around 400 requests per second
 and i'm not sure if prefork will do.

How many CPUs? How much RAM?


Cheers,
Nicholas Sherlock


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
 from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org


  

[us...@httpd] high load apache mpm configuration

2010-03-29 Thread alin vasile
Hi All,

   Did anyone configured an apache 2.2 for a high traffic server? I am 
interested in how many connections can handle an apache installation using 
worker or prefork (and wich one is more suitable) for a minimum response time, 
ignoring file i/o (this server will server reverse proxy requests). I intend to 
configure it for around 400 requests per second and i'm not sure if prefork 
will do. 

Thanks.


  

Re: [us...@httpd] Re: Apache proxy based on condition

2010-03-18 Thread alin vasile
I tried this, with no luck.

The good part is that the proxy will be always reverse, so it is easy to 
accomplish only with mod_rewrite.

--- On Thu, 3/18/10, Nick Kew n...@webthing.com wrote:

From: Nick Kew n...@webthing.com
Subject: Re: [us...@httpd] Re: Apache proxy based on condition
To: users@httpd.apache.org
Date: Thursday, March 18, 2010, 1:31 AM


On 15 Mar 2010, at 19:42, alin vasile wrote:

 Hi All,
 
    I am configuring a reverse proxy with Apache 2.2 and I need for certain 
conditions to make a request to another proxy.

Presumably this other proxy is a forward proxy?  If it's a reverse
proxy you don't need to do anything.

 For request header X-Custom-Type TYPE_1 - forward to proxy 1
 For request header X-Custom-Type TYPE_2 - forward to proxy 2
 etc...

Use RewriteCond to check the custom header.

   I know that there is the directive ProxyRemote in mod_proxy but this can be 
used at most with an url regular expression.

The trick here is to rewrite into different address spaces with the
relevant ProxyRemote settings.

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




  

[us...@httpd] Re: Apache proxy based on condition

2010-03-15 Thread alin vasile
Hi All,
   I am configuring a reverse proxy with Apache 2.2 and I need for certain 
conditions to make a request to another proxy. These conditions are based on 
some request headers and I can use them directly or mod_setenvif to configure a 
variable based on them.
   For example I would like the following flow:
For request header X-Custom-Type TYPE_1 - forward to proxy 1For request header 
X-Custom-Type TYPE_2 - forward to proxy 2etc...
  I know that there is the directive ProxyRemote in mod_proxy but this can be 
used at most with an url regular expression.
  Did anyone managed to set up a flow like this?
Regards,Alin