Re: AliasMatch und Status-Code

2011-12-08 Thread Mario Brandt
Hallo Reindl,
guck mal http://httpd.apache.org/docs/current/mod/mod_headers.html an.
Damit ist es recht einfach einen 404 header zu setzen.
Oder per mod_rewrite mit [F]
http://httpd.apache.org/docs/2.2/howto/access.html#rewrite


Gruß
Mario

2011/12/7 Reindl Harald h.rei...@thelounge.net:
 Hi

 Gibt es irgendeine Möglichkeit mit AliasMatch wie unten einen 404-Statuscode 
 zu
 senden ohne hier PHP ins Spiel zu bringen?

 Sinn dieser und ähnlicher Übungen ist es auf Servern wo ich Joomla und 
 Konsorten
 auf keinen Fall sehen will falls sie doch jemand wo installiert zu überlagern
 und vor allem auch das Error-Log von tausenden 404ern durch Bots 
 freizubekommen

 Bei externen Security-Audits wäre es aber angehnem die Standard-URLs deswegen 
 nicht
 immer als existent gelistet zu bekommen

 AliasMatch ^/.*joomla/(.*)$ /Volumes/dune/www-servers/spam-pot.htm
 http://www.thelounge.net/joomla/


--
Apache HTTP Server Mailing List users-de
  unsubscribe-Anfragen an users-de-unsubscr...@httpd.apache.org
   sonstige Anfragen an users-de-h...@httpd.apache.org
--



Re: AliasMatch und Status-Code

2011-12-08 Thread Reindl Harald
Hi

Ja schon
Aber wie verheirate ich das mit AliasMatch?

Am 08.12.2011 10:48, schrieb Mario Brandt:
 Hallo Reindl,
 guck mal http://httpd.apache.org/docs/current/mod/mod_headers.html an.
 Damit ist es recht einfach einen 404 header zu setzen.
 Oder per mod_rewrite mit [F]
 http://httpd.apache.org/docs/2.2/howto/access.html#rewrite
 
 2011/12/7 Reindl Harald h.rei...@thelounge.net:
 Hi

 Gibt es irgendeine Möglichkeit mit AliasMatch wie unten einen 404-Statuscode 
 zu
 senden ohne hier PHP ins Spiel zu bringen?

 Sinn dieser und ähnlicher Übungen ist es auf Servern wo ich Joomla und 
 Konsorten
 auf keinen Fall sehen will falls sie doch jemand wo installiert zu überlagern
 und vor allem auch das Error-Log von tausenden 404ern durch Bots 
 freizubekommen

 Bei externen Security-Audits wäre es aber angehnem die Standard-URLs 
 deswegen nicht
 immer als existent gelistet zu bekommen

 AliasMatch ^/.*joomla/(.*)$ /Volumes/dune/www-servers/spam-pot.htm
 http://www.thelounge.net/joomla/



signature.asc
Description: OpenPGP digital signature


Re: AliasMatch und Status-Code

2011-12-08 Thread Mario Brandt
Hi,
meine Idee wäre es unter dem AliasMatch entweder ein LocationMatch zu
haben und den dem Block dann den Heaser zu setzen. Vielleicht geht
auch ein DirectoryMatch.

Ähm mal ins Blaue ohne es getestet zu haben

AliasMatch ^/.*joomla/(.*)$ /Volumes/dune/www-servers/spam-pot.htm
LocationMatch  ^/.*joomla/(.*)$ 

/LocationMatch

Es geht vielleicht in dem Directory /Volumes/dune/www-servers/ den
Header zusetzen.

Schreib auf jeden Fall, was funktioniert hat ;)

Gruß
Mario

2011/12/8 Reindl Harald h.rei...@thelounge.net:
 Hi

 Ja schon
 Aber wie verheirate ich das mit AliasMatch?

 Am 08.12.2011 10:48, schrieb Mario Brandt:
 Hallo Reindl,
 guck mal http://httpd.apache.org/docs/current/mod/mod_headers.html an.
 Damit ist es recht einfach einen 404 header zu setzen.
 Oder per mod_rewrite mit [F]
 http://httpd.apache.org/docs/2.2/howto/access.html#rewrite

 2011/12/7 Reindl Harald h.rei...@thelounge.net:
 Hi

 Gibt es irgendeine Möglichkeit mit AliasMatch wie unten einen 
 404-Statuscode zu
 senden ohne hier PHP ins Spiel zu bringen?

 Sinn dieser und ähnlicher Übungen ist es auf Servern wo ich Joomla und 
 Konsorten
 auf keinen Fall sehen will falls sie doch jemand wo installiert zu 
 überlagern
 und vor allem auch das Error-Log von tausenden 404ern durch Bots 
 freizubekommen

 Bei externen Security-Audits wäre es aber angehnem die Standard-URLs 
 deswegen nicht
 immer als existent gelistet zu bekommen

 AliasMatch ^/.*joomla/(.*)$ /Volumes/dune/www-servers/spam-pot.htm
 http://www.thelounge.net/joomla/


