[users@httpd] loadbalancing apache/tomcat

2011-03-25 Thread Hajo Locke

Hello List,

following situation: i have 1 apache which is connected by mod_jk to 
multiple tomcat servers.
Now it seems to get necessary that i also need to balance the 
apache-applications.

What is best practice in my case?
I think about nginx in first line which is connected to apache-servers and 
tomcatservers as backends.
in nginx-conf i should be able to devide requests to adequate servers, 
mod_jk is not needed any more because nginx is connected directly to 
tomcats.

is this a well setup or should be putted into practice in an other way?

Thanks,
Hajo 



-
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] http 1.1 authorization header is sent to every resource under a given domain

2011-03-25 Thread Chris Keeley
Hi All,

I have a problem and I'm hoping someone can point me in the right direction.

I am encountering a situation whereby an HTTP 1.1 authorization header is sent 
to every resource under a given domain even though the initial 401 
Authentication response by which the authorization information is requested 
contains a realm associated with a specific resource on the server.

I understand from the HTTP 1.1 spec that a browser can pre-emptively send the 
Authorization header to a resource for which it already has authenticated.

'A client MAY preemptively send the corresponding Authorization header with 
requests for resources in that space without receipt of another challenge from 
the server.'  http://www.ietf.org/rfc/rfc2617.txt

However, it would appear the browser is pre-empting every resource under the 
domain with the Authorization header.

I have experienced this behaviour for the domain and resources in question 
whilst using Opera 11.1, IE[7,8], Firefox 3.x which leaves me feeling confident 
(although not 100%) this is not a browser bug.

It is worth mentioning that the server presents the resource associated with 
the realm in question as virtual managed by the 'Alias' directive under Apache 
2.0 thus for protected resource '/x' the apache configuration is:

Alias /x /absolute/linux/filesystem/path

Directory /absolute/linux/filesystem/path
...
AuthName y
AuthType Basic
...
/Directory

I have one completely unsupported theory where the issue is related to the fact 
that '/x' is presented by apache as a virtual resource. I wonder if somehow 
this ends up mapping the realm to '/' instead of '/x'. I draw this conclusion 
from the fact that the browser is pre-empting the Authorization header to every 
resource.

I would be grateful if someone could point me in the right direction as it's 
likely I have something incorrectly configured in my setup.

In the interests of brevity I have omitted certain information (e.g. module 
versions et al) if required please ask and I will be more than happy to provide.

Thanks for reading.

Chris


Re: [users@httpd] http 1.1 authorization header is sent to every resource under a given domain

2011-03-25 Thread Eric Covener

 I have one completely unsupported theory where the issue is related to the
 fact that '/x' is presented by apache as a virtual resource. I wonder if
 somehow this ends up mapping the realm to '/' instead of '/x'. I draw this
 conclusion from the fact that the browser is pre-empting the Authorization
 header to every resource.


close, if you can refactor this to require auth for /x/ with a
trailing slash only then the browser would pre-emptively send to
things.

The problem with auth  on /x is that your browser assumes everything
under the most recent context root is protected -- which is /

-
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] http 1.1 authorization header is sent to every resource under a given domain

2011-03-25 Thread Chris Keeley
Eric, 

That makes perfect sense.

You're a Genius; thank you.

--
Regards
Christopher Keeley

Software Engineer
Communications and Test
JDSU
+441752765327
www.jdsu.com

NOTICE: JDSU UK Ltd. is registered in England  Wales with company number 
00887400.  Its registered office is Spinnaker House, Lime Tree Way, Hampshire 
Int. Business Park, Chineham, Basingstoke RG24 8GG.  Information contained in 
this email is intended for the use of the addressee only, is confidential and 
may be legally privileged. Any further dissemination, distribution, copying or 
use of this communication without prior permission of the sender is strictly 
prohibited.


-Original Message-
From: Eric Covener [mailto:cove...@gmail.com] 
Sent: 25 March 2011 13:14
To: users@httpd.apache.org
Subject: Re: [users@httpd] http 1.1 authorization header is sent to every 
resource under a given domain


 I have one completely unsupported theory where the issue is related to the
 fact that '/x' is presented by apache as a virtual resource. I wonder if
 somehow this ends up mapping the realm to '/' instead of '/x'. I draw this
 conclusion from the fact that the browser is pre-empting the Authorization
 header to every resource.


close, if you can refactor this to require auth for /x/ with a
trailing slash only then the browser would pre-emptively send to
things.

The problem with auth  on /x is that your browser assumes everything
under the most recent context root is protected -- which is /

-
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] Need information about using Apache....

2011-03-25 Thread Arnab Ganguly
Can I use Apache instead of Drools? Like as  a rules execution engine that
is able to accept the request, evaluate a set of ops defined rules and
execute various responses.

Mod_proxy and mod_proxybalancer does the load balancing.Is there anything
can be done where each instance can hve own functionality like   one
instance may
be tracking the IP, another instance may be tracking by GUID or Screenname,
and yet another may be tracking by some
Signature ? Should I follow the worker model where each process launches
threads and threads have the logic ?

