Re: [EMAIL PROTECTED] Apache reverse-proxy config.

2008-03-20 Thread Nils Jeppe



On Wed, 19 Mar 2008, Venkat Rangan wrote:


Is there anything I am missing?


Yes. Apache is not able to distinguish between your two virtualhosts, and 
thus using the first one. Use NameVirtualHost on the IP (or *) in the main 
part of your config and assign ServerName 's to each of the virtualhosts. 
I think this should solve your problem.



Best wishes,
Nils




-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Tomcat 6 / Apache 2.2 integration problem (no images, no css loaded)

2008-03-20 Thread Andreas Schneider
Hi,

I am trying to use my tomcat 6 over Apache 2.2. I have deployed a war called
sw-builder.war into the webapps folder of the tomcat instance. After
restarting tomcat and apache Tomcat extracts the war into the webapps folder
and into the temp folder (temp/0-sw-builder). The directory structure of
sw-builder is :


sw-builder
 login.jsp
 |_ images
 |_ css

Now I have the problem, that when I call
http://localhost/sw-builder/login.jsp no images will be displayed. Here the
error log entries.

[Wed Mar 19 14:57:10 2008] [notice] Child 4384: Child process is running
[Wed Mar 19 14:57:10 2008] [notice] Child 4384: Acquired the start mutex.
[Wed Mar 19 14:57:10 2008] [notice] Child 4384: Starting 64 worker threads.
[Wed Mar 19 14:57:10 2008] [notice] Child 4384: Starting thread to listen on
port 80.
[Wed Mar 19 14:57:27 2008] [error] [client 127.0.0.1] client denied by
server configuration:
E:/server/apache-tomcat-6.0/temp/0-sw-builder/images/blank.gif, referer:
http://localhost/sw-builder/login.jsp
[Wed Mar 19 14:57:27 2008] [error] [client 127.0.0.1] client denied by
server configuration: E:/server/apache-tomcat-6.0/temp/0-sw-builder/ci.css,
referer: http://localhost/sw-builder/login.jsp

I am using the auto configuration of tomcat which creates following
mod_jk.conf:



 localhost:/sw-builder 

    # Static files
    Alias /sw-builder "E:/server/apache-tomcat-6.0/temp/0-sw-builder"

    
    Options Indexes FollowSymLinks
    DirectoryIndex index.html index.htm index.jsp
    

    # Deny direct access to WEB-INF and META-INF
    #
    
    AllowOverride None
    deny from all
    

    
    AllowOverride None
    deny from all
    
    #
    # Use Directory too. On Windows, Location doesn't work unless