--
Apache HTTP Server Mailing List users-de
  unsubscribe-Anfragen an users-de-unsubscr...@httpd.apache.org
   sonstige Anfragen an users-de-h...@httpd.apache.org
--



Re: AliasMatch und Status-Code

2011-12-08 Thread Reindl Harald
Das LocationMatch war ihm wurscht

Keine Ahnung, ich habs jetzt dann doch auf PHP umbenannt
Am Beginn eine Header-Zeile und gut ist
War nur ein Versuch obs auf die Schnelle eine bessere Lösung gibt

Hauptsache das Zeug taucht weder im Apache-Errorlog noch in Scans auf
nachdem die automatschen Reports offenbar nicht manuell gegengeprüft
werden und ich mir nicht dauernd vorhalten lassen will dass potentiell
kritisches Zeug am Server ist obwohl es explizit global geblockt wurde

?php
 header($_SERVER['SERVER_PROTOCOL'] . ' 404 Not Found', true, 404);
?


AliasMatch ^/.*wp-content/(.*)$ /Volumes/dune/www-servers/spam-pot.php
AliasMatch ^/.*joomla/(.*)$ /Volumes/dune/www-servers/spam-pot.php
AliasMatch ^/.*wordpress/(.*)$ /Volumes/dune/www-servers/spam-pot.php
AliasMatch ^/.*wp-login.php /Volumes/dune/www-servers/spam-pot.php
AliasMatch ^/.*wp-config.php /Volumes/dune/www-servers/spam-pot.php
AliasMatch ^/.*joomla.php /Volumes/dune/www-servers/spam-pot.php
AliasMatch ^/.*scripts/setup.php /Volumes/dune/www-servers/spam-pot.php
AliasMatch ^/.*libraries/dbg/setup.php /Volumes/dune/www-servers/spam-pot.php
AliasMatch ^/.*xmlrpc.php /Volumes/dune/www-servers/spam-pot.php
AliasMatch ^/.*PMA/(.*)$ /Volumes/dune/www-servers/spam-pot.php
AliasMatch ^/.*PMA2005/(.*)$ /Volumes/dune/www-servers/spam-pot.php
AliasMatch ^/.*PMA2006/(.*)$ /Volumes/dune/www-servers/spam-pot.php
AliasMatch ^/.*PMA2007/(.*)$ /Volumes/dune/www-servers/spam-pot.php
AliasMatch ^/.*PMA2008/(.*)$ /Volumes/dune/www-servers/spam-pot.php
AliasMatch ^/.*PMA2009/(.*)$ /Volumes/dune/www-servers/spam-pot.php
AliasMatch ^/.*PMA2010/(.*)$ /Volumes/dune/www-servers/spam-pot.php
AliasMatch ^/.*PMA2011/(.*)$ /Volumes/dune/www-servers/spam-pot.php
AliasMatch ^/.*PMA2012/(.*)$ /Volumes/dune/www-servers/spam-pot.php
AliasMatch ^/.*pma/(.*)$ /Volumes/dune/www-servers/spam-pot.php
AliasMatch ^/.*dbma/(.*)$ /Volumes/dune/www-servers/spam-pot.php
AliasMatch ^/.*webmin/(.*)$ /Volumes/dune/www-servers/spam-pot.php
AliasMatch ^/.*database-admin/(.*)$ /Volumes/dune/www-servers/spam-pot.php
AliasMatch ^/.*databaseadmin/(.*)$ /Volumes/dune/www-servers/spam-pot.php
AliasMatch ^/.*databasemanager/(.*)$ /Volumes/dune/www-servers/spam-pot.php
AliasMatch ^/.*databaseweb/(.*)$ /Volumes/dune/www-servers/spam-pot.php
AliasMatch ^/.*webadmin/(.*)$ /Volumes/dune/www-servers/spam-pot.php
AliasMatch ^/.*phpmyadmin/(.*)$ /Volumes/dune/www-servers/spam-pot.php
AliasMatch ^/.*phpMyAdmin/(.*)$ /Volumes/dune/www-servers/spam-pot.php
AliasMatch ^/.*awstats.pl /Volumes/dune/www-servers/spam-pot.php
AliasMatch ^/.*aw-stats.pl /Volumes/dune/www-servers/spam-pot.php