Many thanks in advance.
-A

On Thu, Mar 24, 2011 at 11:38 PM, Simone Caruso i...@simonecaruso.comwrote:



 We would like to use Apache as a routing layer that accepts both
 structured documents (XML docs) also some other
 predefined data blocks in addition to key/value paris via http and then
 routes those transactions based on a key
 available in the request such that the required keys and sub keys are all
 routed to the same rules instance - this will
 require the original request to be broadcast to multiple instances of the
 rules engine ( for example, one instance may
 be tracking the IP, another instance may be tracking by GUID or
 Screenname, and yet another may be tracking by some
 Signature.)



 U can modify mod_proxy to act like a router

 --
 Simone Caruso
 IT Consultant
 +39 349 65 90 805
 p.iva: 03045250838

 -
 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: Apachie to collect URL variables

2011-03-25 Thread darknetone

While I realize that this is a CGI exercise I really was interestd in what
was thought about Apache this way. I want to use URLs with embedded
variables to an Apache server that will process(CGI) the data in the
variables, basically I am stuffing them into mysql. I do not want to send
back a page, I simply want the user to click a URL in a HTML email and poof
data sent to the web server the user never sees a web page. My point here
was to run it by everyone to see what they thought make sure I am not
missing anything, it has been a while since I played with Apache. - Thanks!



Igor Cicimov wrote:
 
 Nothing wrong with the idea but can't see what does it have to do with
 Apache? You need CGI script like PHP,PERL,Python etc that will store the
 URL
 parameters in the database so this is programing task not Apache
 configuration task.
 
 
 On Thu, Mar 24, 2011 at 2:07 AM, darknetone darknet...@gmail.com wrote:
 


 I just realized that the board executed the HTML code so all you see is a
 yes so I thougght I'd post a trimmed example ;

 
 http://www.sitename.com/?userid=893userresponse=yesmiscdata=347860475704
 
 --
 View this message in context:
 http://old.nabble.com/Apachie-to-collect-URL-variables-tp31220567p31220676.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://old.nabble.com/Apachie-to-collect-URL-variables-tp31220567p31238713.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] loadbalancing apache/tomcat

2011-03-25 Thread Simone Caruso

On 25/03/2011 09:36, Hajo Locke wrote:

Hello List,

following situation: i have 1 apache which is connected by mod_jk to multiple 
tomcat servers.
Now it seems to get necessary that i also need to balance the 
apache-applications.
What is best practice in my case?

If u dont like nginx, with apache try mod_proxy_balancer and mod_proxy_ajp;

Nginx should use less RAM.

There is no best setup, choose the one that fits better with for your 
environment.

--
Simone Caruso
IT Consultant

-
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] Apache/WebDev virtual hosting not working correctly

2011-03-25 Thread Al Zick

Hi,

I have been using Apache for a long time, but it isn't clear to me  
how to configure virtual hosting with WebDev. I wanted to make it  
clear that I am dealing with Webdev from PC Soft and not Webdav. The  
major problem I have with WebDev is there is no documentation that I  
can find on how to setup virtual hosting. I have contacted PC Soft  
and they said that it is not included in their documentation. So, I  
emailed them and asked and they said they couldn't help me. In the  
mean time I have been googling, but I found nothing on virtual  
hosting for Apache/WebDev. I then searched the archive of the Apache  
mailing, thinking someone would have had to ask something about it,  
but I can't find anything relevant to this in the archive. After all  
of that I could not find anything on WebDev virtual hosting.


This is the first time that I have used Apache on Windows 2008. I did  
the install of Apache and it worked right out of the box. I  
uncommented only 2 lines in the default httpd.conf file so that it  
would do virtual hosting and would use the vhost-httpd.conf file. I  
installed WebDev and uploaded 2 sites through the WebDev application  
and this is what it added to my Apache config:


ScriptAlias /WD110AWP/ C:/WebDev15/AWP/
Directory C:/WebDev15/AWP/
Order allow,deny
Allow from all
/Directory
AddType application/WebDev15-awp .awp
Action application/WebDev15-awp /WD150AWP/WD150Awp.exe virtual
AddType application/WebDev15-awws .awws
Action application/WebDev15-awws /WD150AWP/WD150Awp.exe virtual
ScriptAlias /WD120AWP/ C:/WebDev15/AWP/
ScriptAlias /WD140AWP/ C:/WebDev15/AWP/
ScriptAlias /WD150AWP/ C:/WebDev15/AWP/
Alias /WDADMINWEB150_WEB/ C:/WebDev15/WDADMINWEB/WDADMINWEB150_WEB/
Directory C:/WebDev15/WDADMINWEB/WDADMINWEB150_WEB/
Order allow,deny
Allow from all
/Directory
Files WDADMINWEB150
ForceType application/WebDev15-awp
/Files
Files WDAdminWeb150
ForceType application/WebDev15-awp
/Files
Alias /WDADMINHF150_WEB/ C:/WebDev15/WDADMINHF/WDADMINHF150_WEB/
Directory C:/WebDev15/WDADMINHF/WDADMINHF150_WEB/
Order allow,deny
Allow from all
/Directory
Files WDADMINHF150
ForceType application/WebDev15-awp
/Files
Files WDAdminHF150
ForceType application/WebDev15-awp
/Files
Alias /SAASADMINWEB150_WEB/ C:/WebDev15/WDSAAS/SaaSAdminWeb150/ 
SAASADMINWEB150_WEB/