casematches
    #
    
    AllowOverride None
    deny from all
    

    
    AllowOverride None
    deny from all
    

    JkMount /sw-builder/*.jsp  ajp13
    JkMount /sw-builder/*.jspx  ajp13
    JkMount /sw-builder/student/actionServlet  ajp13
    JkMount /sw-builder/actionServlet  ajp13



The workers.properties looks like this:


worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13



In my http.conf I added the following lines:



...
Include E:\server\apache-tomcat-6.0\conf\auto\mod_jk.conf

  Order allow,deny
  Allow from all

...



Can anybody help me with that problem?

Thanks



-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Prefetch

2008-03-20 Thread Krist van Besien
Hello list,

Maybe not apache relate, but since there are so many web professionals
here one of you might have a hint for me.

The situation is the following:

- We have a web portal used by mobile phones. The "front end" is an
apache server. Typical request is:
Mobile phone requests page from apache server.
Apache server requests page from backend and forwards it to Mobile phone.
Mobile phone then requests all the images from the apache server who
in turn requests them from the backends.

What I now want to do, is have apache (or something else) look at the
content of the response that comes from the backend, and _prefetch_
all the images that are linked in it, so that when the request for the
images comes they are already cached.

Any ideas, modules or products that could help here?

Krist


-- 
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] xml

2008-03-20 Thread Melanie Pfefer
hello

I added this to the conf file:

AddType text/xml .xml


xml files are still treatead as html pages not xml

any idea what could be the cause?

thanks.


  ___ 
Rise to the challenge for Sport Relief with Yahoo! For Good  

http://uk.promotions.yahoo.com/forgood/

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] xml

2008-03-20 Thread Krist van Besien
On Thu, Mar 20, 2008 at 11:49 AM, Melanie Pfefer
<[EMAIL PROTECTED]> wrote:
> hello
>
>  I added this to the conf file:
>
>  AddType text/xml .xml
>
>
>  xml files are still treatead as html pages not xml
>
>  any idea what could be the cause?

You need to use
AddType application/xml .xml

When you use the the mime-type text/xml you are telling the browser
that you are sending human readable xml...

It is also possible that your directives have no effect. Use a browser
extension like firebug to investigate what your server sends to your
browser.

Krist


--
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Trouble with rotatelogs win32

2008-03-20 Thread Iuri Fiedoruk
Hello, I am working on a project that uses Apache 2.2 server with prefork
and I`m having some problems with rotatelogs on windows platform, any help
is welcome.

First our log system is configured to rotate when files reach 5MB as
follows?
CustomLog "|C:/apache/bin/rotatelogs.exe C:/apache/access_log 5M"  common
Most of the problems would be solved by using timely rotation, but
unfortunately this is not a option.

1. Each new log file is generated with a number after it like
error_log.2345345, so I don`t know what is the file name PHP should fopen.
Also, each time the apache is restarted a new file is generate, before it
reaches the 5MB limit.

2. Each process (prefork remeber?) creates it`s own error log with a name
like error_log.2345345_24, error_log.2345345_26.

Is there a way to make rotatelog bahave like in linux
(no numbering, file reaches 5MB, rename to .old, create a new log file).

-- 
Iuri Fiedoruk, Analista de Sistemas T&T.
Porto Alegre, RS, Brasil.


Re: [EMAIL PROTECTED] Prefetch

2008-03-20 Thread EJMcLeod
you could pre load the images as part of the web pages directory. All
though if there are a lot of images it could drag your speed down..
(Embedded image moved to file: pic12382.jpg)



   
 "Krist van
 Besien"   
 users@httpd.apache.org  
cc 
 03/20/2008 03:07  
 AMSubject 
   [EMAIL PROTECTED] Prefetch  
   
 Please respond to 
 [EMAIL PROTECTED] 
   e.org   
   
   




Hello list,

Maybe not apache relate, but since there are so many web professionals
here one of you might have a hint for me.

The situation is the following:

- We have a web portal used by mobile phones. The "front end" is an
apache server. Typical request is:
Mobile phone requests page from apache server.
Apache server requests page from backend and forwards it to Mobile phone.
Mobile phone then requests all the images from the apache server who
in turn requests them from the backends.

What I now want to do, is have apache (or something else) look at the
content of the response that comes from the backend, and _prefetch_
all the images that are linked in it, so that when the request for the
images comes they are already cached.

Any ideas, modules or products that could help here?

Krist


--
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


<>-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: [EMAIL PROTECTED] Prefetch

2008-03-20 Thread Krist van Besien
On Thu, Mar 20, 2008 at 3:37 PM,  <[EMAIL PROTECTED]> wrote:
> you could pre load the images as part of the web pages directory. All
>  though if there are a lot of images it could drag your speed down..

I don't understand. What do you mean by that?

Our problem is that everything is generated dynamically on the
backend, including images. One way to speed up things for us would be
for the backend to allready start generating the images before the
request for those images comes back from the mobile phone. We know the
request for these images will eventually come since we just sent out a
page containing links to these images.
Since I can't change how the backend functions I am thinking of
somehow prefetching the images. So basically I need something that
looks at the response to a request, identifies links to images in it,
and fetches these images, keeping them in cache so it can immediately
serve them when the request for them comes.
Right now I just want to know if there is some way I could do this
with apache, or if I need something else. If I need something else any
hits about a product that might do that would be welcome.

Krist




-- 
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] xml

2008-03-20 Thread Dragon

Melanie Pfefer wrote:

hello

I added this to the conf file:

AddType text/xml .xml


xml files are still treatead as html pages not xml

any idea what could be the cause?

thanks.


 End original message. -

Have you tried application/xml as your MIME type?

I've seen both used and I seem to recall that in IE (maybe other 
browsers) that this type works and text/xml does not.


Dragon

~~~
 Venimus, Saltavimus, Bibimus (et naribus canium capti sumus)
~~~


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Prefetch

2008-03-20 Thread EJMcLeod
That is what a pre load does on a web page. My suggestion is since the
dynamics fo a mobile page are built into the funtions of the regular web
page you should have the designer set a preload for the images at the
begining of the page. Which means the images are there just waiting for
somebody to click the link on the page. This is however outside of the
server function. The page that you use automatically does this instead of
the server. Which inturn makes the server faster. The less functions the
server has to preform to do its job makes it faster. So we rely on the page
programming to do the work. Or maybe I'm just not understanding the
problem. The webpage generats the image the server just supplies the
storage and location of the file.
(Embedded image moved to file: pic18716.jpg)



   
 "Krist van
 Besien"   
 users@httpd.apache.org  
cc 
 03/20/2008 08:05  
 AMSubject 
   Re: [EMAIL PROTECTED] Prefetch  
   
 Please respond to 
 [EMAIL PROTECTED] 
   e.org   
   
   




On Thu, Mar 20, 2008 at 3:37 PM,  <[EMAIL PROTECTED]> wrote:
> you could pre load the images as part of the web pages directory. All
>  though if there are a lot of images it could drag your speed down..

I don't understand. What do you mean by that?

Our problem is that everything is generated dynamically on the
backend, including images. One way to speed up things for us would be
for the backend to allready start generating the images before the
request for those images comes back from the mobile phone. We know the
request for these images will eventually come since we just sent out a
page containing links to these images.
Since I can't change how the backend functions I am thinking of
somehow prefetching the images. So basically I need something that
looks at the response to a request, identifies links to images in it,
and fetches these images, keeping them in cache so it can immediately
serve them when the request for them comes.
Right now I just want to know if there is some way I could do this
with apache, or if I need something else. If I need something else any
hits about a product that might do that would be welcome.

Krist




--
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


<>-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

[EMAIL PROTECTED] Is there way to embed apache server

2008-03-20 Thread Meir Yanovich
Hello all
im looking to embed web server into my application and i wander if
there any possibility to do that with apache , i don't need all the functions
only the web server and the security support .
is there such way ?

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Re: RPC/HTTP on FC8

2008-03-20 Thread Devon Harding
Anyone?

On Wed, Mar 19, 2008 at 4:27 PM, Devon Harding <[EMAIL PROTECTED]>
wrote:

> I have mod_proxy configured on a FC8 box (httpd-2.2.8-1.fc8) and can't
> seem to get RPC/HTTP for Exchange working.  I keep getting prompt for
> authentication.  OWA is working (I had to disable Integrated Authentication
> on IIS). I'm not using SSL. Here is my settings in
> /etc/httpd/conf/httpd.conf:
>
> NameVirtualHost *:80
>
> 
> ServerName webmail.dennischarley.com
> SetEnv force-proxy-request-1.0 1
> SetEnv proxy-nokeepalive 1
> ProxyPass / http://webmail.domain.com/
> ProxyPassReverse / http://webmail.domain.com/
> 
>
> Thanks,
>
> -Devon
>


Re: [EMAIL PROTECTED] Prefetch

2008-03-20 Thread Krist van Besien
On Thu, Mar 20, 2008 at 4:21 PM,  <[EMAIL PROTECTED]> wrote:
> That is what a pre load does on a web page. My suggestion is since the
>  dynamics fo a mobile page are built into the funtions of the regular web
>  page you should have the designer set a preload for the images at the
>  begining of the page. Which means the images are there just waiting for
>  somebody to click the link on the page.

This I know. It will however not work for most mobile phone browsers I
have to deal with (many don't even understand html). So what I need is
something eiter as part of apache, or sitting between my apache server
and the backend, that does prefetch in a similar way that a modern
browser would. I don't need a concrete solution. If a module for
apache exists that will do this I will be quite able to find out how
it works if someone point me in the right direction. Same if we are
talking a separate product here. I've done some searches using google,
but came up empty unfortunately. That's why I just asked this here,
since there are so many webmasters here.

Krist

-- 
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Is there way to embed apache server

2008-03-20 Thread Sean Allen


On Mar 20, 2008, at 11:22 AM, Meir Yanovich wrote:


Hello all
im looking to embed web server into my application and i wander if
there any possibility to do that with apache , i don't need all the  
functions

only the web server and the security support .
is there such way ?



what language is your application programmed in?


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Prefetch

2008-03-20 Thread EJMcLeod
Ok I'm not as versed in the coding for the mobile phones. But have started
to do some research. I will look and see what I can find. I do understand
what your meaning. I don't know of the module you are looking for but I'm
sure somebody else can assist you in that area. I send a message to the que
if I find something that may help.
(Embedded image moved to file: pic26500.jpg)



   
 "Krist van
 Besien"   
 users@httpd.apache.org  
cc 
 03/20/2008 09:01  
 AMSubject 
   Re: [EMAIL PROTECTED] Prefetch  
   
 Please respond to 
 [EMAIL PROTECTED] 
   e.org   
   
   




On Thu, Mar 20, 2008 at 4:21 PM,  <[EMAIL PROTECTED]> wrote:
> That is what a pre load does on a web page. My suggestion is since the
>  dynamics fo a mobile page are built into the funtions of the regular web
>  page you should have the designer set a preload for the images at the
>  begining of the page. Which means the images are there just waiting for
>  somebody to click the link on the page.

This I know. It will however not work for most mobile phone browsers I
have to deal with (many don't even understand html). So what I need is
something eiter as part of apache, or sitting between my apache server
and the backend, that does prefetch in a similar way that a modern
browser would. I don't need a concrete solution. If a module for
apache exists that will do this I will be quite able to find out how
it works if someone point me in the right direction. Same if we are
talking a separate product here. I've done some searches using google,
but came up empty unfortunately. That's why I just asked this here,
since there are so many webmasters here.

Krist

--
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


<>-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: [EMAIL PROTECTED] Prefetch

2008-03-20 Thread Scott Gifford
"Krist van Besien" <[EMAIL PROTECTED]> writes:

[...]

> What I now want to do, is have apache (or something else) look at the
> content of the response that comes from the backend, and _prefetch_
> all the images that are linked in it, so that when the request for the
> images comes they are already cached.
>
> Any ideas, modules or products that could help here?

That's an interesting idea.  I have written mod_perl code to modify a
Web page on the way through, to rewrite links to a new location.  It
went something like this in httpd.conf:


  PerlModule Apache::SiteMoved
  PerlModule Apache::Filter
  SetHandler perl-script
  PerlSetVar Filter On
  PerlHandler Apache::SiteMoved


and like this in lib/perl5/Apache/SiteMoved.pm:

package Apache::SiteMoved;

use Apache::Constants qw(:common :response);

sub handler
{
my $r = shift;

$r = $r->filter_register();
$r->deterministic(1);

my ($fh, $status) = $r->filter_input(); # Get status information
return $status unless $status == OK;
while (<$fh>)
{
s/(?:www\.)?old-site-name\.(?:com|net|org)/www.new-site-name.com/g;
print;
}
return $status;
}

If you could hook up a filter like this in the proxy, it could parse
the HTML, find IMG SRC commands, then fork off to a background process
to get them and put them in the cache (the easiest way would be to
just send requests for them to the Web server).

Hope that helps get you started,

-Scott.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] combining htaccess

2008-03-20 Thread Tony Heal
I have several servers running apache with htaccess to at least one site on
the server. Is there a recommended way to combine the authentication. I was
thinking of ldap, but that would require recoding and I was wondering if
there is a easier way to have one server auth from another server.

 

Tony Heal

Pace Systems Group, Inc.

800-624-5999 x9317

 



Re: [EMAIL PROTECTED] mod_proxy performance with apache 2.2

2008-03-20 Thread Skye Poier Nott
I originally discovered the problem because the initial "fill" of  
mod_disk_cache from the origin server was taking forever.  The stats I  
list below are with mod_proxy only (mod_cache is loaded, but not  
enabled for any host)


Skye


On 19-Mar-08, at 3:07 PM, Robert Anderson wrote:
I had a similar issue that was caused by caching. Do you have  
mod_cache or mod_disk_cache active? are they clearing properly?


Skye Poier Nott wrote:


Hi Joshua,

I've tried changing MaxClients from 256 to 512 to 1024, no effect.
I've tried changing from MPM prefork to worker, and twiddled  
threads per child, no effect.


Just can't seem to get more than about 4 Mbit/sec out of the  
origin.  I'll give dev@ a ping.


Thanks,
Skye


On 19-Mar-08, at 12:28 PM, Joshua Slive wrote:


On Tue, Mar 18, 2008 at 8:51 PM, Skye Poier Nott <[EMAIL PROTECTED]> wrote:

Hi,

I am doing some load testing on a reverse proxy with apache 2.2 +
mod_proxy and I'm getting terrible throughput, I was wondering if
anyone had a suggestion.

I have the following config, all on gigabit ethernet:

1 origin server -> 2 mod_proxy servers -> 4 client simulators  
(flood)


The origin and proxy servers are configured with 100 name-based
virtual hosts, the proxy servers with config like this:


ServerName w0099.example.com
ProxyPass / http://10.100.10.XX:80/w0099/
ProxyPassReverse / http://10.100.10.XX:80/w0099/



When I start up flood on the client simulators (250 clients  
each), I

only get about 4 Mbit/sec out of the origin server.  I've tried
twiddling all the settings in mod_proxy to no avail (like smax=64
max=512 ttl=120 min=8 acquire=1)

If I set up lighttpd on the proxy servers, I fully saturate the  
gigE

on the origin server (~500 Mbit/sec)

What could explain this 125x difference in performance?  Is there  
some
sort of resource or lock or something contention in mod_proxy  
that I

should know about?


I'm not a mod_proxy performance expert (and you might need to ask on
the [EMAIL PROTECTED] list to find one), but you should start with the  
basics:

have you looked at the mod_status server-status output? Are you
exceeding MaxClients? Is there anything interesting in the error  
log?


Joshua.

-
The official User-To-User support forum of the Apache HTTP Server  
Project.

See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







smime.p7s
Description: S/MIME cryptographic signature


Re: [EMAIL PROTECTED] mod_proxy performance with apache 2.2

2008-03-20 Thread Joshua Slive
On Thu, Mar 20, 2008 at 2:13 PM, Skye Poier Nott <[EMAIL PROTECTED]> wrote:
> I originally discovered the problem because the initial "fill" of
>  mod_disk_cache from the origin server was taking forever.  The stats I
>  list below are with mod_proxy only (mod_cache is loaded, but not
>  enabled for any host)

I'd recommend trying the [EMAIL PROTECTED] list to see if one of the
developers has advice.

Joshua.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Trouble with rotatelogs win32

2008-03-20 Thread Joshua Slive
On Thu, Mar 20, 2008 at 9:15 AM, Iuri Fiedoruk <[EMAIL PROTECTED]> wrote:
> Hello, I am working on a project that uses Apache 2.2 server with prefork
> and I`m having some problems with rotatelogs on windows platform, any help
> is welcome.
>
> First our log system is configured to rotate when files reach 5MB as
> follows?
>  CustomLog "|C:/apache/bin/rotatelogs.exe C:/apache/access_log 5M"  common
> Most of the problems would be solved by using timely rotation, but
> unfortunately this is not a option.
>
> 1. Each new log file is generated with a number after it like
> error_log.2345345, so I don`t know what is the file name PHP should fopen.
>  Also, each time the apache is restarted a new file is generate, before it
> reaches the 5MB limit.
>
> 2. Each process (prefork remeber?) creates it`s own error log with a name
> like error_log.2345345_24, error_log.2345345_26.
>
> Is there a way to make rotatelog bahave like in linux
> (no numbering, file reaches 5MB, rename to .old, create a new log file).

prefork? On windows? You're not doing something silly like using
cygwin or something, are you? If so, then all bets are off.

Joshua.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Query on Maxmemfree

2008-03-20 Thread Joshua Slive
On Wed, Mar 19, 2008 at 5:11 PM, Arnab Ganguly <[EMAIL PROTECTED]> wrote:
> Hi All,
> How do I restrain Apache process to grow to a certain limit?

There is no function internal to apache to do that. You can probably
use ulimit in the script that starts apache. Of course, the processes
will die very ungracefully if they hit the OS limit.

You may want to look at MaxRequestsPerChild if you have buggy/leaky modules.

> And also when
> the process dies how do I make sure it releases the resource it had
> acquired.

This will happen automatically for most resources. Is there some
particular problem you are having?

> What is the impact of the parameter MaxMemFree ?

This won't do very much in normal use. Apache will try to free memory
back to the OS if it winds up with a bunch of unoccupied memory. The
OS may or may not reuse it. And in a busy server, it is unlikely that
particular processes will wind up allocating a bunch of memory and
then later not need it.

Joshua.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Is there way to embed apache server

2008-03-20 Thread Meir Yanovich
c++ /c

On Thu, Mar 20, 2008 at 5:49 PM, Sean Allen <[EMAIL PROTECTED]> wrote:
>
>
>  On Mar 20, 2008, at 11:22 AM, Meir Yanovich wrote:
>
>  > Hello all
>  > im looking to embed web server into my application and i wander if
>  > there any possibility to do that with apache , i don't need all the
>  > functions
>  > only the web server and the security support .
>  > is there such way ?
>  >
>
>  what language is your application programmed in?
>
>
>  -
>  The official User-To-User support forum of the Apache HTTP Server Project.
>  See http://httpd.apache.org/userslist.html> for more info.
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>"   from the digest: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] htpasswd and special characters

2008-03-20 Thread Marc Fromm
I have been working with htpasswd and .htaccess to limit access to a
website.

When I create a user with htpasswd and specify a password with the
symbols '$', '&', or '!' I cannot log into the website. When I specify a
password without those symbols I can log into the website.

The man page for htpasswd did not state certain special characters are
not allowed.

Is there a reason why I can't use the $, &, or ! symbol?


Marc


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Is there way to embed apache server

2008-03-20 Thread Sean Allen

perhaps something smaller and designed for that purpose like:

http://shttpd.sourceforge.net/

?

On Mar 20, 2008, at 4:08 PM, Meir Yanovich wrote:


c++ /c

On Thu, Mar 20, 2008 at 5:49 PM, Sean Allen <[EMAIL PROTECTED]>  
wrote:



On Mar 20, 2008, at 11:22 AM, Meir Yanovich wrote:


Hello all
im looking to embed web server into my application and i wander if
there any possibility to do that with apache , i don't need all the
functions
only the web server and the security support .
is there such way ?



what language is your application programmed in?


-
The official User-To-User support forum of the Apache HTTP Server  
Project.

See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
The official User-To-User support forum of the Apache HTTP Server  
Project.

See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] mod_rewrite no substituion

2008-03-20 Thread mki2008

I am having trouble telling mod_rewrite to leave an incoming url as is. There
are other rules that take every incoming url and rewrite it based on some
parameters. 

In other words i am trying to say this url is an exception and there no
matter what, leave it alone and let it go as is to tomcat.

I am using this rule

 RewriteRule ^/dwr/interface/PeopleService.js$ - [L]  

I think this should work since minus sign does No substitution and L means
this is the last rule.

Also, I would like to know how the order of the rules in the conf file
matters. 
-- 
View this message in context: 
http://www.nabble.com/mod_rewrite-no-substituion-tp16189297p16189297.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 http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Prefetch

2008-03-20 Thread Krist van Besien
On Thu, Mar 20, 2008 at 5:15 PM, Scott Gifford
<[EMAIL PROTECTED]> wrote:

>  If you could hook up a filter like this in the proxy, it could parse
>  the HTML, find IMG SRC commands, then fork off to a background process
>  to get them and put them in the cache (the easiest way would be to
>  just send requests for them to the Web server).
>
>  Hope that helps get you started,

That's a possible aproach, and as I was actually looking for something
that would enable me to get more mod_perl experience I might just go
for this.

Thanks,

Krist


-- 
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Tomcat 6 / Apache 2.2 integration problem (no images, no css loaded)

2008-03-20 Thread Michael Clark
Andreas Schneider wrote:
> [Wed Mar 19 14:57:27 2008] [error] [client 127.0.0.1] client denied by
> server configuration: E:/server/apache-tomcat-6.0/temp/0-sw-builder/ci.css,
> referer: http://localhost/sw-builder/login.jsp
>
>   

You have denies for the subdirectories of the expanded war but you don't
have an associated allow on that directory.

> 
> Options Indexes FollowSymLinks
> DirectoryIndex index.html index.htm index.jsp
>   

Try adding:

AllowOverride None
allow from all


> 
> # Deny direct access to WEB-INF and META-INF
> #
> 
> AllowOverride None
> deny from all
> 
>
> 
> AllowOverride None
> deny from all
> 
> #
> # Use Directory too. On Windows, Location doesn't work unless
> casematches
> #
> 
> AllowOverride None
> deny from all
> 
>
> 
> AllowOverride None
> deny from all
> 
>
> JkMount /sw-builder/*.jsp  ajp13
> JkMount /sw-builder/*.jspx  ajp13
> JkMount /sw-builder/student/actionServlet  ajp13
> JkMount /sw-builder/actionServlet  ajp13
>   


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [EMAIL PROTECTED] Apache reverse-proxy config.

2008-03-20 Thread Venkat Rangan
Nils,

Thanks very much for your help.

I have made some progress - but still do not have a solution. My snippet
from httpd.conf on the Proxy Server (192.168.121.214) is:

NameVirtualHost 192.168.121.214:8080


ServerName test1
ProxyPreserveHost On

ProxyPass /testcase1/app http://192.168.122.184/app
ProxyPassReverse /testcase1/app http://192.168.122.184/app
ProxyHTMLURLMap http://192.168.122.184/app /testcase1/app

ProxyPass /testcase2/app http://192.168.122.247/app
ProxyPassReverse /testcase2/app http://192.168.122.247/app
ProxyHTMLURLMap http://192.168.122.247/app /testcase2/app

ErrorLog c:/temp/test-error.log



My goal is the following:

Browser sends requests to the following to the proxy. (I have my DNS set
to resolve test1 to 192.168.121.214)

Request-1:
http://test1:8080/testcase1/app

Request-2:
http://test1:8080/testcase2/app

I want the Proxy Server (192.168.121.214:8080) to route:
Request-1 to: http://192.168.122.184/app
Request-2 to: http://192.168.122.247/app

It doesn't work - produces a 404 Not Found error and the Proxy Server
has the following in its access.log.

192.168.12.127 - - [20/Mar/2008:16:00:28 -0700] "GET /testcase1/app
HTTP/1.0" 302 -
192.168.12.127 - - [20/Mar/2008:16:00:28 -0700] "GET /app/ HTTP/1.0" 404
202
192.168.12.127 - - [20/Mar/2008:16:15:31 -0700] "GET /testcase2/app
HTTP/1.0" 302 -
192.168.12.127 - - [20/Mar/2008:16:15:31 -0700] "GET /app/ HTTP/1.0" 404
202


On the other hand, if I create two separate VirtualHosts such as the
following.

NameVirtualHost 192.168.121.214:8080


ServerName test1
ProxyPreserveHost On

ProxyPass /app http://192.168.122.184/app
ProxyPassReverse /app http://192.168.122.184/app
ProxyHTMLURLMap http://192.168.122.184/app /app

ErrorLog c:/temp/test1-error.log




ServerName test2
ProxyPreserveHost On

ProxyPass /app http://192.168.122.247/app
ProxyPassReverse /app http://192.168.122.247/app
ProxyHTMLURLMap http://192.168.122.247/app /app

ErrorLog c:/temp/test2-error.log



Now, if I have DNS resolve both test1 and test2 to the same Proxy IP
Address (192.168.121.214), and issue http://test1:8080/app, or
http://test2:8080/app, everything works fine and the requests go to the
right Origin Servers. For success case, the Access Log has:

192.168.12.127 - - [20/Mar/2008:12:58:15 -0700] "GET /app HTTP/1.1" 302
-
192.168.12.127 - - [20/Mar/2008:12:58:15 -0700] "GET
/app/goToUserHome.do HTTP/1.1" 200 36175

Note that there is an additional JavaScript, in the response from the
Origin Server in both cases - 'wget http://192.168.122.184/app' on the
proxy produces the following HTML.



Go To Home Page

function goToHomePage() {
location.replace("/app/goToUserHome.do");
}



 



For some reason, when I have two VirtualHosts, the JavaScript is
properly recognized and re-issued by the Proxy. If I have one
VirtualHost with two separate path-based ProxyPass, the above GET
doesn't happen.

Is there something I am missing in the Proxy httpd.config? Do I need
some kind of a re-write rule?

Thanks.


-Original Message-
From: Nils Jeppe [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 20, 2008 12:46 AM
To: users@httpd.apache.org
Subject: Re: [EMAIL PROTECTED] Apache reverse-proxy config.



On Wed, 19 Mar 2008, Venkat Rangan wrote:

> Is there anything I am missing?

Yes. Apache is not able to distinguish between your two virtualhosts,
and 
thus using the first one. Use NameVirtualHost on the IP (or *) in the
main 
part of your config and assign ServerName 's to each of the
virtualhosts. 
I think this should solve your problem.


Best wishes,
Nils




-
The official User-To-User support forum of the Apache HTTP Server
Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Multiple Dns Server

2008-03-20 Thread Edwin
 Hey Guys,I'm just starting to fiddle with modifying the code on my 
server and need a little help. I want to run two differnet DNS from the one 
server.First can it be done. Second what has to be changed so the server will 
direct communications to sepparate the two pages. I am going to do my own 
research so don't waste to much time on me but please give me and idea where to 
start.

___
Join Excite! - http://www.excite.com
The most personalized portal on the Web!


Re: [EMAIL PROTECTED] Is there way to embed apache server

2008-03-20 Thread Meir Yanovich
i know there is allot of small web servers out there .
but i wander if some one did something with apache to embed it
thanks

On Thu, Mar 20, 2008 at 11:03 PM, Sean Allen <[EMAIL PROTECTED]> wrote:
> perhaps something smaller and designed for that purpose like:
>
>  http://shttpd.sourceforge.net/
>
>  ?
>
>
>
>  On Mar 20, 2008, at 4:08 PM, Meir Yanovich wrote:
>
>  > c++ /c
>  >
>  > On Thu, Mar 20, 2008 at 5:49 PM, Sean Allen <[EMAIL PROTECTED]>
>  > wrote:
>  >>
>  >>
>  >> On Mar 20, 2008, at 11:22 AM, Meir Yanovich wrote:
>  >>
>  >>> Hello all
>  >>> im looking to embed web server into my application and i wander if
>  >>> there any possibility to do that with apache , i don't need all the
>  >>> functions
>  >>> only the web server and the security support .
>  >>> is there such way ?
>  >>>
>  >>
>  >> what language is your application programmed in?
>  >>
>  >>
>  >> -
>  >> The official User-To-User support forum of the Apache HTTP Server
>  >> Project.
>  >> See http://httpd.apache.org/userslist.html> for more info.
>  >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>  >>   "   from the digest: [EMAIL PROTECTED]
>  >> For additional commands, e-mail: [EMAIL PROTECTED]
>  >>
>  >>
>  >
>  > -
>  > The official User-To-User support forum of the Apache HTTP Server
>  > Project.
>  > See http://httpd.apache.org/userslist.html> for more info.
>  > To unsubscribe, e-mail: [EMAIL PROTECTED]
>  >   "   from the digest: [EMAIL PROTECTED]
>  > For additional commands, e-mail: [EMAIL PROTECTED]
>  >
>
>
>  -
>  The official User-To-User support forum of the Apache HTTP Server Project.
>  See http://httpd.apache.org/userslist.html> for more info.
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>"   from the digest: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Tomcat 6 / Apache 2.2 integration problem (no images, no css loaded)

2008-03-20 Thread Andreas Schneider

Michael Clark schrieb:

Andreas Schneider wrote:
  

[Wed Mar 19 14:57:27 2008] [error] [client 127.0.0.1] client denied by
server configuration: E:/server/apache-tomcat-6.0/temp/0-sw-builder/ci.css,
referer: http://localhost/sw-builder/login.jsp

  



You have denies for the subdirectories of the expanded war but you don't
have an associated allow on that directory.

  


Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
  



Try adding:

AllowOverride None
allow from all

  


Yes, that's working. My problem is, that this conf file is auto 
generated (%CATALINA_HOME%/conf/auto/mod_jk.conf). Should I add this

to the http.conf? Is that a security problem to do this?




# Deny direct access to WEB-INF and META-INF
#

AllowOverride None
deny from all



AllowOverride None
deny from all

#
# Use Directory too. On Windows, Location doesn't work unless
casematches
#

AllowOverride None
deny from all



AllowOverride None
deny from all


JkMount /sw-builder/*.jsp  ajp13
JkMount /sw-builder/*.jspx  ajp13
JkMount /sw-builder/student/actionServlet  ajp13
JkMount /sw-builder/actionServlet  ajp13
  




-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  



-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Building apache2.2 with mingw

2008-03-20 Thread Александр karlson
Hello, i need to build httpd-2.2.8 with mingw.
What i'm need to do for it?




-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]