Am 08.12.2011 12:04, schrieb Mario Brandt:
 Hi,
 meine Idee wäre es unter dem AliasMatch entweder ein LocationMatch zu
 haben und den dem Block dann den Heaser zu setzen. Vielleicht geht
 auch ein DirectoryMatch.
 
 Ähm mal ins Blaue ohne es getestet zu haben
 
 AliasMatch ^/.*joomla/(.*)$ /Volumes/dune/www-servers/spam-pot.htm
 LocationMatch  ^/.*joomla/(.*)$ 
 
 /LocationMatch
 
 Es geht vielleicht in dem Directory /Volumes/dune/www-servers/ den
 Header zusetzen.
 
 Schreib auf jeden Fall, was funktioniert hat ;)
 
 Gruß
 Mario
 
 2011/12/8 Reindl Harald h.rei...@thelounge.net:
 Hi

 Ja schon
 Aber wie verheirate ich das mit AliasMatch?

 Am 08.12.2011 10:48, schrieb Mario Brandt:
 Hallo Reindl,
 guck mal http://httpd.apache.org/docs/current/mod/mod_headers.html an.
 Damit ist es recht einfach einen 404 header zu setzen.
 Oder per mod_rewrite mit [F]
 http://httpd.apache.org/docs/2.2/howto/access.html#rewrite

 2011/12/7 Reindl Harald h.rei...@thelounge.net:
 Hi

 Gibt es irgendeine Möglichkeit mit AliasMatch wie unten einen 
 404-Statuscode zu
 senden ohne hier PHP ins Spiel zu bringen?

 Sinn dieser und ähnlicher Übungen ist es auf Servern wo ich Joomla und 
 Konsorten
 auf keinen Fall sehen will falls sie doch jemand wo installiert zu 
 überlagern
 und vor allem auch das Error-Log von tausenden 404ern durch Bots 
 freizubekommen

 Bei externen Security-Audits wäre es aber angehnem die Standard-URLs 
 deswegen nicht
 immer als existent gelistet zu bekommen

 AliasMatch ^/.*joomla/(.*)$ /Volumes/dune/www-servers/spam-pot.htm
 http://www.thelounge.net/joomla/



signature.asc
Description: OpenPGP digital signature


Re: [users@httpd] SCGI and Order

2011-12-08 Thread Pete Houston
Hello Matthew,

It looks as though you are applying restrictions based on the filesystem
and then are including a directive which dissociates the URL from that
filesystem, thus bypassing your restrictions.

Have you read this part of the documentation?
http://httpd.apache.org/docs/2.2/sections.html#file-and-web

Hopefully that will explain things,

Pete

On Thu, Dec 08, 2011 at 01:00:39AM -0500, Matthew Berry wrote:
 What I am seeing is a situation where access to a directory has been
 restricted using the following abbreviated config file, and everything
 works just fine. Then, after adding this line: SCGIMount /log
 127.0.0.1:5000, requests to /log are served even though they had
 previously been blocked. I am assuming that this is some sort of bug
 or oversight, or that I am completely misunderstanding how security
 works in apache. I've previously posted this question over at
 LinuxQuestions and have not yet received any offers after about 3
 weeks. The thread can be found here:
 http://www.linuxquestions.org/questions/linux-security-4/scgimount-on-apache2-bypasses-order-allow-deny-914427/
 
 VirtualHost *:81
 ServerAdmin x...@xxx.xxx
 ServerName  www.x.xxx:81
 DocumentRoot /var/www
 LogLevel warn
 ErrorLog /var/log/apache2/altport-error.log
 CustomLog /var/log/apache2/altport-access.log combined
 Directory /
 Options FollowSymLinks
 AllowOverride None
 Order allow,deny
 Deny from all
 /Directory
 Directory /var/www
 Order allow,deny
 Allow from all
 /Directory
 Directory /var/www/log
 Order allow,deny
 Deny from all
 /Directory
 /VirtualHost

-- 
Openstrike - improving business through open source
http://www.openstrike.co.uk/ or call 01722 770036 or 07092 020107


signature.asc
Description: Digital signature


Re: [users@httpd] Variables goes as REDIRECT_REDIRECT_variable_name