Directory C:/WebDev15/WDSAAS/SaaSAdminWeb150/SAASADMINWEB150_WEB/
Order allow,deny
Allow from all
/Directory
Files SAASADMINWEB150
ForceType application/WebDev15-awp
/Files
Files SaaSAdminWeb150
ForceType application/WebDev15-awp
/Files
Alias /SAASWEBSERVICE150_WEB/ C:/WebDev15/WDSAAS/SaaSWebservice150/ 
SAASWEBSERVICE150_WEB/

Directory C:/WebDev15/WDSAAS/SaaSWebservice150/SAASWEBSERVICE150_WEB/
Order allow,deny
Allow from all
/Directory
Files SAASWEBSERVICE150
ForceType application/WebDev15-awp
/Files
Alias /SITE1_WEB/ C:/Clients/WEBDEV15/Sites/SITE/SITE1_WEB/
Directory C:/Clients/WEBDEV15/Sites/SITE1/SITE1_WEB/
Order allow,deny
Allow from all
/Directory
Files SITE1
ForceType application/WebDev15-awp
Allow from all
/Files
Alias /SITE2_WEB/ C:/Clients/WEBDEV15/Sites/SITE2/SITE2_WEB/
Directory C:/Clients/WEBDEV15/Sites/SITE2/SITE2_WEB/
Order allow,deny
Allow from all
/Directory
Files SITE2
ForceType application/WebDev15-awp
Allow from all
/Files

I then edited the httpd-vhost.conf file to look like this:

NameVirtualHost *:80

VirtualHost *:80
DocumentRoot C:/Clients/WEBDEV15/Sites/SITE1/SITE1_WEB
ServerName www.site1.com
ServerAlias site1.com site1.com
Files SITE1
ForceType application/WebDev15-awp
Allow from all
/Files
/VirtualHost

VirtualHost *:80
DocumentRoot C:/Clients/WEBDEV15/Sites/SITE2/SITE2_WEB
ServerName www.site2.com
ServerAlias site2.com *.site2.com
Files SITE2
ForceType application/WebDev15-awp
Allow from all
/Files
/VirtualHost


With http://site1.com/ it doesn't seem to run through the WebDev  
Application server, but it works correctly with 192.168.1.100/site1/.  
This is much more complex than any virtual hosting I have ever done  
before. In fact, I am not sure if I even have the correct  
DocumentRoot. Honestly, if I could have only found an example of what  
this type of virtual hosting should look like, then I think I would  
have everything working on this server. Could someone please give me  
a hint as to what is wrong with my virtual host config or point me to  
some relevant documentation.


Sincerely,
Al

Re: [users@httpd] Re: Apachie to collect URL variables

2011-03-25 Thread Igor Cicimov
Again, nothing to do with apache but with the way you submit the request.
Submit with AJAX so you don't refresh the page. For this question you are
better of asking on some programing forum not apache mailing list.

On Sat, Mar 26, 2011 at 1:53 AM, darknetone darknet...@gmail.com wrote:


 While I realize that this is a CGI exercise I really was interestd in what
 was thought about Apache this way. I want to use URLs with embedded
 variables to an Apache server that will process(CGI) the data in the
 variables, basically I am stuffing them into mysql. I do not want to send
 back a page, I simply want the user to click a URL in a HTML email and poof
 data sent to the web server the user never sees a web page. My point here
 was to run it by everyone to see what they thought make sure I am not
 missing anything, it has been a while since I played with Apache. - Thanks!



 Igor Cicimov wrote:
 
  Nothing wrong with the idea but can't see what does it have to do with
  Apache? You need CGI script like PHP,PERL,Python etc that will store the
  URL
  parameters in the database so this is programing task not Apache
  configuration task.
 
 
  On Thu, Mar 24, 2011 at 2:07 AM, darknetone darknet...@gmail.com
 wrote:
 
 
 
  I just realized that the board executed the HTML code so all you see is
 a
  yes so I thougght I'd post a trimmed example ;
 
  
 
 http://www.sitename.com/?userid=893userresponse=yesmiscdata=347860475704
  
  --
  View this message in context:
 
 http://old.nabble.com/Apachie-to-collect-URL-variables-tp31220567p31220676.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://old.nabble.com/Apachie-to-collect-URL-variables-tp31220567p31238713.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