Re: [us...@httpd] rewrite to 443..please help me

2009-07-28 Thread danielitob

Ok..
that is configuration. What I need is running a we site on http, but when I
send request to a protected/* page, request mu be managed under ssl.
What I'm missing?Is this only configuration I have to do?
In ssl.conf, I configured certificate. It seems I did it well, cause when I
run application and I click on certificate, it seems correctly configured.
But when I run a page under /protected, it gives me error

[warn] RSA server certificate CommonName (CN) `www.mysite.com' does NOT
match server name!?

Why is it so difficult and there isn't a working example on internet?:(

This is virtual host

VirtualHost IP:80
ServerName www.mysite.it
DocumentRoot /var/www/www.mysite.com
RewriteEngine on
RewriteLog log/rewrite.log
RewriteLogLevel 5
RewriteRule ^/protected/(.*) https://www.mysite.com/protected:443/$1
[R=301,L]
Directory /var/www/www.mysite.com
AllowOverride FileInfo
/Directory
/VirtualHost

Thanks for your help, you're my last hope..



Igor Cicimov wrote:
 
 sorry i lost your initial email with the configuration, can you send it
 again please so i can have another look?
 
 
 On Tue, Jul 28, 2009 at 3:01 AM, danielitob gbatt...@aliceposta.it
 wrote:
 

 Hello Igor..

 I checked but it was my digit error.
 Fields are equal but I have always same problem..

 What I'm missing?
 I configured virtual host on port 80 and did a redirect for a subfolder
 to
 443.
 i need other configuration?

 Please help me, I'm crazying..


 Igor Cicimov wrote:
 
  I don't know if typo or not but in the redirect rule you have
  mysite.cominstead
  mysite.it
 
  On Fri, Jul 24, 2009 at 6:24 PM, danielitob gbatt...@aliceposta.it
  wrote:
 
 
  Sorry...you're right.
  I analyzed error log and I found that...it's strange
 
  [Fri Jul 24 10:12:19 2009] [warn] RSA server certificate CommonName
 (CN)
  `www.mysite.com' does NOT match server name!?
 
  what does mean?
 
 
 
 
  Ray Van Dolson-3 wrote:
  
   On Thu, Jul 23, 2009 at 09:51:38AM -0700, danielitob wrote:
   The issue is when I click on
  
   https://www.mysite.it/protected
  
   and error appears.
  
   More information on the error please.  An error in your Apache log
   file?  An error in the browser (perhaps corresponding with a self
   signed certificate)?
  
   Ray
  
  
 -
   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
  
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/rewrite-to-443..please-help-me-tp24629942p24640563.html
  Sent from the Apache HTTP Server - Users mailing list archive at
  Nabble.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
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/rewrite-to-443..please-help-me-tp24629942p24684493.html
 Sent from the Apache HTTP Server - Users mailing list archive at
 Nabble.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


 
 

-- 
View this message in context: 
http://www.nabble.com/rewrite-to-443..please-help-me-tp24629942p24693609.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.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] SSI - file not included

2009-07-28 Thread Matus UHLAR - fantomas
On 08.07.09 09:06, Marc Patermann wrote:
 I tried a simple include with SSI.

 In the root directory I added a .htaccess file with
 AddType text/html .shtml
 AddOutputFilter INCLUDES .html

 In index-test.html i added
 !--#include virtual=./footer.html --

Is there any reason why do you include that as virtual, instead of including
it as a file?

-- 
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
The only substitute for good manners is fast reflexes. 

-
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] rewrite to 443..please help me

2009-07-28 Thread Boyle Owen
 -Original Message-
 From: danielitob [mailto:gbatt...@aliceposta.it] 
 Sent: Tuesday, July 28, 2009 9:06 AM
 To: users@httpd.apache.org
 Subject: Re: [us...@httpd] rewrite to 443..please help me
 
 
 Ok..
 that is configuration. What I need is running a we site on 
 http, but when I
 send request to a protected/* page, request mu be managed under ssl.
 What I'm missing?Is this only configuration I have to do?
 In ssl.conf, I configured certificate. It seems I did it 
 well, cause when I
 run application and I click on certificate, it seems 
 correctly configured.
 But when I run a page under /protected, it gives me error
 
 [warn] RSA server certificate CommonName (CN) 
 `www.mysite.com' does NOT
 match server name!?
 
 Why is it so difficult and there isn't a working example on 
 internet?:(
 
 This is virtual host
 
 VirtualHost IP:80
 ServerName www.mysite.it
 DocumentRoot /var/www/www.mysite.com
 RewriteEngine on
 RewriteLog log/rewrite.log
 RewriteLogLevel 5
 RewriteRule ^/protected/(.*) 
 https://www.mysite.com/protected:443/$1
 [R=301,L]

It is still not clear: as Igor says, the domain name in the rewrite-rule
is different from the domain-name of your HTTP site. Do you have both
the .it and the .com domains registered?

If you could bear to publish the real domain name, we could check it.
Otherwise, we only have your word that fields are the same - you could
have a typing error that you are failing to notice..


 Directory /var/www/www.mysite.com
 AllowOverride FileInfo
 /Directory
 /VirtualHost
 
 Thanks for your help, you're my last hope..
 
 
 
 Igor Cicimov wrote:
  
  sorry i lost your initial email with the configuration, can 
 you send it
  again please so i can have another look?
  
  
  On Tue, Jul 28, 2009 at 3:01 AM, danielitob gbatt...@aliceposta.it
  wrote:
  
 
  Hello Igor..
 
  I checked but it was my digit error.
  Fields are equal but I have always same problem..
 
  What I'm missing?
  I configured virtual host on port 80 and did a redirect 
 for a subfolder
  to
  443.
  i need other configuration?
 
  Please help me, I'm crazying..
 
 
  Igor Cicimov wrote:
  
   I don't know if typo or not but in the redirect rule you have
   mysite.cominstead
   mysite.it
  
   On Fri, Jul 24, 2009 at 6:24 PM, danielitob 
 gbatt...@aliceposta.it
   wrote:
  
  
   Sorry...you're right.
   I analyzed error log and I found that...it's strange
  
   [Fri Jul 24 10:12:19 2009] [warn] RSA server 
 certificate CommonName
  (CN)
   `www.mysite.com' does NOT match server name!?
  
   what does mean?
  
  
  
  
   Ray Van Dolson-3 wrote:
   
On Thu, Jul 23, 2009 at 09:51:38AM -0700, danielitob wrote:
The issue is when I click on
   
https://www.mysite.it/protected
   
and error appears.
   
More information on the error please.  An error in 
 your Apache log
file?  An error in the browser (perhaps corresponding 
 with a self
signed certificate)?
   
Ray
   
   
  
 -
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
   
   
   
  
   --
   View this message in context:
  
  
 http://www.nabble.com/rewrite-to-443..please-help-me-tp2462994
2p24640563.html
   Sent from the Apache HTTP Server - Users mailing list archive at
   Nabble.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
  
  
  
  
 
  --
  View this message in context:
  
 http://www.nabble.com/rewrite-to-443..please-help-me-tp2462994
2p24684493.html
  Sent from the Apache HTTP Server - Users mailing list archive at
  Nabble.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
 
 
  
  
 
 -- 
 View this message in context: 
 http://www.nabble.com/rewrite-to-443..please-help-me-tp2462994
2p24693609.html
 Sent from the Apache HTTP Server - Users mailing list archive 
 at Nabble.com.
 
 
 

Re: [us...@httpd] Serving partial data of in-memory common data set

2009-07-28 Thread Tom Evans
On Mon, 2009-07-27 at 21:29 -0700, S.A. wrote:
 
 --- On Mon, 7/27/09, Tom Evans tevans...@googlemail.com wrote:
 
  From: Tom Evans tevans...@googlemail.com
  Subject: Re: [us...@httpd] Serving partial data of in-memory common data set
  To: users@httpd.apache.org
  Date: Monday, July 27, 2009, 1:04 PM
  On Mon, 2009-07-27 at 09:01 -0700,
  S.A. wrote:
   Hello,
   
   We have a requirement of serving fixed set of data
  elements (text, images,
   audio, video, etc) to a group of users coming at about
  the same time, but
   each user requesting different set of data elements
  from the given data set.
   
   Data set is fixed, but what data elements are
  presented to a user is dependent
   on user's configuration parameters and they vary from
  user to user. Other
   than the requesting data elements of a given set,
  there is nothing that
   is common among users and hence their requests can be
  treated as such, ie
   as independent requests.
   
   What is the best way to deal with the above scenario
  so that the each
   httpd process does not goto to either file store or db
  for each user
   request?
   
   Is there a way that we can retain this data in-memory
  and depending on
   the requesting user, we read their configuration and
  then come to the
   in-memory data set and build a page for the user and
  serve the user?
   
   Appreciate any insights or pointers.
   
   Thanks
   S.A.
   
  
  http://www.danga.com/memcached/
  
  You dont mention what language/mechanism you want to pull
  the data out;
  memcached has client libraries for almost every language
  under the sun,
  so it should be appropriate.
  
  Cheers
  
  Tom
 
 Hi Tom,
 
 I am using LAMP and additionally a regular ext3 file store
 and an ldap. Most of the data is in mysql and in file store
 and it is this I would like to cache and serve via php pages.
 
 I will checkout memcached. Thanks for the pointer. Is there
 anything native to apache itself?
 
 Thanks
 
 

No, but that is almost certainly by design. Caching works best the more
you can scale it. Anything inside apache would be per-process, or at
best, per-machine. Using memcached allows you to scale out your cache to
support many backend machines.

The best way to use memcached is to avoid DB queries. You can either
cache your objects, so you don't need to do DB queries to load them, or
cache the resultant html you would draw from the objects, so you don't
even need the objects.

If you can cache entire pages, apache has mod_cache and its various sub
types.

Cheers

Tom


-
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] Reason of dropping connections

2009-07-28 Thread Narendra Verma
Hi,

I am facing one problem of dropping connections by apache load balancer.

System environment:

* Tomcat (As backend servers ) - Apache 2.2.8 load  balancer (Using 
mod_proxy)

* Apache server : Perform MPM setting

StartServers  5

MinSpareServers   5

MaxSpareServers  10

MaxClients  150

MaxRequestsPerChild   0



* Max thread at tomcat server 200

Getting error on tomcat server :

WARNING: Error sending end packet
java.net.SocketException: Broken pipe
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:537)
at org.apache.jk.common.JkInputStream.endMessage(JkInputStream.java:127)
at org.apache.jk.core.MsgContext.action(MsgContext.java:302)
at org.apache.coyote.Response.action(Response.java:183)
at org.apache.coyote.Response.finish(Response.java:305)
at 
org.apache.catalina.connector.OutputBuffer.close(OutputBuffer.java:281)
at 
org.apache.catalina.connector.Response.finishResponse(Response.java:478)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:154)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773)
at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703)
at 
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)

Please any ideas ?

Thanks,
Narendra




Follow us on Twitter- https://twitter.com/impetuscalling.
Impetus actively supports 'National Underprivileged Child Protection Mission' 
and 'Grace Care Children's Home'. Visit 
http://impetus.com/community_affairs.html to know more.

NOTE: This message may contain information that is confidential, proprietary, 
privileged or otherwise protected by law. The message is intended solely for 
the named addressee. If received in error, please destroy and notify the 
sender. Any use of this email is prohibited when received in error. Impetus 
does not represent, warrant and/or guarantee, that the integrity of this 
communication has been maintained nor that the communication is free of errors, 
virus, interception or interference.


Re: [us...@httpd] Reason of dropping connections

2009-07-28 Thread André Warnier

Narendra Verma wrote:

Hi,

I am facing one problem of dropping connections by apache load balancer.


.. maybe



Getting error on tomcat server :

WARNING: Error sending end packet
java.net.SocketException: Broken pipe
at java.net.SocketOutputStream.socketWrite0(Native Method)

...
The most likely reason is the client browser canceling the connection.
That happens when the user clicks the cancel button, or moves away to 
another page.
(The client browser has a connection with Apache. Apache has a 
connection with Tomcat via mod_proxy.  Tomcat is busy sending a response 
to Apache, and Apache forwarding this response to the client.  Now the 
client hits cancel, and the browser cuts the connection to Apache. 
Apache can no longer send bytes onto that connection. But Tomcat is 
still sending bytes to Apache.  To tell Tomcat to stop, Apache cuts the 
connection to Tomcat. Now Tomcat can no longer send, and logs the exception)


It may or may not be the reason, but it is the first thing you should 
try to rule out.
You should check for the logging capabilities of the mod_proxy module 
you are using, set it high, and examine the resulting log.  It will tell 
you if it is mod_proxy canceling the connection to Tomcat, because the 
Apache client has done the above.


-
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] rewrite to 443..please help me

2009-07-28 Thread Krist van Besien
On Tue, Jul 28, 2009 at 9:05 AM, danielitobgbatt...@aliceposta.it wrote:

 [warn] RSA server certificate CommonName (CN) `www.mysite.com' does NOT
 match server name!?

This error is basically self explenatory. The Common Name in the
certificate is not the same as the name you gave your server. They
need to be the same. You need to either change your servername, or
create a new certificate.

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 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] Reason of dropping connections

2009-07-28 Thread Narendra Verma
Hi Andre,
Thanks for your reply...

Actually a browser is not being used to access apache server.

I am performing load testing. Where load runner as a client is sending requests 
to apache.

[loadRunner (configured 5 users) -- Apache --- Tomcat]

About 24000 requests are being sent to apache in 10 min. Where apache posts 
call on web service which has been deployed on tomcat backend servers.

During this load testing I am getting this below error.

Thanks,
Narendra

-Original Message-
From: André Warnier [mailto:a...@ice-sa.com]
Sent: Tuesday, July 28, 2009 2:46 PM
To: users@httpd.apache.org
Subject: Re: [us...@httpd] Reason of dropping connections

Narendra Verma wrote:
 Hi,

 I am facing one problem of dropping connections by apache load balancer.

.. maybe


 Getting error on tomcat server :

 WARNING: Error sending end packet
 java.net.SocketException: Broken pipe
 at java.net.SocketOutputStream.socketWrite0(Native Method)
...
The most likely reason is the client browser canceling the connection.
That happens when the user clicks the cancel button, or moves away to
another page.
(The client browser has a connection with Apache. Apache has a
connection with Tomcat via mod_proxy.  Tomcat is busy sending a response
to Apache, and Apache forwarding this response to the client.  Now the
client hits cancel, and the browser cuts the connection to Apache.
Apache can no longer send bytes onto that connection. But Tomcat is
still sending bytes to Apache.  To tell Tomcat to stop, Apache cuts the
connection to Tomcat. Now Tomcat can no longer send, and logs the exception)

It may or may not be the reason, but it is the first thing you should
try to rule out.
You should check for the logging capabilities of the mod_proxy module
you are using, set it high, and examine the resulting log.  It will tell
you if it is mod_proxy canceling the connection to Tomcat, because the
Apache client has done the above.

-
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


Follow us on Twitter- https://twitter.com/impetuscalling.
Impetus actively supports 'National Underprivileged Child Protection Mission' 
and 'Grace Care Children's Home'. Visit 
http://impetus.com/community_affairs.html to know more.

NOTE: This message may contain information that is confidential, proprietary, 
privileged or otherwise protected by law. The message is intended solely for 
the named addressee. If received in error, please destroy and notify the 
sender. Any use of this email is prohibited when received in error. Impetus 
does not represent, warrant and/or guarantee, that the integrity of this 
communication has been maintained nor that the communication is free of errors, 
virus, interception or interference.

-
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] Serving partial data of in-memory common data set

2009-07-28 Thread S.A.

Hello,

We have a requirement of serving fixed set of data
   elements (text, images,
audio, video, etc) to a group of users
 coming at about
   the same time, but
each user requesting different set of data
 elements
   from the given data set.

Data set is fixed, but what data elements
 are
   presented to a user is dependent
on user's configuration parameters and they
 vary from
   user to user. Other
than the requesting data elements of a given
 set,
   there is nothing that
is common among users and hence their
 requests can be
   treated as such, ie
as independent requests.

What is the best way to deal with the above
 scenario
   so that the each
httpd process does not goto to either file
 store or db
   for each user
request?

Is there a way that we can retain this data
 in-memory
   and depending on
the requesting user, we read their
 configuration and
   then come to the
in-memory data set and build a page for the
 user and
   serve the user?

Appreciate any insights or pointers.

Thanks
S.A.

   
   http://www.danga.com/memcached/
   
   You dont mention what language/mechanism you want
 to pull
   the data out;
   memcached has client libraries for almost every
 language
   under the sun,
   so it should be appropriate.
   
   Cheers
   
   Tom
  
  Hi Tom,
  
  I am using LAMP and additionally a regular ext3 file
 store
  and an ldap. Most of the data is in mysql and in file
 store
  and it is this I would like to cache and serve via php
 pages.
  
  I will checkout memcached. Thanks for the pointer. Is
 there
  anything native to apache itself?
  
  Thanks
  
  
 
 No, but that is almost certainly by design. Caching works
 best the more
 you can scale it. Anything inside apache would be
 per-process, or at
 best, per-machine. Using memcached allows you to scale out
 your cache to
 support many backend machines.
 
 The best way to use memcached is to avoid DB queries. You
 can either
 cache your objects, so you don't need to do DB queries to
 load them, or
 cache the resultant html you would draw from the objects,
 so you don't
 even need the objects.
 
 If you can cache entire pages, apache has mod_cache and its
 various sub types.
 
 Cheers
 
 Tom

As I have stated before, I have common data element set,
but the individual user request needs to be serviced
by dynamically generating the html page using some of
the date elements from the common set. I could not 
possibly cache html pages as they vary from user to
user and even requests from the same user changes from
request to request. 

Much of the data is in multi-media form on the file store
and this is what I would like to have cached and accessed
without having to goto disk for each request. In addition
there is some data in mysql tables and which needs to be
updated.

I would like to cache the file store which is read-only,
but I am hesitant to cache mysql data as much of it is
dynamic and needs several updates with each request. 

Thanks





  

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: 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] Reason of dropping connections

2009-07-28 Thread Eric Covener
On Tue, Jul 28, 2009 at 4:59 AM, Narendra
Vermanarendra.ve...@impetus.co.in wrote:
 WARNING: Error sending end packet
 java.net.SocketException: Broken pipe
     at java.net.SocketOutputStream.socketWrite0(Native Method)
     at


Does your Apache error log imply any crashes?

-- 
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] Apache 1.3.x or 2.x ?

2009-07-28 Thread Matus UHLAR - fantomas
On 12.07.09 11:48, Jos Chrispijn wrote:
 What I found out is that, with regards to Apache 1.3, Apache 2.0:

 - provides multi-threading support;
 - filtered input/output (I/O), which allows one module to modify the  
 output of another module;
 - also provides support for SSL without any modifications to the core  
 (|mod_tls).
 |
 Can someone tell me which of these advantages is, from a user  
 perspective, the most important one?
 Did I miss other advantages?

the whole fact that apache1 is obsolete, not developed for years and missing
many functions of apache2, should be enough, don't you think?

-- 
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Spam is for losers who can't get business any other way.

-
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] Reason of dropping connections

2009-07-28 Thread Narendra Verma
Hi Eric,

Thanks for your reply.
No, it seems that error is coming only at tomcat backend side.

-Original Message-
From: Eric Covener [mailto:cove...@gmail.com]
Sent: Tuesday, July 28, 2009 4:29 PM
To: users@httpd.apache.org
Subject: Re: [us...@httpd] Reason of dropping connections

On Tue, Jul 28, 2009 at 4:59 AM, Narendra
Vermanarendra.ve...@impetus.co.in wrote:
 WARNING: Error sending end packet
 java.net.SocketException: Broken pipe
 at java.net.SocketOutputStream.socketWrite0(Native Method)
 at


Does your Apache error log imply any crashes?

--
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


Follow us on Twitter- https://twitter.com/impetuscalling.
Impetus actively supports 'National Underprivileged Child Protection Mission' 
and 'Grace Care Children's Home'. Visit 
http://impetus.com/community_affairs.html to know more.

NOTE: This message may contain information that is confidential, proprietary, 
privileged or otherwise protected by law. The message is intended solely for 
the named addressee. If received in error, please destroy and notify the 
sender. Any use of this email is prohibited when received in error. Impetus 
does not represent, warrant and/or guarantee, that the integrity of this 
communication has been maintained nor that the communication is free of errors, 
virus, interception or interference.

-
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



FW: [us...@httpd] Reason of dropping connections

2009-07-28 Thread Narendra Verma

Hi Eric,

Thanks for your reply.
No, it seems that error is coming only at tomcat backend side.

-Original Message-
From: Eric Covener [mailto:cove...@gmail.com]
Sent: Tuesday, July 28, 2009 4:29 PM
To: users@httpd.apache.org
Subject: Re: [us...@httpd] Reason of dropping connections

On Tue, Jul 28, 2009 at 4:59 AM, Narendra
Vermanarendra.ve...@impetus.co.in wrote:
 WARNING: Error sending end packet
 java.net.SocketException: Broken pipe
 at java.net.SocketOutputStream.socketWrite0(Native Method)
 at


Does your Apache error log imply any crashes?

--
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


Follow us on Twitter- https://twitter.com/impetuscalling.
Impetus actively supports 'National Underprivileged Child Protection Mission' 
and 'Grace Care Children's Home'. Visit 
http://impetus.com/community_affairs.html to know more.

NOTE: This message may contain information that is confidential, proprietary, 
privileged or otherwise protected by law. The message is intended solely for 
the named addressee. If received in error, please destroy and notify the 
sender. Any use of this email is prohibited when received in error. Impetus 
does not represent, warrant and/or guarantee, that the integrity of this 
communication has been maintained nor that the communication is free of errors, 
virus, interception or interference.

-
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] Long running Apache 2.2 process

2009-07-28 Thread Chandranshu .
Hi

We are running Apache 2.2 and have setup PHP-CGI to serve PHP files. Today,
we observed that a php-cgi process has been running for a very long time and
is consuming 100% CPU. The parent apache process of this php-cgi has been
running since July 26th. We do a graceful restart of the server every hour
to pick up new virtual host connections but apparently, this process has not
been reaped till now.

Is there a way to figure out what request this apache process is serving?

I have tried looking up on Google and found apachetop but that doesn't give
us the required information.

I have also tried to locate the file being executed with 'lsof -p pid of
apache and php-cgi prcoess' but that listed mostly the dynamic libraries.
The peculiar entries in the php-cgi case were:

php-cgi 16665 swarLD216060r  FIFO0,6   2605128
pipe
php-cgi 16665 swarLD216061w  FIFO0,6   2605129
pipe
php-cgi 16665 swarLD216062w  FIFO0,6   2605130
pipe
php-cgi 16665 swarLD216063u  sock0,5   2605937 can't
identify protocol

and in the case of httpd was:
httpd   16414 apache  558u  sock0,52605127 can't identify
protocol

which we haven't been able to explain.

Any suggestions to investigate will also be very helpful.

Thanks and regards
Chandranshu


Re: [us...@httpd] Reason of dropping connections

2009-07-28 Thread Anantha Padmanabha
Typically, when you use tools like jmeter and stop requests suddenly, this
can happen.
If they are towards end of load testing session, it could be the issue that
Andre explained

Thanks
anantha

On Tue, Jul 28, 2009 at 4:07 PM, Narendra Verma 
narendra.ve...@impetus.co.in wrote:

 Hi Andre,
 Thanks for your reply...

 Actually a browser is not being used to access apache server.

 I am performing load testing. Where load runner as a client is sending
 requests to apache.

 [loadRunner (configured 5 users) -- Apache --- Tomcat]

 About 24000 requests are being sent to apache in 10 min. Where apache posts
 call on web service which has been deployed on tomcat backend servers.

 During this load testing I am getting this below error.

 Thanks,
 Narendra

 -Original Message-
 From: André Warnier [mailto:a...@ice-sa.com]
 Sent: Tuesday, July 28, 2009 2:46 PM
 To: users@httpd.apache.org
 Subject: Re: [us...@httpd] Reason of dropping connections

 Narendra Verma wrote:
  Hi,
 
  I am facing one problem of dropping connections by apache load balancer.
 
 .. maybe

 
  Getting error on tomcat server :
 
  WARNING: Error sending end packet
  java.net.SocketException: Broken pipe
  at java.net.SocketOutputStream.socketWrite0(Native Method)
 ...
 The most likely reason is the client browser canceling the connection.
 That happens when the user clicks the cancel button, or moves away to
 another page.
 (The client browser has a connection with Apache. Apache has a
 connection with Tomcat via mod_proxy.  Tomcat is busy sending a response
 to Apache, and Apache forwarding this response to the client.  Now the
 client hits cancel, and the browser cuts the connection to Apache.
 Apache can no longer send bytes onto that connection. But Tomcat is
 still sending bytes to Apache.  To tell Tomcat to stop, Apache cuts the
 connection to Tomcat. Now Tomcat can no longer send, and logs the
 exception)

 It may or may not be the reason, but it is the first thing you should
 try to rule out.
 You should check for the logging capabilities of the mod_proxy module
 you are using, set it high, and examine the resulting log.  It will tell
 you if it is mod_proxy canceling the connection to Tomcat, because the
 Apache client has done the above.

 -
 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


 Follow us on Twitter- https://twitter.com/impetuscalling.
 Impetus actively supports 'National Underprivileged Child Protection
 Mission' and 'Grace Care Children's Home'. Visit
 http://impetus.com/community_affairs.html to know more.

 NOTE: This message may contain information that is confidential,
 proprietary, privileged or otherwise protected by law. The message is
 intended solely for the named addressee. If received in error, please
 destroy and notify the sender. Any use of this email is prohibited when
 received in error. Impetus does not represent, warrant and/or guarantee,
 that the integrity of this communication has been maintained nor that the
 communication is free of errors, virus, interception or interference.

 -
 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 1.3.x or 2.x ?

2009-07-28 Thread Nick Kew

Matus UHLAR - fantomas wrote:


the whole fact that apache1 is obsolete, not developed for years and missing
many functions of apache2, should be enough, don't you think?



The last significant Apache 1 release was Apache 1.3 in 1998.

Of course you can still use it, just as you can still use
other '98 software.  Do you run Windows 98, for instance?

--
not me guv

-
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] Deflate - Logging ratios

2009-07-28 Thread Anantha Padmanabha
Hi,

I am using Apache 2.2.8. I tried to add logging for deflate [gzip] ratios in
a dev machine by looking at
http://httpd.apache.org/docs/2.0/mod/mod_deflate.html and some other
articles on internet.

Heres the configuration used:
IfModule mod_deflate.c
   AddOutputFilterByType DEFLATE text/html text/plain text/xml
/IfModule

DeflateFilterNote Input instr
DeflateFilterNote Output outstr
DeflateFilterNote ratio
LogFormat
%h\t%l\t%u\t%t\t\%r\\t%s\t%b\t%D\t\%{User-Agent}i\\t%I\t%O\t%{outstr}n/%{instr}n\t(%{ratio}n)
common

Logging is working fine but the ratio is not appearing for html files [It
gets printed for css/js files]

192.168.0.57-   -   [28/Jul/2009:17:56:57 +0530]GET
/credit-card/apply-online.html HTTP/1.1   200 14722   418995
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1) Gecko/20090624
Firefox/3.5  125715257   -/- (-)
192.168.0.57-   -   [28/Jul/2009:17:56:58 +0530]GET
/scripts/validate/ccefrm.js HTTP/1.1  200 232511741
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1) Gecko/20090624
Firefox/3.5  122529742307/9821   (23)

I verified using lwp-request, curl and online tools that our configs are
compressing pages while serving.
anan...@anantha-laptop:~$ lwp-request -e -d -H 'Accept-Encoding: gzip'
http://local.bankbazaar.com/ |grep -i -e Content-Encoding -e Content-Length
Content-Encoding: gzip
Content-Length: 8793

Please help me understand why ratio is not appearing for html files.

Thanks
Anantha


[us...@httpd] Re: Long running Apache 2.2 process

2009-07-28 Thread Chandranshu .
Hi

We have now turned on mod_status and added the ExtendedStatus On directive
to httpd.conf and have restarted apache gracefully. However, there is no
information about the rogue process. I guess this is because that process
was forked before this directive was turned on.

Anything else we can try to track the request being served by that process?

Thanks and regards
Chandranshu

On Tue, Jul 28, 2009 at 5:06 PM, Chandranshu . chandran...@gmail.comwrote:

 Hi

 We are running Apache 2.2 and have setup PHP-CGI to serve PHP files. Today,
 we observed that a php-cgi process has been running for a very long time and
 is consuming 100% CPU. The parent apache process of this php-cgi has been
 running since July 26th. We do a graceful restart of the server every hour
 to pick up new virtual host connections but apparently, this process has not
 been reaped till now.

 Is there a way to figure out what request this apache process is serving?

 I have tried looking up on Google and found apachetop but that doesn't give
 us the required information.

 I have also tried to locate the file being executed with 'lsof -p pid of
 apache and php-cgi prcoess' but that listed mostly the dynamic libraries.
 The peculiar entries in the php-cgi case were:

 php-cgi 16665 swarLD216060r  FIFO0,6   2605128
 pipe
 php-cgi 16665 swarLD216061w  FIFO0,6   2605129
 pipe
 php-cgi 16665 swarLD216062w  FIFO0,6   2605130
 pipe
 php-cgi 16665 swarLD216063u  sock0,5   2605937 can't
 identify protocol

 and in the case of httpd was:
 httpd   16414 apache  558u  sock0,52605127 can't identify
 protocol

 which we haven't been able to explain.

 Any suggestions to investigate will also be very helpful.

 Thanks and regards
 Chandranshu



Re: FW: [us...@httpd] Reason of dropping connections

2009-07-28 Thread André Warnier

Narendra Verma wrote:
..
Narendra, nothing to do with the problem at hand, but try to send your 
answers *only* to the list.  We are getting your messages in double 
otherwise.

Thanks.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: 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] rewrite to 443..please help me

2009-07-28 Thread danielitob

Thanks to everyone...
I went on my linux server and I run

openssl x509 -in cert.crt -noout -subject

In output I've
subject= /C=IT/ST=***/L=***/O=***/OU=***/OU=Terms of use at
www.trustitalia.it/rpa (c) 04/OU=Authenticated by Trust Italia,
S.p.A./OU=Member, VeriSign Trust Network/CN=www.grandhotelduegolfi.com