2011-12-08 Thread Petr Hracek
Hello *,

Firstly index.html is called from browser then because of Handler .var
is initiatied then in index.var file is found and relevant language
negotiation is called.

After that in our module is checked whether some environtment
variables are set properly and then afterwards over proprietary module
is called redirection to the page e.g. change-password.shtml

best regards
Petr

Dne 3. prosince 2011 13:16 Igor Galić i.ga...@brainsware.org napsal(a):


 - Original Message -
 Dear user,

 sorry for bother you with that question but I have a problem.
 I have setup varible used for authentication names SESSION.
 After some redirecting over proxies variable goes as
 REDIRECT_REDIRECT_SESSION
 But my program looks for variable SESSION.

 Do you know how to do that setting variable SESSION instead of
 REDIRECT_REDIRECT_SESSION?

 What produces the redirects?

 Thank you in advance

 --
 Best Regards / S pozdravem
 Petr Hracek

 -
 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



 --
 Igor Galić

 Tel: +43 (0) 664 886 22 883
 Mail: i.ga...@brainsware.org
 URL: http://brainsware.org/
 GPG: 6880 4155 74BD FD7C B515  2EA5 4B1D 9E08 A097 C9AE


 -
 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




-- 
Best Regards / S pozdravem
Petr Hracek

-
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



[users@httpd] HTTPD-Semaphore leak

2011-12-08 Thread Durairaj, Srinivasan (NSN - IN/Hyderabad)
Hi,

We have seen an instance where in one of the instance, httpd was failing
to start. On analyzing, we figured that there were huge number of httpd
semaphores which were created during the httpd startup but never
cleanup.

 

I am not very sure in what instance the httpd semaphores leak.

 

Have anyone encountered this issue earlier and if there are any
solutions to it?

 

What are the scenarios in which the issue could happen?

 

Regards

Srinivasan



[users@httpd] Re: IfModule *rewrite*

2011-12-08 Thread Helmut Schneider
Mark Montague wrote:

 On December 7, 2011 16:26 , Helmut Schneider jumpe...@gmx.de
 wrote:
  I put the following lines into my apache.conf (outside, before a
  VHOST definition):
  
  IfModule mod_rewrite.c
  RewriteEngine on
  RewriteLog /var/www/logs/rewrite.log
  RewriteLogLevel 2
  /IfModule
  
  (I also tried mod_rewrite and rewrite_module)
  
  Unfortunatly it seems it does not work.
  
  But if I define the same lines within a VHOST it does work.
 
 From
 https://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewriteengine
 
 rewrite configurations are not inherited by virtual hosts. This
 means that you need to have a |RewriteEngine on| directive for each
 virtual host in which you wish to use rewrite rules.

Do I also need to configure

RewriteLog

within the VHOST?! Is that also a Rewrite configuration?! Because
only setting

RewriteEngine On

does not write a logfile...


-
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



[users@httpd] ReverseProxy is not working

2011-12-08 Thread KESTAR


I installed Apache Httpd server httpd-2.2.19-win32-x86-openssl-0.9.8r on
Windows 2008 Server R2.

I have a java applications deployed in weblogic in another machine. I am
trying to set up reverse proxy to that application.

This is how I set up ReverseProxy in httpd.conf

###

ProxyRequests Off
Proxy *
Order deny,allow
Allow from all
/Proxy

NameVirtualHost WIN-9MN2TINIKMO:8090

VirtualHost WIN-9MN2TINIKMO:8090
ServerName WIN-9MN2TINIKMO
ProxyPreserveHost Off
Location /oaam_server/
Order deny,allow
Allow from all
ProxyPass http://172.16.30.189:14300/oaam_server/
ProxyPassReverse http://172.16.30.189:14300/oaam_server/
/Location
Location /ShoppingCart/
Order deny,allow
Allow from all
ProxyPass http://172.16.30.189:7001/ShoppingCart
ProxyPassReverse http://172.16.30.189:7001/ShoppingCart
/Location

/VirtualHost

##

But when I test configuration with URL as
http://WIN-9MN2TINIKMO:8090/ShoppingCart, the request is not proxied to the
application. 

In error logs it says...

[Thu Dec 08 16:14:14 2011] [error] [client 172.16.30.105] File does not
exist: C:/Apache2.2/htdocs/ShoppingCart
[Thu Dec 08 16:21:06 2011] [error] [client 172.16.30.189] File does not
exist: C:/Apache2.2/htdocs/favicon.ico
[Thu Dec 08 16:21:09 2011] [error] [client 172.16.30.189] File does not
exist: C:/Apache2.2/htdocs/favicon.ico
[Thu Dec 08 16:21:13 2011] [error] [client 172.16.30.189] File does not
exist: C:/Apache2.2/htdocs/ShoppingCart
[Thu Dec 08 16:25:33 2011] [error] [client 172.16.30.105] File does not
exist: C:/Apache2.2/htdocs/oaam_server

Eventhough I configured proxy as shown above, apache server is looking for
resources in htdocs only. I also uncommented mod_proxy and mod-proxy_http
modules in httpd.conf file

Am I missing any other settings??

Pls help http://old.nabble.com/file/p32934121/httpd.conf httpd.conf 
-- 
View this message in context: 
http://old.nabble.com/ReverseProxy-is-not-working-tp32934121p32934121.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: [users@httpd] ReverseProxy is not working

2011-12-08 Thread Tom Evans
On Thu, Dec 8, 2011 at 12:11 PM, KESTAR perathkart...@gmail.com wrote:


 I installed Apache Httpd server httpd-2.2.19-win32-x86-openssl-0.9.8r on
 Windows 2008 Server R2.

 I have a java applications deployed in weblogic in another machine. I am
 trying to set up reverse proxy to that application.

 This is how I set up ReverseProxy in httpd.conf

 ###

 ProxyRequests Off
 Proxy *
 Order deny,allow
 Allow from all
 /Proxy

 NameVirtualHost WIN-9MN2TINIKMO:8090

 VirtualHost WIN-9MN2TINIKMO:8090
 ServerName WIN-9MN2TINIKMO
 ProxyPreserveHost Off
        Location /oaam_server/
        Order deny,allow
        Allow from all
        ProxyPass http://172.16.30.189:14300/oaam_server/
        ProxyPassReverse http://172.16.30.189:14300/oaam_server/
        /Location
        Location /ShoppingCart/
        Order deny,allow
        Allow from all
        ProxyPass http://172.16.30.189:7001/ShoppingCart
        ProxyPassReverse http://172.16.30.189:7001/ShoppingCart
        /Location

 /VirtualHost

 ##

 But when I test configuration with URL as
 http://WIN-9MN2TINIKMO:8090/ShoppingCart, the request is not proxied to the
 application.

 In error logs it says...

 [Thu Dec 08 16:14:14 2011] [error] [client 172.16.30.105] File does not
 exist: C:/Apache2.2/htdocs/ShoppingCart
 [Thu Dec 08 16:21:06 2011] [error] [client 172.16.30.189] File does not
 exist: C:/Apache2.2/htdocs/favicon.ico
 [Thu Dec 08 16:21:09 2011] [error] [client 172.16.30.189] File does not
 exist: C:/Apache2.2/htdocs/favicon.ico
 [Thu Dec 08 16:21:13 2011] [error] [client 172.16.30.189] File does not
 exist: C:/Apache2.2/htdocs/ShoppingCart
 [Thu Dec 08 16:25:33 2011] [error] [client 172.16.30.105] File does not
 exist: C:/Apache2.2/htdocs/oaam_server

 Eventhough I configured proxy as shown above, apache server is looking for
 resources in htdocs only. I also uncommented mod_proxy and mod-proxy_http
 modules in httpd.conf file

 Am I missing any other settings??

 Pls help http://old.nabble.com/file/p32934121/httpd.conf httpd.conf

You aren't hitting your vhost, and it is being served out of the
default configuration.

Presumably WIN-9MN2TINIKMO is your local machine, and you are
accessing it from that same machine? In which case, WIN-9MN2TINIKMO
resolves to a specific IP, but when you connect to the site from the
same box, it goes over the loopback connection, and so Apache sees the
request as going to 127.0.0.1:8090, which does not match your vhost
specification.

Change these lines:

NameVirtualHost *:8090
VirtualHost *:8090

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



Re: [users@httpd] SSL cipher suite modification

2011-12-08 Thread Matus UHLAR - fantomas

On 08.12.11 00:38, aparna Puram wrote:

I understand from your mail that the following 2 cipher suites will work
with the existing and the new clinet configurations.

Kindly correct me if I m wrong.

1--!ADH:!EXPORT56:DES-CBC-SHA:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
2--!ADH:!MD5:DES-CBC-SHA:RC4+RSA:+HIGH:+MEDIUM

However the first cipher suite contains MD5, which is not preferable due to
security reasons.