When I go to 
http://www.grandhotelduegolfi.com
it works correctly.

If I run a request for /protected, so 
http://www.grandhotelduegolfi.com

as I expected browser redirects to
https://www.grandhotelduegolfi.com/backend 

and an error appears. Error is not significative, cause on my server, when a
request doesn't reach something correctly, it redirects to a default
application, so please skip it.
I read log and I found

[warn] RSA server certificate CommonName (CN)  `www.grandhotelduegolfi.com'
does NOT match server name!?

Here is configuration of my virtual host
VirtualHost IP:80
ServerName www.grandhotelduegolfi.com
ServerAlias grandhotelduegolfi.com 
DocumentRoot /var/www/www.grandhotelduegolfi.com
CustomLog logs/hotelduegolfi_log combined
RewriteEngine On
RewriteLog logs/rewrite.log
RewriteLogLevel 5
RewriteRule ^/backend/(.*)
https://www.grandhotelduegolfi.com/backend/$1 [R=301,L]
Directory /var/www/www.grandhotelduegolfi.com
AllowOverride FileInfo
/Directory

/VirtualHost

My doubt now is...what I've to put in my ssl.conf?
Some of significative data are below

LoadModule ssl_module modules/mod_ssl.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
ErrorLog logs/ssl_error_log
TransferLog logs/ssl_access_log
LogLevel warn

SSLEngine on

SSLProtocol all -SSLv2

SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW


SSLCertificateFile /etc/httpd/conf/ssl.crt/cert.pem

SSLCertificateKeyFile /etc/httpd/conf/ssl.crt/key.pem

but I've nothing under

VirtualHost _default_:443,

cause my virtualhost is configured on port 80, on a specific file.

What I'm missing?
Please help me



 -Original Message-
 From: danielitob [mailto:gbatt...@aliceposta.it] 
 Sent: Tuesday, July 28, 2009 9:06 AM
 To: users@httpd.apache.org
 Subject: Re: [us...@httpd] rewrite to 443..please help me
 
 
 Ok..
 that is configuration. What I need is running a we site on 
 http, but when I
 send request to a protected/* page, request mu be managed under ssl.
 What I'm missing?Is this only configuration I have to do?
 In ssl.conf, I configured certificate. It seems I did it 
 well, cause when I
 run application and I click on certificate, it seems 
 correctly configured.
 But when I run a page under /protected, it gives me error
 
 [warn] RSA server certificate CommonName (CN) 
 `www.mysite.com' does NOT
 match server name!?
 
 Why is it so difficult and there isn't a working example on 
 internet?:(
 
 This is virtual host
 
 VirtualHost IP:80
 ServerName www.mysite.it
 DocumentRoot /var/www/www.mysite.com
 RewriteEngine on
 RewriteLog log/rewrite.log
 RewriteLogLevel 5
 RewriteRule ^/protected/(.*) 
 https://www.mysite.com/protected:443/$1
 [R=301,L]

It is still not clear: as Igor says, the domain name in the rewrite-rule
is different from the domain-name of your HTTP site. Do you have both
the .it and the .com domains registered?

If you could bear to publish the real domain name, we could check it.
Otherwise, we only have your word that fields are the same - you could
have a typing error that you are failing to notice..


 Directory /var/www/www.mysite.com
 AllowOverride FileInfo
 /Directory
 /VirtualHost
 
 Thanks for your help, you're my last hope..
 
 
 
 Igor Cicimov wrote:
  
  sorry i lost your initial email with the configuration, can 
 you send it
  again please so i can have another look?
  
  
  On Tue, Jul 28, 2009 at 3:01 AM, danielitob gbatt...@aliceposta.it
  wrote:
  
 
  Hello Igor..
 
  I checked but it was my digit error.
  Fields are equal but I have always same problem..
 
  What I'm missing?
  I configured virtual host on port 80 and did a redirect 
 for a subfolder
  to
  443.
  i need other configuration?
 
  Please help me, I'm crazying..
 
 
  Igor Cicimov wrote:
  
   I don't know if typo or not but in the redirect rule you have
   mysite.cominstead
   mysite.it
  
   On Fri, Jul 24, 2009 at 6:24 PM, danielitob 
 gbatt...@aliceposta.it
   wrote:
  
  
   Sorry...you're right.
   I analyzed error log and I found that...it's strange
  
   [Fri Jul 24 10:12:19 2009] [warn] RSA server 
 certificate CommonName
  (CN)
   `www.mysite.com' does NOT match server name!?
  
   what does mean?
  
  
  
  
   Ray Van Dolson-3 wrote:
   
On 

Re: [us...@httpd] Broken pipe

2009-07-28 Thread André Warnier

Darvin Denmian wrote:

Hello,

last week i activated LogLevel Debug in my Apache server,
now apache's logs shows:

[Tue Jul 28 11:04:40 2009] [info] [client XXX.75.240.8] (32)Broken
pipe: core_output_filter: writing data to the network
[Tue Jul 28 11:04:40 2009] [info] [client XXX.75.240.8] (32)Broken
pipe: core_output_filter: writing data to the network
[Tue Jul 28 11:04:41 2009] [info] [client XXX.75.240.8] (32)Broken
pipe: core_output_filter: writing data to the network
[Tue Jul 28 11:04:44 2009] [info] [client XXX.75.240.8] (32)Broken
pipe: core_output_filter: writing data to the network
[Tue Jul 28 11:04:46 2009] [info] [client XXX.75.240.8] (32)Broken
pipe: core_output_filter: writing data to the network

I suggest you read the on-going thread on this same list, entitled 
Reason of dropping connections for some explanations.



-
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] Broken pipe

2009-07-28 Thread Darvin Denmian
André,

I will do that . Thanks.

On Tue, Jul 28, 2009 at 11:11 AM, André Warniera...@ice-sa.com wrote:
 Darvin Denmian wrote:

 Hello,

 last week i activated LogLevel Debug in my Apache server,
 now apache's logs shows:

 [Tue Jul 28 11:04:40 2009] [info] [client XXX.75.240.8] (32)Broken
 pipe: core_output_filter: writing data to the network
 [Tue Jul 28 11:04:40 2009] [info] [client XXX.75.240.8] (32)Broken
 pipe: core_output_filter: writing data to the network
 [Tue Jul 28 11:04:41 2009] [info] [client XXX.75.240.8] (32)Broken
 pipe: core_output_filter: writing data to the network
 [Tue Jul 28 11:04:44 2009] [info] [client XXX.75.240.8] (32)Broken
 pipe: core_output_filter: writing data to the network
 [Tue Jul 28 11:04:46 2009] [info] [client XXX.75.240.8] (32)Broken
 pipe: core_output_filter: writing data to the network

 I suggest you read the on-going thread on this same list, entitled Reason
 of dropping connections for some explanations.


 -
 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] Deflate - Logging ratios

2009-07-28 Thread Anantha Padmanabha
Hi Eric,

I added content-encoding and the logs are similar:

192.168.0.57-   -   [28/Jul/2009:21:28:06 +0530]GET
/bankdb/dashboard.html HTTP/1.1   200 16183   1151294 Mozilla/5.0
(X11; U; Linux i686; en-US; rv:1.9.1) Gecko/20090624 Firefox/3.5  1289
16729   -/- (-) gzip
192.168.0.57-   -   [28/Jul/2009:21:28:07 +0530]GET
/scripts/jquery/jquery.validate.js HTTP/1.1   200 91946507
Mozilla/5.0(X11; U; Linux i686; en-US; rv:1.9.1) Gecko/20090624
Firefox/3.5  965 97219176/34766  (26)gzip
192.168.0.57-   -   [28/Jul/2009:21:28:09 +0530]GET
/styles/bankdb2_additional.css HTTP/1.1   200 20041873
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1) Gecko/20090624
Firefox/3.5  124126381986/10886  (18)gzip
192.168.0.57-   -   [28/Jul/2009:21:28:09 +0530]GET
/images/phone_sound.png HTTP/1.1  200 703 443 Mozilla/5.0
(X11; U; Linux i686; en-US; rv:1.9.1) Gecko/20090624 Firefox/3.5  981
1082-/- (-) -

Images dont get compressed and hence content-encoding does not mention gzip.
But html mentions gzip but does not print the ratio. Could it be buggy
module? How to investigate further?

Regarding your question about logs and command line differing, I was trying
it from my firefox browser.
I had run it from command line to verify that gzip comes back in responde
header. Also verified that for requests from command line also ratio is not
present in logs

Thanks
Anantha

On Tue, Jul 28, 2009 at 7:10 PM, Eric Covener cove...@gmail.com wrote:

 On Tue, Jul 28, 2009 at 8:31 AM, Anantha
 Padmanabhaanantha.padmana...@bankbazaar.com wrote:

 AddOutputFilterByType DEFLATE text/html text/plain text/xml


  192.168.0.57-   -   [28/Jul/2009:17:56:57 +0530]GET
  /credit-card/apply-online.html HTTP/1.1   200 14722   418995
  Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1) Gecko/20090624
  Firefox/3.5  125715257   -/- (-)
  192.168.0.57-   -   [28/Jul/2009:17:56:58 +0530]GET
  /scripts/validate/ccefrm.js HTTP/1.1  200 232511741
  Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1) Gecko/20090624
  Firefox/3.5  122529742307/9821   (23)
 
  Please help me understand why ratio is not appearing for html files.

 Do you have some other DEFLATE configuration? Your results seem
 unusually opposite of what your config is.

 Why dos your access log not show the same request as your command line
 client?

 Do you disable compression via any SetEnv/SetEnvIf?  Can you log
 %{Content-Encoding}o?



 --
 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




[us...@httpd] download problem

2009-07-28 Thread _angelo

Hello All,

i have probably simple question, maybe not really apache-related:

Downloading some pdf from a remote site link, i found attached to the pdf
(opening it with notepad) the html code of the page. The server seems using
mod_rewrite style links like:

http://www.example.com/downloads/fil..._PDF/2211/1441

I was just curios if this problem could be an apache misconfiguration
problem.

many thanks,
spectrum
-- 
View this message in context: 
http://www.nabble.com/download-problem-tp24702626p24702626.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.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



[us...@httpd] Symbolic links not working.

2009-07-28 Thread Steven Lobbezoo
Hi,

After scanning all other docs, I still cannot figure out how to do the
following:
(Apache 2.2.4 on a Suse 11.0 box)

I have a directory (in my server tree) with a web application.
I have several virtual host (about 20 at the moment), I want to have use
this directory (without that it's viewable from the URL by the
end-user). The php scripts there will solve the attachement to the right
user (via a MySQL DB).

So what I did was making a softlink from the virtual user directory to
the applications directory (both under htdocs)
But whatever I do, I get a 403 error (no access).
I have verified that all files are accessible, there are no typo's. I
tried to add a Directory blok in the httpd.conf file wich allows acces
for everybody and symbolic links, etc. etc.

Some ideas would be greatly appreciated.

Steven
  



Re: [us...@httpd] Symbolic links not working.

2009-07-28 Thread Tom Evans
On Tue, 2009-07-28 at 19:02 +0200, Steven Lobbezoo wrote:
 Hi,
 
 After scanning all other docs, I still cannot figure out how to do the
 following:
 (Apache 2.2.4 on a Suse 11.0 box)
 
 I have a directory (in my server tree) with a web application.
 I have several virtual host (about 20 at the moment), I want to have
 use this directory (without that it's viewable from the URL by the
 end-user). The php scripts there will solve the attachement to the
 right user (via a MySQL DB).
 
 So what I did was making a softlink from the virtual user directory to
 the applications directory (both under htdocs)
 But whatever I do, I get a 403 error (no access).
 I have verified that all files are accessible, there are no typo's. I
 tried to add a Directory blok in the httpd.conf file wich allows acces
 for everybody and symbolic links, etc. etc.
 
 Some ideas would be greatly appreciated.
 
 Steven
   

What does the error log say? If you get a 403 it will say why in the
error log.

Cheers

Tom


-
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] Question on DirectoryIndex

2009-07-28 Thread ARTHUR GOLDBERG

Hi

(Hope this isn't a dupe. I just registered.)

Running
Server version: Apache/2.2.3
Server built:   Jul  6 2009 05:29:28

Our website's accessed at two domains, like site.org and x.site.edu.
It's largely driven by Perl programs loaded by mod_perl, but has some  
static content.
I want to configure it so that all requests for directory URLs map to  
index.html in DocumentRoot.


My impression from http://httpd.apache.org/docs/2.2/mod/mod_dir.html#directoryindex 
 is that one way would be to have httpd.conf say

DirectoryIndex /index.html

and have that index.html in turn say
meta http-equiv=Refresh content=0; url=http://site.org;

but I understand that Refresh isn't recommended (http://en.wikipedia.org/wiki/Meta_refresh 
). Furthermore, a test shows that this works for URLs asking for  
directories in site.org but not x.site.edu.


It seemed that another alternative is to define
DirectoryIndex /cgi-bin/directory/

in httpd.conf where '/cgi-bin/directory/' is the root directory of  
requests served by Perl, but that produces an Attempt to serve  
directory: /scriptroot/cgi-bin/ error that I didn't expect.


BR
Arthur

Also, is there a way to have a running Apache httpd output the  
directives it knows?

Re: [us...@httpd] Question about Server Side Includes

2009-07-28 Thread André Warnier

Freddy Jensen wrote:
...
Hi.
Without being an expert on SSI, I do have the impression that your 
problem is this : the SSI processor does only one pass on your 
document.  Any included things must be (or generate) proper html on 
the first pass.  You cannot pull in something which would need a 
second SSI pass in order to be interpreted and generate html.


Note that there are probably ways to get around that, but not being the 
specialist, I don't know them.



-
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] Question on DirectoryIndex

2009-07-28 Thread André Warnier

André Warnier wrote:
...
Addendum :
Note that if are really courageous, you should really have a look at 
this documentation page (something I should also do seriously some day) :

http://httpd.apache.org/docs/2.2/mod/mod_autoindex.html

This stuff looks like it can do just about anything you'd want to do in 
terms of directory indexes, and even many things you'd never even think 
of doing.

And it's standard Apache.


-
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] Question about Server Side Includes

2009-07-28 Thread Torsten Foertsch
On Tue 28 Jul 2009, Freddy Jensen wrote:
 I have created a csh script which I invoke from my web page
 like this:

 !--#exec cmd=/somepath/check_for_debug.csh --

 The script looks like this:

 #!/bin/csh -f
 echo '\!--#set var=MY_DEBUG value=1 --'
 exit 0

 Right after executing the  csh script I have this html code
 that tries to check the value of the MY_DEBUG variable and
 execute printenv if the value is set to 1:

 !--#if expr=${MY_DEBUG} = 1 --
 !--#printenv --
 !--#endif --

try it this way:

1) make the shell script accessible by an URL
   and configure mod_cgi for this URL
2) set the INCLUDES filter for this URL
3) use #include virtual instead of #exec

If you don't want the script to be exposed on the web you can use 
mod_rewrite's IS_SUBREQ variable. If it is false return a 404.

Now a bit of explanation, #exec simply executes the script and passes 
the output to the client. #include virtual issues a subrequest. That 
means the included document is accessed by an URL and can be configured 
independent of the main URL. It can be configured to be handled by 
mod_cgi and it can have assigned output filters. Now, when the INCLUDES 
filter of the subrequest sees the #set command it sets the variable. 
Then the main request's INCLUDES filter can access it. That's the 
theory.

Another option may be to configure the INCLUDES filter twice. But then 
you have to prevent the #if from being evaluated by the first run of 
the filter.

Torsten

-- 
Need professional mod_perl support?
Just hire me: torsten.foert...@gmx.net

-
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] Adding Alias with HTTPS

2009-07-28 Thread rkw

I want to add an alias:

Alias myApp /opt/installdir/myApp when I install my application. I can do
this fine by adding a myApp.conf file into the /etc/httpd/conf.d folder

But, this makes the application accessible both via http and https.

I can add the alais into the Virtual Host on port 443 in the ssl.conf file
and get it to work, but, ideally, it would be much easier to install if I
could just do everything in myApp.conf file. 

How can I bind that alais to the Virtual Host on port 443 without changing
the ssl.conf file?
-- 
View this message in context: 
http://www.nabble.com/Adding-Alias-with-HTTPS-tp24706066p24706066.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.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] Serving partial data of in-memory common data set

2009-07-28 Thread Jonathan Zuckerman
On Tue, Jul 28, 2009 at 3:37 AM, S.A.qmt...@yahoo.com wrote:

Hello,
   
We have a requirement of serving fixed set of data
   elements (text, images,
audio, video, etc) to a group of users
 coming at about
   the same time, but
each user requesting different set of data
 elements
   from the given data set.
   
Data set is fixed, but what data elements
 are
   presented to a user is dependent
on user's configuration parameters and they
 vary from
   user to user. Other
than the requesting data elements of a given
 set,
   there is nothing that
is common among users and hence their
 requests can be
   treated as such, ie
as independent requests.
   
What is the best way to deal with the above
 scenario
   so that the each
httpd process does not goto to either file
 store or db
   for each user
request?
   
Is there a way that we can retain this data
 in-memory
   and depending on
the requesting user, we read their
 configuration and
   then come to the
in-memory data set and build a page for the
 user and
   serve the user?
   
Appreciate any insights or pointers.
   
Thanks
S.A.
   
  
   http://www.danga.com/memcached/
  
   You dont mention what language/mechanism you want
 to pull
   the data out;
   memcached has client libraries for almost every
 language
   under the sun,
   so it should be appropriate.
  
   Cheers
  
   Tom
 
  Hi Tom,
 
  I am using LAMP and additionally a regular ext3 file
 store
  and an ldap. Most of the data is in mysql and in file
 store
  and it is this I would like to cache and serve via php
 pages.
 
  I will checkout memcached. Thanks for the pointer. Is
 there
  anything native to apache itself?
 
  Thanks
 
 

 No, but that is almost certainly by design. Caching works
 best the more
 you can scale it. Anything inside apache would be
 per-process, or at
 best, per-machine. Using memcached allows you to scale out
 your cache to
 support many backend machines.

 The best way to use memcached is to avoid DB queries. You
 can either
 cache your objects, so you don't need to do DB queries to
 load them, or
 cache the resultant html you would draw from the objects,
 so you don't
 even need the objects.

 If you can cache entire pages, apache has mod_cache and its
 various sub types.

 Cheers

 Tom

 As I have stated before, I have common data element set,
 but the individual user request needs to be serviced
 by dynamically generating the html page using some of
 the date elements from the common set. I could not
 possibly cache html pages as they vary from user to
 user and even requests from the same user changes from
 request to request.

 Much of the data is in multi-media form on the file store
 and this is what I would like to have cached and accessed
 without having to goto disk for each request. In addition
 there is some data in mysql tables and which needs to be
 updated.

 I would like to cache the file store which is read-only,
 but I am hesitant to cache mysql data as much of it is
 dynamic and needs several updates with each request.

 Thanks







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



 As I have stated before

Don't get snippy, you're asking for free technical consulting on a
matter that's not even really pertinent to this mailing list

I think you'll have to describe your application more precisely if you
want more advice, particularly this last sentence:

 I would like to cache the file store which is read-only,
 but I am hesitant to cache mysql data as much of it is
 dynamic and needs several updates with each request.

-
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] Serving partial data of in-memory common data set

2009-07-28 Thread André Warnier

Jonathan Zuckerman wrote:

On Tue, Jul 28, 2009 at 3:37 AM, S.A.qmt...@yahoo.com wrote:

...
Concurring with Jonathan about the free advice and the tenuous relevance 
to the main list topic, I'd nevertheless want to try to contribute.


My summary of the issue :
- there are N clients accessing the site
- each client is authenticated, with a client-id of some kind
- they all request originally the same URL
- the server however returns a page to each client that can be 
different, based on a server-side client profile, selected as per the 
client-id
- the returned page is different, because it includes for each client, a 
different mixture of items in the page, based on the client profile
- each client gets a different selection of i items, but these i items 
are picked among a grand total of I items, which are themselves always 
the same
- you would like to cache at least part of these I items in memory, to 
speed up the responses to the clients


You haven't given us any hard numbers, like how many clients there are, 
how concurrently they access the server, how many I items there really 
are, how large each I item is, how fast the server is, how much memory 
it has, or anything of the kind.
You have mentioned that some of the items I were media, which I 
personally tend to associate with large, byte-wise.


My very first reaction would be to ask myself if it is all really worth 
it.  Caching in memory, no matter how it's done, has a cost.  A cost in 
design, complexity, and in pure cache management.
Modern operating systems already cache disk data.  So if a same object 
is accessed frequently in a short period of time, it will already be in 
the practice cached in memory buffers by the OS.  Below the OS level, 
good disk controllers also cache frequently accessed data.  Below the 
controllers, disks themselves cache data in cache memory.
Caching it yet again, with  a different piece of software, may just add 
overhead.


An additional aspect is that, if some of the objects are large, and your 
server has limited memory, caching many such objects may fill up the 
physical memory, and cause the system to start swapping, which would 
really have the opposite effect to what you're looking for.


On the other hand, for Apache to access an object on disk, requires on 
the part of Apache quite a bit of work; all the more work the deeper the 
object resides in the document space, because Apache needs to walk 
the directory hierarchy, all the while checking access and other rules 
at each level.  So by organising your objects smartly on disk, so as to 
minimise the work Apache has to do to find it and return it, you may 
gain a whole lot of processing time.


And servers nowadays are cheap. For the time and money you'd spend 
studying the best caching scheme, you could easily buy an extra server 
with terabytes of disk space and gigabytes of ram to use as I/O cache.


So basically what I am saying, is : try it, without any clever caching 
scheme, but with a clever organisation of your data and an efficient 
Apache configuration.  That /may/ show a problem and a bottleneck, which 
you can then tackle on its own merits.  On the other hand, it may show 
no problem at all.


A lot of work has gone into Apache, to make it as efficient as possible 
to serve content of all kinds.  There are thousands of Apache sites 
handling thousands of clients, and a lot of content.
Do not spend a lot of time ahead of time, to solve what is maybe a 
non-existent problem.  As someone said a long time ago : premature 
optimisation is the source of much evil.


-
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] Can't alloc filename, referer: http://blah.com/somefile.shtml

2009-07-28 Thread Ezra Taylor
 Gents:

   I'm gettng the above error.  Can one of you shine some light
on this?  My setup is as follows.  Thanks for your help.

Redhat 4 update 8
Apache 2.0.25

-- 
Ezra Taylor


Re: [us...@httpd] Can't alloc filename, referer: http://blah.com/somefile.shtml

2009-07-28 Thread Jonathan Zuckerman
On Tue, Jul 28, 2009 at 5:33 PM, Ezra Taylorezra.tay...@gmail.com wrote:
  Gents:

    I'm gettng the above error.  Can one of you shine some light
 on this?  My setup is as follows.  Thanks for your help.

 Redhat 4 update 8
 Apache 2.0.25

 --
 Ezra Taylor


If you are interested in an informed response I'd advise you to be
_much_ more descriptive.  Among the many followup questions I could
think of, I would first ask: are you truly just serving up a static
text file or is somefile.shtml actually served up by some scripting
language?

-
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] Question about secure mod_proxy

2009-07-28 Thread Arash Afaghi
Hello 
I'm trying to setup a forward proxy server to help some students in Iran bypass 
internet censorship and access news sites. 
proxy is up on a random port and working perfectly. problem is websites that 
are censored still getting access denied by isp even through my proxy. I've 
heard government is doing a DPI(deep packet inspect)-what ever the hell that 
is- so they block receive packets. 
I know mod_ssl is used for secure/encrypted web service, my question is whether 
it's possible to set up a proxy using secure connection between server and 
client?requested websites may be https or normal http. 
thanks in advance.