you disallow md5 due to security reasons, but allow null,export and low 
ciphers? :-)


I use DEFAULT:!EXP:!LOW and I hope that's enough. you can excloude MD5 
from those but I'd like to see your security reasons, due to 
paragraph above.

--
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.
Linux is like a teepee: no Windows, no Gates and an apache inside...

-
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: [users@httpd] Re: IfModule *rewrite*

2011-12-08 Thread Mark Montague

On December 8, 2011 5:56 , Helmut Schneider jumpe...@gmx.de wrote:
Do I also need to configure RewriteLog within the VHOST?! Is that also 
a Rewrite configuration?! Because only setting RewriteEngine On does 
not write a logfile...


Did you read the documentation?

https://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewriteengine

Context: server config, virtual host
The directive should occur only once per server config.
If the name does not begin with a slash ('|/|') then it is assumed to 
be relative to the /Server Root/.


If you are using RewriteLog in the server context but are not seeing a 
log file:


- What is the value you have for RewriteLogLevel?  Note that it defaults 
to 0, but that a value of 0 will disable all rewrite logging regardless 
of whether the RewriteLog direcitve is set.  To get rewrite logging, you 
not only have to set the RewriteLog directive, you also have to set 
RewriteLogLevel to something other than 0.
- Are you looking in the right place?  (Does the log file name begin 
with a slash?)
- Does Apache HTTP Server have permission to open and write the log file 
in the place you have specified?
- Are there error messages about creating/opening the log file in your 
web server error log file?


--
  Mark Montague
  m...@catseye.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: [users@httpd] Re: IfModule *rewrite*

2011-12-08 Thread Frank Gingras

On 08/12/2011 9:35 AM, Mark Montague wrote:

On December 8, 2011 5:56 , Helmut Schneider jumpe...@gmx.de wrote:
Do I also need to configure RewriteLog within the VHOST?! Is that also a Rewrite 
configuration?! Because only setting RewriteEngine On does not write a logfile...


Did you read the documentation?

https://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewriteengine

Context: server config, virtual host
The directive should occur only once per server config.
If the name does not begin with a slash ('|/|') then it is assumed to be relative to the /Server 
Root/.


If you are using RewriteLog in the server context but are not seeing a log file:

- What is the value you have for RewriteLogLevel?  Note that it defaults to 0, but that a value of 
0 will disable all rewrite logging regardless of whether the RewriteLog direcitve is set.  To get 
rewrite logging, you not only have to set the RewriteLog directive, you also have to set 
RewriteLogLevel to something other than 0.

- Are you looking in the right place?  (Does the log file name begin with a 
slash?)
- Does Apache HTTP Server have permission to open and write the log file in the place you have 
specified?

- Are there error messages about creating/opening the log file in your web 
server error log file?

--
  Mark Montague
  m...@catseye.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



Also, when using vhosts, you'll need to set RewriteOptions inherit and RewriteEngine on in each 
vhost you want to apply your rules to.


Frank

-
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: [users@httpd] HTTPD-Semaphore leak

2011-12-08 Thread Nick Kew
On Thu, 8 Dec 2011 18:19:51 +0800
Durairaj, Srinivasan (NSN - IN/Hyderabad) srinivasan.durai...@nsn.com wrote:

 Hi,
 
 We have seen an instance where in one of the instance, httpd was failing
 to start. On analyzing, we figured that there were huge number of httpd
 semaphores which were created during the httpd startup but never
 cleanup.

The most likely cause is that it's exiting uncleanly.  Do you have
something that might kill it, for instance?

A buggy module or in-process script might also cause it,
though that should be reproducible across other users.

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



[users@httpd] httpd - Get 200 but no data.

2011-12-08 Thread R J
Hi,

I am new to httpd. I am using httpd and mod_jk for load balancing. I am
running it under sticky bit configuration. I have a page that renders image
and data. The http response to the image request returns HTTP code 200,
however the data is 0 bytes. Instead when I directly connect to any of the
servers, the image renders correctly. What am I doing wrong in the
configuration?

The application that I am trying to load balance is a BIRT reporting engine
(v 2.6).

Appreciate any help or pointers.

Thank you.
RJ


Re: [users@httpd] httpd - Get 200 but no data.

2011-12-08 Thread Wade Evans
RJ,

 What am I doing wrong in the configuration?
Can you share with us a bit of your configuration?

Thanks

 - Wade


On Thu, Dec 8, 2011 at 11:16 AM, R J rjoshi.subscripti...@gmail.com wrote:

 Hi,

 I am new to httpd. I am using httpd and mod_jk for load balancing. I am
 running it under sticky bit configuration. I have a page that renders image
 and data. The http response to the image request returns HTTP code 200,
 however the data is 0 bytes. Instead when I directly connect to any of the
 servers, the image renders correctly. What am I doing wrong in the
 configuration?

 The application that I am trying to load balance is a BIRT reporting
 engine (v 2.6).

 Appreciate any help or pointers.

 Thank you.
 RJ



Re: [users@httpd] httpd - Get 200 but no data.

2011-12-08 Thread R J
Hi Wade,

The httpd server is v2.2 and JBoss is 4.5. I am enclosing a copy of the
workers.properties. There are 2 nodes in the cluster. I am enclosing copies
of httpd.conf and workers.properties.

Some additional information that I just debugged into  - looks like the
rendering is being sent to node 2 (instead of sending to node1). The
following is the image url -
http://10.38.188.9:8080/ReportBirtViewerWeb/preview?__sessionId=20111208_111922_807__imageid=custom4fcb6c1341ebef5b74.png,
and every time I access this url from browser, the rendering flip flops i.e
it renders on first run, does not on second, then again renders on third,
which leads me to believe that this could be switching between 2 different
servers. Again this is just my guess, might be wrong.

RJ

On Thu, Dec 8, 2011 at 11:49 AM, Wade Evans wade.p.ev...@gmail.com wrote:

 RJ,

  What am I doing wrong in the configuration?
 Can you share with us a bit of your configuration?

 Thanks

  - Wade


 On Thu, Dec 8, 2011 at 11:16 AM, R J rjoshi.subscripti...@gmail.comwrote:

 Hi,

 I am new to httpd. I am using httpd and mod_jk for load balancing. I am
 running it under sticky bit configuration. I have a page that renders image
 and data. The http response to the image request returns HTTP code 200,
 however the data is 0 bytes. Instead when I directly connect to any of the
 servers, the image renders correctly. What am I doing wrong in the
 configuration?

 The application that I am trying to load balance is a BIRT reporting
 engine (v 2.6).

 Appreciate any help or pointers.

 Thank you.
 RJ





httpd.conf
Description: Binary data


workers.properties
Description: Binary data

-
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: [users@httpd] ReverseProxy is not working

2011-12-08 Thread Alex Samad - Yieldbroker
Hi

Also why not use the weblogic plugin instead of passing http through ?

Alex

-Original Message-
From: KESTAR [mailto:perathkart...@gmail.com] 
Sent: Thursday, 8 December 2011 11:12 PM
To: users@httpd.apache.org
Subject: [users@httpd] ReverseProxy is not working



I installed Apache Httpd server httpd-2.2.19-win32-x86-openssl-0.9.8r on 
Windows 2008 Server R2.

I have a java applications deployed in weblogic in another machine. I am trying 
to set up reverse proxy to that application.

This is how I set up ReverseProxy in httpd.conf

[snip]



-
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: [users@httpd] httpd - Get 200 but no data.

2011-12-08 Thread Rapp, James
Hi RJ,

Are you setting a JSESSIONID cookie as part of the request?  I had this problem 
in the past with an application that did not support cookie based session 
affinity.  In this case I ended up with several requests missing the JSESSIONID 
and they were being routed in round-robin fashion.

You can check the directives session_cookie and session_path in the workers 
reference:

http://tomcat.apache.org/connectors-doc/reference/workers.html

Regards,
Jim

James Rapp
Senior Ecosystem Quality Manager, Global Ecosystem and Delivery Partners,   AGS 
Primary Support


From: R J [mailto:rjoshi.subscripti...@gmail.com] 
Sent: Thursday, December 08, 2011 1:15 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] httpd - Get 200 but no data.

Hi Wade,

The httpd server is v2.2 and JBoss is 4.5. I am enclosing a copy of the 
workers.properties. There are 2 nodes in the cluster. I am enclosing copies of 
httpd.conf and workers.properties. 

Some additional information that I just debugged into  - looks like the 
rendering is being sent to node 2 (instead of sending to node1). The following 
is the image url - 
http://10.38.188.9:8080/ReportBirtViewerWeb/preview?__sessionId=20111208_111922_807__imageid=custom4fcb6c1341ebef5b74.png,
 and every time I access this url from browser, the rendering flip flops i.e it 
renders on first run, does not on second, then again renders on third, which 
leads me to believe that this could be switching between 2 different servers. 
Again this is just my guess, might be wrong.

RJ
On Thu, Dec 8, 2011 at 11:49 AM, Wade Evans wade.p.ev...@gmail.com wrote:
RJ,

 What am I doing wrong in the configuration?
Can you share with us a bit of your configuration?

Thanks

 - Wade

On Thu, Dec 8, 2011 at 11:16 AM, R J rjoshi.subscripti...@gmail.com wrote:
Hi,

I am new to httpd. I am using httpd and mod_jk for load balancing. I am running 
it under sticky bit configuration. I have a page that renders image and data. 
The http response to the image request returns HTTP code 200, however the data 
is 0 bytes. Instead when I directly connect to any of the servers, the image 
renders correctly. What am I doing wrong in the configuration?

The application that I am trying to load balance is a BIRT reporting engine (v 
2.6).

Appreciate any help or pointers.

Thank you.
RJ



-
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



[users@httpd] Re: IfModule *rewrite*

2011-12-08 Thread Helmut Schneider
Mark Montague wrote:

 On December 8, 2011 5:56 , Helmut Schneider jumpe...@gmx.de wrote:
  Do I also need to configure RewriteLog within the VHOST?! Is that
  also  a Rewrite configuration?! Because only setting
  RewriteEngine On does  not write a logfile...
 
 Did you read the documentation?

Sure, but I might miss the forest through the trees.

 https://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewriteengine

Read it again, also
https://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewritelog,
still unsure.

 Context: server config, virtual host
 The directive should occur only once per server config.
 If the name does not begin with a slash ('|/|') then it is assumed
 to be relative to the /Server Root/.
 
 If you are using RewriteLog in the server context but are not seeing
 a log file:

If I specify RewriteLog within the server context it does not write the
logfile. If I specify RewriteLog within the virtual host context, it
does. RewriteLog is the only option I change, I do not touch any other
options.

 - What is the value you have for RewriteLogLevel?

2, specified in both, the server and the vhost context.

 Are you looking in the right place?

I hope so. The vhost context is just ~20 lines below the server context.

 (Does the log file name begin with a slash?)

Yes.

 - Does Apache HTTP Server have permission to open and
 write the log file in the place you have specified?

Sure. As mentioned before, when specifiying the (no doubt identical)
directive within the vhost it works like a charm.

 - Are there error messages about creating/opening the log file
 in your web server error log file?

No. But see above.

Server context:
RewriteEngine on
RewriteLog /var/www/logs/rewrite.log
RewriteLogLevel 2

Vhost context:
RewriteEngine on
#RewriteLog /var/www/logs/rewrite.log
RewriteLogLevel 2
$some_conditions_and_rules

= Rewrite works, logging does not.

Server context:
RewriteEngine on
(#)RewriteLog /var/www/logs/rewrite.log
RewriteLogLevel 2

Vhost context:
RewriteEngine on
RewriteLog /var/www/logs/rewrite.log
RewriteLogLevel 2
$some_conditions_and_rules

= Rewrite works, so does logging.
Also removed the IfModule mod_rewrite.c tags, no difference.


-
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: [users@httpd] Re: IfModule *rewrite*

2011-12-08 Thread Eric Covener
The logging in mod_rewrite is inherited from the base server config to
a virtualhost (which your test requests are mapped to) the same way as
rules and conditions, with RewriteOptions +Inherit specified only.

-
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



[users@httpd] ab not working, saying bind: address family not supported by protocol family 47

2011-12-08 Thread S Ahmed
ab -n 100 -c 1 http://localhost:8080/

his is ApacheBench, Version 2.3 $Revision: 1178079 $
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking localhost (be patient)...bind: Address family not supported by
protocol family (47)


Background:  I upgraded my Mac to Lion, and apache bench stopped working
giving me the errors:

Upgrage apr_socket_recv: Connection reset by peer (54)

So I read online that the latest beta version fixed this issue, so I
downloaded it (
http://ftp.download-by.net/apache//httpd/httpd-2.3.15-beta.tar.bz2) and
built it based on this:
http://www.ralphhenry.net/blog/2011/08/23/apachebench-fails-after-mac-osx-lion-upgrage-apr_socket_recv-connection-reset-by-peer-54/

When I copied it over to /usr/sbin/ab, it now gives me the error above
(address family not supported).

I really want to get this working, any guesses what it could be?


[users@httpd] Re: confirm unsubscribe from users@httpd.apache.org

2011-12-08 Thread Ian Zimmerman
yes

-
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