FW: [EMAIL PROTECTED] Apache & PHP(myadmin)

2007-03-29 Thread Warhurst, SI \(Spencer\)
Can anyone suggest what might be causing this? I'm stuck :-(

--
Spencer

> -Original Message-
> From: Warhurst, SI (Spencer) [mailto:[EMAIL PROTECTED] 
> Sent: 26 March 2007 09:52
> To: users@httpd.apache.org
> Subject: [EMAIL PROTECTED] Apache & PHP(myadmin)
> 
> Hi 
>  
> I've just installed phpMyAdmin - 2.10.0.2 on my Windows 
> 2003/Apache 2.0.59/MySQL 5.0.27 box, however I seem to have a 
> configuration issue. 
>  
> None of the images display, and in the Apache error log I get 
> lines like this for each image: 
>  
> [Fri Mar 23 10:29:07 2007] [error] [client 130.246.76.175] 
> D:/www/dbman/themes/original/img/window-new.png is not 
> executable; ensure interpreted scripts have "#!" first line, 
> referer: 
> http://**url**/main.php?token=895d12fb327eb657d27823370d31139c 
> [Fri Mar 23 10:29:07 2007] [error] [client 130.246.76.175] 
> (9)Bad file descriptor: don't know how to spawn child 
> process: D:/www/dbman/themes/original/img/window-new.png, 
> referer: 
> http://**url**/main.php?token=895d12fb327eb657d27823370d31139c 
>  
> which suggests Apache is trying to load all the images as 
> executable files! 
>  
> I don't think I've done anything different in the Apache 
> config than previous installations (though it's been a 
> while!), but this is the directory config: 
>  
> ScriptAlias /dbman/ "d:/www/dbman/" 
>  
> Options None 
> AllowOverride None 
> Order allow,deny 
> Allow from localhost 
>  
>  
> and this is the Apache PHP config: 
>  
> PHPIniDir "C:\\PHP\\" 
> LoadModule php5_module "C:\\PHP\\php5apache2.dll" 
> AddHandler application/x-httpd-php .php 
>  
> Anyone know what I'm doing wrong? 
> 
> --
> Spencer
> 
> -
> 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] Configuring handler for exact location

2007-03-29 Thread Artem Kuchin

Hello!

I need to configure a handler which will 
process ONLY  / url.

for example
http://www.domain.dom/ is handled by handler
as well as http://www.domain.dom

but  http://www.domain.dom/images or
http://www.domain.dom/admin is not handled by
the handler (handler is eather cgi script or
mod_perl script)


However, http://www.domain.dom/Proc is also handled
by the same handler.

Why i need it:

This is big mod_perl (or cgi, can run both modes)
which handles all interactive behaviour and page 
fetching.


I also shown the first page, but then all links
point to http://www.domain.dom/Proc/Something

However this is also static data like images.

So, currently here is what i do:
ScriptAlias /Proc "/hosts/domain.dom/cgi-bin/pub/Public"

Public - is the script, which handles all requests for pages.

The i create index.html with SSI command


So, when user get the index page it return the default page from the script.

I don't want to use redirect because this was index would not exist at all,
it'll be just a redirect. Bad for SEO.

However this SSI trick sucks too because if i want to set cookies it will not
work from SSI.

This is why i need / uri to be handled by the script, but not the other
dirs (images,admin,jscript,...). Maybe there is a way to set global handles but
list uri exeptions?

I am using Apache 2.1 under freebsd, if it matters.



--
Artem

-
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] httpd.conf question - virtual server- firewall port forwarding

2007-03-29 Thread Vizion
 

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of 
> Joshua Slive
> Sent: Wednesday, March 28, 2007 10:14 AM
> To: users@httpd.apache.org
> Subject: Re: [EMAIL PROTECTED] httpd.conf question - virtual server- firewall 
> port forwarding
> 
> On 3/28/07, Vizion <[EMAIL PROTECTED]> wrote:
> > I am setting up an apache2.2 server on freebsd with a 
> number of virtual hosts.
> >
> > The server is behind a firewall which has the IP address to 
> which each virtual host is pointed by DNS with port 80 
> forwarding to the server. The server is on a private network 
> (192.168.0.0) behind the firewall.
> >
> > I have never used this arrangement before and cannot get 
> the virtual servers functioning properly.
> 
> What exactly happens when you try?
> 
> In general, you should be using
> NameVirtualHost *:80
> and then for each virtual host
> 
> ...
> 
> 
> to avoid potential mis-matched IP addresses.
> 
> Joshua.
Thanks for getting back to me so quickly.

That did it.

David


-
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] Complex mod_rewrite URL rewriting - help needed

2007-03-29 Thread Brice Figureau
Hi,

I'm trying to achieve three different tasks by the way of mod_rewrite
under apache 2.0.54:

 1) permanently redirect (301) url of the form
www.domain.com/index.php?t=key1&sub=key2 
to
www.domain.com/key1/key2

Purpose: let current SERP use 'static' url instead of the old "dynamic"
ones

 2) rewrite url of the form
www.domain.com/key1/key2
to
www.domain.com/index.php?t=key1&sub=key2

Purpose: the site still have to run with dynamic url

 3) move secondary domains under the primary:

before:
www.domain.com/
www.subdomain1.com/
www.subdomain2.com/
...

To
www.domain.com
www.domain.com/subdomain1/
www.domain.com/subdomain2/
...

Purpose: move content that was in other virtual host into the same main
domain, without rewriting the applications.

I'm struggling to death with mod_rewrite rules.
Here is what I currently have that almost work


  ServerAdmin [EMAIL PROTECTED]
  ServerName  www.domain.com

  DocumentRoot /var/www/www.domain.com

  RewriteEngine On
  RewriteLog/var/log/apache2/rewrite.log
  RewriteLogLevel 10

  # Section 1) rewrites

  # t=key1&sub=key2 -> /key1/key2/
  RewriteCond %{QUERY_STRING} !t=heading
  RewriteCond %{QUERY_STRING}   ^(.*?)&?\bt\b=([^&]+)&\bsub\b=([^&]+)&?(.*)$
  RewriteRule ^(.*)/(index\.php)?$ $1/%2/%3/?%1%4   [L,R=301]

  # t=key1 -> /key1/
  RewriteCond %{QUERY_STRING} !t=heading
  RewriteCond %{QUERY_STRING}   ^(.*?)&?\bt\b=([^&]+)&?(.*)$
  RewriteRule ^(.*)/(index\.php)?$ $1/%2/?%1%3  [L,R=301]

  # Section 2) rewrite
  # static url to real dynamic
  RewriteCond %{REQUEST_FILENAME} !\.(htc|css|jpg|pdf|gif|png|js)$
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(/(subdomain1|subdomain2))?/([^/]+)/([^/]+)/?(index.php)?$ 
$1/index.php?t=$3&sub=$4  [QSA,S=1]

  RewriteCond %{REQUEST_FILENAME} !\.(htc|css|jpg|pdf|gif|png|js)$
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(/(subdomain1|subdomain2))?/([^/]+)/?(index.php)?$  
$1/index.php?t=$3 [QSA]

  # Section 3) Rewrite  
  RewriteRule ^/(subdomain1|subdomain2)(.*)$ /var/www/www.$1.com/$2 [QSA,L]

  
Options +FollowSymlinks
AllowOverride None
Order allow,deny
Allow from all


  
Options +FollowSymlinks
AllowOverride None
Order allow,deny
Allow from all


  
Options +FollowSymlinks
AllowOverride None
Order allow,deny
Allow from all




It almost work, but there are case where it simply doesn't work, mainly:
www.domain.com/subdomain1/index.php
(without any query string paramaters).

The problem is this case comes from:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

Which doesn't match because, of:
172.16.10.4 - - [29/Mar/2007:11:58:22 +0200] 
[www.domain.com/sid#81dfd20][rid#9e272e0/initial] (4) RewriteCond: 
input='/subdomain1/index.php' pattern='!-f' => matched
172.16.10.4 - - [29/Mar/2007:11:58:22 +0200] 
[www.domain.com/sid#81dfd20][rid#9e272e0/initial] (4) RewriteCond: 
input='/subdomain1/index.php' pattern='!-d' => matched

The file does exist but in /var/www/www.subdomain1.com/ and not in
document_root/subdomain1/, so the rewriteRule doesn't trigger.


I tried to move those rules to per-directory (for instance into the
Directory section of subdomain1):
RewriteCond %{REQUEST_FILENAME} !\.(htc|css|jpg|pdf|gif|png|js)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/([^/]+)/?(index.php)?$ 
/var/www/www.subdomain1.com/index.php?t=$1&sub=$2   [QSA,L,PT]

RewriteCond %{REQUEST_FILENAME} !\.(htc|css|jpg|pdf|gif|png|js)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/?(index.php)?$ /var/www/www.subdomain1.com/index.php?t=$1  
[QSA,L,PT]

It doesn't work either, because when the rewrite rule is applied, Apache
does an Internal Redirect and it triggers the virtual host rules of
Section 1) so the url gets rewritten one more time and I lose
the /subdomain1/.

I'd really appreciate if someone could help me fix this issue.
Thanks,
-- 
Brice Figureau <[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] ScriptAlias broken with VirtualDocumentRoot?

2007-03-29 Thread Alberto Giménez

You don't mention what version you are using.


Yeah, sorry for that!


problem. In 1.3, the processing depends on the ordering of the
AddModule lines, but in 2.x it is specified in the code.


I'm using 1.3, so I looked at modules loading configuration and I
noticed that mod_vhost_alias is loaded AFTER mod_alias, so:

a) when vhost module gets loaded, mod_alias is active and the
directives should apply to vhost definitions -> should work?

or

b) when vhost module gets loaded, tries to 'kind of' override alias
directives and then makes them void because I don't define a per-vhost
ScriptAlias??? -> weird behaviour?

I don't understand it at all. Should I load vhost module BEFORE alias
one to make it work?

Thanks for your answer.
--
Alberto Giménez

-
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] Relative path with virtual host

2007-03-29 Thread Ken Loomis

Hello:

This has been bugging me for some time.

If I have a directory structure like this:

/var/www/html/myApp
/var/www/html/myFiles

With this URL:  www.example.com/myApp
I can reference myFiles as ../myFiles

but with this URL: www.myApp.example.com, using a virtual host,
I cannot access myFiles with ../myFiles

Why is this, and can safely I fix this with some directive in the 
Virtual Host? I have a number of libraries I'd like to share across 
several applications.


Any help is much appreciated,

Ken









-
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] Relative path with virtual host

2007-03-29 Thread Peter Nyamukusa




Hi Ken,

Depending on what OS you are running you would need something similar to
this on unix style OS in httpd.conf or vhosts.conf. You would also need to
configure the associated DNS entries for www.myApp.example.com namely the A
record and the www record.

# Use name-based virtual hosting.
#
NameVirtualHost 10.10.10.10:80

#
# myApp
#

ServerAdmin [EMAIL PROTECTED]
ServerName www.myApp.example.com
ServerAlias myApp.example.com
DocumentRoot /var/www/html/myApp
ErrorLog /var/log/apache2/myApp.example.com/error_log
CustomLog /var/log/apache2/myApp.example.com/access_log common

#

Hope this helps


Peter Nyamukusa
Email: [EMAIL PROTECTED]
AIM: petenya
 
-Original Message-
From: Ken Loomis [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 29, 2007 2:00 PM
To: users@httpd.apache.org
Subject: [EMAIL PROTECTED] Relative path with virtual host

Hello:

This has been bugging me for some time.

If I have a directory structure like this:

/var/www/html/myApp
/var/www/html/myFiles

With this URL:  www.example.com/myApp
I can reference myFiles as ../myFiles

but with this URL: www.myApp.example.com, using a virtual host,
I cannot access myFiles with ../myFiles

Why is this, and can safely I fix this with some directive in the 
Virtual Host? I have a number of libraries I'd like to share across 
several applications.

Any help is much appreciated,

Ken









-
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] Apache/2.2.4 (Win32) / mod_proxy_rewrite

2007-03-29 Thread Clarke, James

I have 2 virtual hosts running IBM HTTP server to serve up an IBM WAS
application.

I want to use Apache to load balance between these 2 virtual hosts and
use sticky sessions (session replication isn't an option here).  I have
the following configuration for the load balancing:



Proxy balancer://serverpool>
# member 1
BalancerMember http://10.151.102.35:9080

# member 2
BalancerMember http://10.151.102.35:9082


ProxyPass / balancer://serverpool/ stickysession=JSESSIONID
ProxyPassReverse / balancer://serverpool/



The balancing works fine between the two hosts, howver when I log in to
the application, I am assigned a JSESSIONID as per-usual, but Apache
still balances the rest of my session between the two servers.
I am getting sesison id's like 86NBUlF_C0_Wc73Qg4BJi5K:-1
I read that it was the colon : messing up the sticky session, but
unfortunately, WAS will only let me specify : or +

Has anybody else run into this problem?  If so, what did you do to solve
it?  I'm tearing my hair out!  Feel free to mail me at my corporate
email below:


Regards,
James Clarke
Junior Developer / Quality Engineer
Pearson Phoenix
E-mail: [EMAIL PROTECTED]

This email may contain confidential material. If you were not an
intended recipient, please notify the sender and delete all copies.
We may monitor email to and from our network.
This email was sent by a company within the corporate group owned
by Pearson plc, registered office at 80 Strand, London WC2R 0RL,
registered in England and Wales with company number 53723 and
VAT number GB 278 5371 21.

-
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] Still Need Help w. PHP And Apache

2007-03-29 Thread Bruce Hyatt

I'm no expert but what jumps out at me is that you say you're trying to 
integrate php 5.2.1 but your web server is trying to load a php 6.0.0 dll.

Bruce

> Mr. Steve Burrus wrote:
  hi I still need help/assistance
w.
trying to integrate php with the apache server. the version of php in
question is 5.2.1 and the version of apache is 2.2.4. I got this
integrated some time ago but cannot now. 

me again. the server error msg. which I get when I try to start up
apache is : 

>>"httpd.exe: Syntax error on line 74 of C:/Program Files/Apache
Software Foundatio
n/Apache2.2/conf/httpd.conf: Cannot load C:/php-6.0.0/apache2_2.dll
into server:
 The specified module could not be found."<<

now what could be causing this???

___
No banners. No pop-ups. No kidding.
Make My Way  your home on the Web - http://www.myway.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] Apache & PHP(myadmin)

2007-03-29 Thread Joshua Slive

On 3/26/07, Warhurst, SI (Spencer) <[EMAIL PROTECTED]> wrote:

Hi

I've just installed phpMyAdmin - 2.10.0.2 on my Windows 2003/Apache 
2.0.59/MySQL 5.0.27 box, however I seem to have a configuration issue.

None of the images display, and in the Apache error log I get lines like this 
for each image:

[Fri Mar 23 10:29:07 2007] [error] [client 130.246.76.175] 
D:/www/dbman/themes/original/img/window-new.png is not executable; ensure interpreted 
scripts have "#!" first line, referer: 
http://**url**/main.php?token=895d12fb327eb657d27823370d31139c
[Fri Mar 23 10:29:07 2007] [error] [client 130.246.76.175] (9)Bad file 
descriptor: don't know how to spawn child process: 
D:/www/dbman/themes/original/img/window-new.png, referer: 
http://**url**/main.php?token=895d12fb327eb657d27823370d31139c

which suggests Apache is trying to load all the images as executable files!

I don't think I've done anything different in the Apache config than previous 
installations (though it's been a while!), but this is the directory config:

ScriptAlias /dbman/ "d:/www/dbman/"

Options None
AllowOverride None
Order allow,deny
Allow from localhost


and this is the Apache PHP config:

PHPIniDir "C:\\PHP\\"
LoadModule php5_module "C:\\PHP\\php5apache2.dll"
AddHandler application/x-httpd-php .php

Anyone know what I'm doing wrong?


EVERYTHING in a ScriptAlias'ed directory will be executed.

In your case, I don't think you need a ScriptAlias at all. You
probably want simply an Alias.

By the way, you should always be using forward slashes for path
separators in the apache config.

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] Configuring handler for exact location

2007-03-29 Thread Joshua Slive

On 3/29/07, Artem Kuchin <[EMAIL PROTECTED]> wrote:

Hello!

I need to configure a handler which will
process ONLY  / url.
for example
http://www.domain.dom/ is handled by handler
as well as http://www.domain.dom

but  http://www.domain.dom/images or
http://www.domain.dom/admin is not handled by
the handler (handler is eather cgi script or
mod_perl script)


However, http://www.domain.dom/Proc is also handled
by the same handler.

Why i need it:

This is big mod_perl (or cgi, can run both modes)
which handles all interactive behaviour and page
fetching.

I also shown the first page, but then all links
point to http://www.domain.dom/Proc/Something

However this is also static data like images.

So, currently here is what i do:
ScriptAlias /Proc "/hosts/domain.dom/cgi-bin/pub/Public"

Public - is the script, which handles all requests for pages.

The i create index.html with SSI command


So, when user get the index page it return the default page from the script.


You can just use
ScriptAliasMatch ^/$ "/hosts/domain.dom/cgi-bin/pub/Public"

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] ScriptAlias broken with VirtualDocumentRoot?

2007-03-29 Thread Joshua Slive

On 3/29/07, Alberto Giménez <[EMAIL PROTECTED]> wrote:

> You don't mention what version you are using.

Yeah, sorry for that!

> problem. In 1.3, the processing depends on the ordering of the
> AddModule lines, but in 2.x it is specified in the code.

I'm using 1.3, so I looked at modules loading configuration and I
noticed that mod_vhost_alias is loaded AFTER mod_alias, so:

a) when vhost module gets loaded, mod_alias is active and the
directives should apply to vhost definitions -> should work?

or

b) when vhost module gets loaded, tries to 'kind of' override alias
directives and then makes them void because I don't define a per-vhost
ScriptAlias??? -> weird behaviour?

I don't understand it at all. Should I load vhost module BEFORE alias
one to make it work?


To be honest, I don't remember how exactly it works in 1.3, and I
don't really care. It is an obsolete version.

But yes,the first thing to try is swapping the order of the AddModule
directives.

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] httpd.conf question - virtual server- firewall port forwarding

2007-03-29 Thread Bruce Hyatt

David,

I'm far from an expert on Apache web server but I think you can't do what 
you're trying to do.

If your server is on a private network behind a router (which it must be) the 
rest of the world will not see the 192.168.x.x IP #s, only the IP # of the 
router.

I think you will have to use name-based virtual hosts.

Bruce

 --- On Wed 03/28, Vizion < [EMAIL PROTECTED] > wrote:
From: Vizion [mailto: [EMAIL PROTECTED]
To: users@httpd.apache.org
Date: Wed, 28 Mar 2007 10:06:53 -0700
Subject: [EMAIL PROTECTED] httpd.conf question - virtual server- firewall port 
forwarding

I am setting up an apache2.2 server on freebsd with a number of virtual hosts.

The server is behind a firewall which has the IP address to which each virtual 
host is pointed by DNS with port 80 forwarding to the server. The server is on 
a private network (192.168.0.0) behind the firewall.

I have never used this arrangement before and cannot get the virtual servers 
functioning properly.

httpd.conf includes the lines:
Include etc/apache22/Includes/*.conf
the virtual servers have entries in the form of:


DocumentRoot /absolute/path/to/root
Servername   www.mydomain.tld
AcceptPathInfo



order allow, deny
allow from all


Can anyone point me to a resource that can maybe help me identify what I am 
doing wrong. I have not had to use this arangement before.. so I am doubtless 
making a silly mistake somewhere.
\
Thanks in advance
david

___
No banners. No pop-ups. No kidding.
Make My Way  your home on the Web - http://www.myway.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] Configuring handler for exact location

2007-03-29 Thread Artem Kuchin

Joshua Slive wrote:

On 3/29/07, Artem Kuchin <[EMAIL PROTECTED]> wrote:

Hello!

I need to configure a handler which will
process ONLY  / url.
for example
http://www.domain.dom/ is handled by handler
as well as http://www.domain.dom

but  http://www.domain.dom/images or
http://www.domain.dom/admin is not handled by
the handler (handler is eather cgi script or
mod_perl script)


However, http://www.domain.dom/Proc is also handled
by the same handler.

Why i need it:

This is big mod_perl (or cgi, can run both modes)
which handles all interactive behaviour and page
fetching.

I also shown the first page, but then all links
point to http://www.domain.dom/Proc/Something

However this is also static data like images.

So, currently here is what i do:
ScriptAlias /Proc "/hosts/domain.dom/cgi-bin/pub/Public"

Public - is the script, which handles all requests for pages.

The i create index.html with SSI command


So, when user get the index page it return the default page from the
script. 


You can just use
ScriptAliasMatch ^/$ "/hosts/domain.dom/cgi-bin/pub/Public"



Well, this is good, but what about mod_perl handler?


Currently i use:

   
   SetHandler perl-script
   PerlResponseHandler Megalib::Exec::Public
   

If i do

   
   SetHandler perl-script
   PerlResponseHandler Megalib::Exec::Public
   

then /images will be processed by Public handler too, but i need
only / and /Proc to be processed by handler

--
Regards,
Artem Kuchin


-
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] Configuring handler for exact location

2007-03-29 Thread Joshua Slive

On 3/29/07, Artem Kuchin <[EMAIL PROTECTED]> wrote:



If i do


SetHandler perl-script
PerlResponseHandler Megalib::Exec::Public


then /images will be processed by Public handler too, but i need
only / and /Proc to be processed by handler


Let's see, we changed
ScriptAlias / -> ScriptAliasMatch ^/$
I wonder if we could do
 -> 

(No need to wonder long, just check the docs.)

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] Apache/2.2.4 (Win32) / mod_proxy_rewrite

2007-03-29 Thread Clarke, James

UPDATE: IBM HTTP server isn't running.  Apache is forwarding the
requests directly to WAS.

-Original Message-
From: Clarke, James [mailto:[EMAIL PROTECTED]
Sent: 29 March 2007 14:11
To: users@httpd.apache.org
Subject: [EMAIL PROTECTED] Apache/2.2.4 (Win32) / mod_proxy_rewrite


I have 2 virtual hosts running IBM HTTP server to serve up an IBM WAS
application.

I want to use Apache to load balance between these 2 virtual hosts and
use sticky sessions (session replication isn't an option here).  I have
the following configuration for the load balancing:



Proxy balancer://serverpool>
# member 1
BalancerMember http://10.151.102.35:9080


# member 2
BalancerMember http://10.151.102.35:9082



ProxyPass / balancer://serverpool/ stickysession=JSESSIONID
ProxyPassReverse / balancer://serverpool/




The balancing works fine between the two hosts, howver when I log in to
the application, I am assigned a JSESSIONID as per-usual, but Apache
still balances the rest of my session between the two servers.
I am getting sesison id's like 86NBUlF_C0_Wc73Qg4BJi5K:-1 I read
that it was the colon : messing up the sticky session, but
unfortunately, WAS will only let me specify : or +

Has anybody else run into this problem?  If so, what did you do to solve
it?  I'm tearing my hair out!  Feel free to mail me at my corporate
email below:


Regards,
James Clarke
Junior Developer / Quality Engineer
Pearson Phoenix
E-mail: [EMAIL PROTECTED]

This email may contain confidential material. If you were not an
intended recipient, please notify the sender and delete all copies.
We may monitor email to and from our network.
This email was sent by a company within the corporate group owned by
Pearson plc, registered office at 80 Strand, London WC2R 0RL, registered
in England and Wales with company number 53723 and VAT number GB 278
5371 21.

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

This email may contain confidential material. If you were not an
intended recipient, please notify the sender and delete all copies.
We may monitor email to and from our network.
This email was sent by a company within the corporate group owned
by Pearson plc, registered office at 80 Strand, London WC2R 0RL,
registered in England and Wales with company number 53723 and
VAT number GB 278 5371 21.

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

2007-03-29 Thread Rodman
Hello,

Have a question pertaining to using mod_ssl on one of my virtual sites.  I am 
running a web mail application in a directory on one of my sites and I was 
wondering if it would be possible to secure just a particular directory and 
everything under it.  For example, my site is www.example.com but I am wanting 
to secure www.example.com\mail.  Can it be possible to just use SSL on that 
particular directory rather than securing an entire site.  The reason I am 
asking is that I am going to use a self signed certificate (not going to pay an 
outrageous price of $800+) and I.E. complains about a certificate not being 
signed by a root authority.  I only need a handful of users going to the 
"\mail" directory and I can have them import the certificate so that I.E. 
doesn't complain each time one of them tries to access that directory.  The 
public accessing www.example.com doesn't need SSL and if I had to turn it on 
for the whole site, I.E. might scare them away when it says the certificate 
can't be verified...

Thanks guys!

Rodman

Re: [EMAIL PROTECTED] mod_ssl question

2007-03-29 Thread Dragon

Rodman wrote:

Hello,

Have a question pertaining to using mod_ssl on one of my virtual 
sites.  I am running a web mail application in a directory on one of 
my sites and I was wondering if it would be possible to secure just 
a particular directory and everything under it.  For example, my 
site is www.example.com but I am wanting to 
secure www.example.com\mail.  Can it be 
possible to just use SSL on that particular directory rather than 
securing an entire site.  The reason I am asking is that I am going 
to use a self signed certificate (not going to pay an outrageous 
price of $800+) and I.E. complains about a certificate not being 
signed by a root authority.  I only need a handful of users going to 
the "\mail" directory and I can have them import the certificate so 
that I.E. doesn't complain each time one of them tries to access 
that directory.  The public accessing 
www.example.com doesn't need SSL and if I 
had to turn it on for the whole site, I.E. might scare them away 
when it says the certificate can't be verified...


Thanks guys!

Rodman

 End original message. -

Yes, you can secure any portion of a site, there is no need to do the 
whole thing.


Also, there are affordable certificates available. I paid $35 for one 
from GoDaddy for a web ticketing system I did for a non-profit event. 
VeriSign and their ridiculously inflated pricing is not the only option.


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] mod_ssl question

2007-03-29 Thread Rodman
Great!!  Now I have to figure out how to do it.  You wouldn't happen to have 
a link handy with some basic instructions on how to secure just a directory 
instead of an entire site?  I'm guessing that I would have to use some sort 
of SSL  container inside my  container but 
this is just a guess.


I'll check with godaddy and see what I can dig up for cheaper 
certificates...


Rodman
- Original Message - 
From: "Dragon" <[EMAIL PROTECTED]>

To: 
Sent: Thursday, March 29, 2007 11:17 AM
Subject: Re: [EMAIL PROTECTED] mod_ssl question



Rodman wrote:

Hello,

Have a question pertaining to using mod_ssl on one of my virtual sites.  I 
am running a web mail application in a directory on one of my sites and I 
was wondering if it would be possible to secure just a particular 
directory and everything under it.  For example, my site is 
www.example.com but I am wanting to secure 
www.example.com\mail.  Can it be possible to 
just use SSL on that particular directory rather than securing an entire 
site.  The reason I am asking is that I am going to use a self signed 
certificate (not going to pay an outrageous price of $800+) and I.E. 
complains about a certificate not being signed by a root authority.  I 
only need a handful of users going to the "\mail" directory and I can have 
them import the certificate so that I.E. doesn't complain each time one of 
them tries to access that directory.  The public accessing 
www.example.com doesn't need SSL and if I had to 
turn it on for the whole site, I.E. might scare them away when it says the 
certificate can't be verified...


Thanks guys!

Rodman

 End original message. -

Yes, you can secure any portion of a site, there is no need to do the 
whole thing.


Also, there are affordable certificates available. I paid $35 for one from 
GoDaddy for a web ticketing system I did for a non-profit event. VeriSign 
and their ridiculously inflated pricing is not the only option.


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]




-
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] mod_ssl question

2007-03-29 Thread Joshua Slive

On 3/29/07, Rodman <[EMAIL PROTECTED]> wrote:

Great!!  Now I have to figure out how to do it.  You wouldn't happen to have
a link handy with some basic instructions on how to secure just a directory
instead of an entire site?  I'm guessing that I would have to use some sort
of SSL  container inside my  container but
this is just a guess.

I'll check with godaddy and see what I can dig up for cheaper
certificates...


You're thinking about this from the wrong perspective.

Once you have SSL, you will have two separate websites: one with ssl
using https on port 443, and one without ssl using http on port 80.
Each should have it's own  block in your config.

Then if you want certain content to be available in only one vhost or
the other, you put directives in these s to make it
happen.  For example, if you want the mail directory to be available
only on the ssl host, then redirect requests for /mail under the
non-ssl host over to the ssl host:


...
Redirect /mail https://mysite.example.com/mail
...


You can also use the SSLRequireSSL directive in a  section,
but it isn't strictly necessary.

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] mod_ssl question

2007-03-29 Thread Rodman
A, that makes so much more sense.  I didn't even think to have two 
virtual hosts of the same site but have one of them SSL while the other is 
standard port 80.  Redirecting should be easy then.


Thanks Joshua! I appreciate the help!  I'll setup it up tonight.

Rodman
- Original Message - 
From: "Joshua Slive" <[EMAIL PROTECTED]>

To: 
Sent: Thursday, March 29, 2007 2:46 PM
Subject: Re: [EMAIL PROTECTED] mod_ssl question



On 3/29/07, Rodman <[EMAIL PROTECTED]> wrote:
Great!!  Now I have to figure out how to do it.  You wouldn't happen to 
have
a link handy with some basic instructions on how to secure just a 
directory
instead of an entire site?  I'm guessing that I would have to use some 
sort
of SSL  container inside my  container 
but

this is just a guess.

I'll check with godaddy and see what I can dig up for cheaper
certificates...


You're thinking about this from the wrong perspective.

Once you have SSL, you will have two separate websites: one with ssl
using https on port 443, and one without ssl using http on port 80.
Each should have it's own  block in your config.

Then if you want certain content to be available in only one vhost or
the other, you put directives in these s to make it
happen.  For example, if you want the mail directory to be available
only on the ssl host, then redirect requests for /mail under the
non-ssl host over to the ssl host:


...
Redirect /mail https://mysite.example.com/mail
...


You can also use the SSLRequireSSL directive in a  section,
but it isn't strictly necessary.

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]




-
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] mod_ssl question

2007-03-29 Thread Sander Temme


On Mar 29, 2007, at 1:25 PM, Rodman wrote:

A, that makes so much more sense.  I didn't even think to have  
two virtual hosts of the same site but have one of them SSL while  
the other is standard port 80.  Redirecting should be easy then.


Yes, if you put your Redirect in the main server config, your SSL  
virtual host will inherit it and create a redirect loop.


S.

--
[EMAIL PROTECTED]http://www.temme.net/sander/
Open Source Software Consultant
PGP FP: 51B4 8727 466A 0BC3 69F4  B7B8 B2BE BC40 1529 24AF

ApacheCon 2007 Europe, May 1-4 in Amsterdam
http://www.eu.apachecon.com/





smime.p7s
Description: S/MIME cryptographic signature


Re: [EMAIL PROTECTED] mod_proxy_balancer problem

2007-03-29 Thread Peter Hinse
PIRONET Benoit schrieb:
> I have changed my VirtualHost configuration like this:
> 
> 
> ServerName lbtest.lifeonline.be
> ServerAdmin [EMAIL PROTECTED]
> ProxyPass / balancer://mycluster2 stickysession=PHPSESSIONID
> nofailover=On
> 
> BalancerMember http://www.lifeonline.be:80
> 
> ProxyPassReverse / htt://www.lifeonline.be:80
> ErrorLog /var/log/http-balancer_error
> 
> 
> But http://lbtest.lifeonline.be/img/logo.jpg  does not run but
> http://www.lifeonline.be/img/logo.jpg  runs :(
> 
> Do you know where I did the error ?

Hi,

just tested a similar setup, and it works for me. Which version of
apache are you using? Try the latest 2.2.4 - I had some trouble with
mod_proxy and 2.2.3.

ProxyPass /balancer-manager !


  Order deny,allow
  Allow from all
  BalancerMember http://192.168.1.30:80 loadfactor=3
  BalancerMember http://192.168.1.31:80 loadfactor=3


ProxyPass / balancer://mycluster/
ProxyPassReverse / http://192.168.1.30:80
ProxyPassReverse / http://192.168.1.31:80


  SetHandler balancer-manager
  Order Deny,Allow
  Deny from all
  Allow from 192.168.1



-
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: Apache CPU Utilization peaks to 100%

2007-03-29 Thread Sachin123

We are running Apache HTTP Server on a Windows XP machine with 2.79GHZ and 1
GB RAM , Weblogic 9.2 is running on another machine with the same
configuration as Apache HTTP Server machine and on a third machine which is
a 2 CPU,2.79 GHZ and 4 GB RAM machine we have Oracle 10g running 

We are doing a load test with 20 concurrent users .We see the access.log and
apache is processing g around 140 HTTP Requests ( GET + Post) through and
forwarding to the Application Server .

We see that Apache is peaking to 100% where as the Application Server and
the DB Server remain underutilzed .

The Application is using JDK 1.5 and Spring Framework is being used .
The Application does to have complex business logic and POJO classess are
being used in all the layer 
Presentation Layer,Business Logic Layer and the DAO Layer.

The Thread Count We see for Apache is 254

Why Apache peaks upto 100% ?
1. Is it becuase 140 requests per second it processing is too high 
2. Some Configuration settings need to be changed ?

Please suggest 

Thanks
Sachin


Boyle Owen wrote:
> 
>> -Original Message-
>> From: Sachin123 [mailto:[EMAIL PROTECTED] 
>> Sent: Thursday, March 29, 2007 8:04 AM
>> To: users@httpd.apache.org
>> Subject: [EMAIL PROTECTED] Apache CPU Utilization peaks to 100%
>> 
>> 
>> Hi 
>> 
>> We are doing a load test for 20 concurrent users with 
>> Apache 2.00.59 on one machine 
>> Weblogic 9.2 on another machine 
>> Oracle 10g on the third machine 
> 
> - define "machine" (OS, hardware)
> - webservers don't really have "users", they handle requests. What kind
> of requests? How frequent? What kind of back-end activity do the
> requests generate?
> 
> Rgds,
> Owen Boyle
> Disclaimer: Any disclaimer attached to this message may be ignored. 
> 
>> 
>> The machine in which  Apache HTTP serveris installed  peaks 
>> upto 100% and
>> machines in which Weblogic 9.2 and Oracle 10g is installed are under
>> utilized .
>> 
>> Attached is the http.conf which is being used. 
>> 
>> Please suggest what configuration changes can be done to improve the
>> performance 
>> 
>> In Apache Rewrite Engine is on to show the user the freindly 
>> URL's instead
>> of the actual URL's Will rewrite take this much CPU
>> http://www.nabble.com/file/7498/httpd.conf httpd.conf 
>> -- 
>> View this message in context: 
>> http://www.nabble.com/Apache-CPU-Utilization-peaks-to-100--tf3
> 484568.html#a9727551
>> 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]
>>
>  
>  
> This message is for the named person's use only. It may contain
> confidential, proprietary or legally privileged information. No
> confidentiality or privilege is waived or lost by any mistransmission. If
> you receive this message in error, please notify the sender urgently and
> then immediately delete the message and any copies of it from your system.
> Please also immediately destroy any hardcopies of the message. You must
> not, directly or indirectly, use, disclose, distribute, print, or copy any
> part of this message if you are not the intended recipient. The sender's
> company reserves the right to monitor all e-mail communications through
> their networks. Any views expressed in this message are those of the
> individual sender, except where the message states otherwise and the
> sender is authorised to state them to be the views of the sender's
> company.
> 
> -
> 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Apache-CPU-Utilization-peaks-to-100--tf3484568.html#a9747281
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]



[EMAIL PROTECTED] apachectl startssl returns "assertion 'rv == APR_SUCCESS" failed'

2007-03-29 Thread Mark Drummond
Hello everyone,



This is probably better directed to the mod_ssl folks but their majordomo is 
using SORBS and SORBS is blocking Yahoo mail accounts.



I have Apache 2.0.59 binaries (and required supporting components) from 
sunfreeware installed on two Solaris 9 9/04 servers. The two systems are 
identical in most respects. They differ in terms of patch levels.
On both servers I created self signed certificates for testing purposes. I have 
only made the bare minimum necessary edits to httpd.conf, and no edits at all 
to ssl.conf (Apache 2.0.59 from sunfreeware breaks SSL configuration off into a 
separate file).

Apache starts just fine on the one server, and chokes on the other server.

Good guy:

# ../ssl/bin/openssl req -new -x509 -nodes -out conf/ssl.crt/server.crt -keyout 
conf/ssl.key/server.key
.
.
.
# ../bin/apachectl startssl
# ps -ef | grep [a]pache2
  nobody 12433 12428  0 01:04:25 ?0:00 /usr/local/apache2/bin/httpd -k 
start -DSSL
  nobody 12434 12428  0 01:04:25 ?0:00 /usr/local/apache2/bin/httpd -k 
start -DSSL
  nobody 12432 12428  0 01:04:25 ?0:00 /usr/local/apache2/bin/httpd -k 
start -DSSL
  nobody 12431 12428  0 01:04:25 ?0:00 /usr/local/apache2/bin/httpd -k 
start -DSSL
  nobody 12435 12428  0 01:04:25 ?0:00 /usr/local/apache2/bin/httpd -k 
start -DSSL
root 12428 1  1 01:04:24 ?0:01 /usr/local/apache2/bin/httpd -k 
start -DSSL
#


Bad guy:

# ../ssl/bin/openssl req -new -x509 -nodes -out conf/ssl.crt/server.crt -keyout 
conf/ssl.key/server.key
.

.

.

# ../bin/apachectl startssl
[Fri Mar 30 01:05:29 2007] [crit] [Fri Mar 30 01:05:29 2007] file vhost.c, line 
190, assertion "rv == APR_SUCCESS" failed
Abort - core dumped
#


I used the same sunfreeware packages to install Apache, OpenSSL, zlib, libgcc 
etc.

Any ideas? This is meant to become my new production web server, replacing an 
older IBM HTTPD 2.0.47.1, but the machine that is failing is my prod box. It 
works on the dev/test box.

Thanks,
Mark

 
-- 

Georgia: Why am I not doing what they're doing? 

Rube: Because you're doing what you're doing. When it's time for you to do 
something else you'll do that.






-
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] apachectl startssl returns "assertion 'rv == APR_SUCCESS" failed'

2007-03-29 Thread Mark Drummond
I seem to have stumbled on the answer. For whatever reason it didn't like the 
_default_:9443 in my ssl.conf. I changed that to *:9443 and the server started 
without problems. I don't understand why my the test box works with 
_default_:9443. If someone wants to clue me in, I'd appreciate it.
 
-- 
Georgia: Why am I not doing what they're doing? 
Rube: Because you're doing what you're doing. When it's time for you to do 
something else you'll do that.

- Original Message 
From: Mark Drummond <[EMAIL PROTECTED]>
To: users@httpd.apache.org
Sent: Friday, March 30, 2007 1:08:22 AM
Subject: [EMAIL PROTECTED] apachectl startssl returns "assertion 'rv == 
APR_SUCCESS" failed'

Hello everyone,



This is probably better directed to the mod_ssl folks but their majordomo is 
using SORBS and SORBS is blocking Yahoo mail accounts.



I have Apache 2.0.59 binaries (and required supporting components) from 
sunfreeware installed on two Solaris 9 9/04 servers. The two systems are 
identical in most respects. They differ in terms of patch levels.
On both servers I created self signed certificates for testing purposes. I have 
only made the bare minimum necessary edits to httpd.conf, and no edits at all 
to ssl.conf (Apache 2.0.59 from sunfreeware breaks SSL configuration off into a 
separate file).

Apache starts just fine on the one server, and chokes on the other server.

Good guy:

# ../ssl/bin/openssl req -new -x509 -nodes -out conf/ssl.crt/server.crt -keyout 
conf/ssl.key/server.key
.
.
.
# ../bin/apachectl startssl
# ps -ef | grep [a]pache2
  nobody 12433 12428  0 01:04:25 ?0:00 /usr/local/apache2/bin/httpd -k 
start -DSSL
  nobody 12434 12428  0 01:04:25 ?0:00 /usr/local/apache2/bin/httpd -k 
start -DSSL
  nobody 12432 12428  0 01:04:25 ?0:00 /usr/local/apache2/bin/httpd -k 
start -DSSL
  nobody 12431 12428  0 01:04:25 ?0:00 /usr/local/apache2/bin/httpd -k 
start -DSSL
  nobody 12435 12428  0 01:04:25 ?0:00 /usr/local/apache2/bin/httpd -k 
start -DSSL
root 12428 1  1 01:04:24 ?0:01 /usr/local/apache2/bin/httpd -k 
start -DSSL
#


Bad guy:

# ../ssl/bin/openssl req -new -x509 -nodes -out conf/ssl.crt/server.crt -keyout 
conf/ssl.key/server.key
.

.

.

# ../bin/apachectl startssl
[Fri Mar 30 01:05:29 2007] [crit] [Fri Mar 30 01:05:29 2007] file vhost.c, line 
190, assertion "rv == APR_SUCCESS" failed
Abort - core dumped
#


I used the same sunfreeware packages to install Apache, OpenSSL, zlib, libgcc 
etc.

Any ideas? This is meant to become my new production web server, replacing an 
older IBM HTTPD 2.0.47.1, but the machine that is failing is my prod box. It 
works on the dev/test box.

Thanks,
Mark

 
-- 

Georgia: Why am I not doing what they're doing? 

Rube: Because you're doing what you're doing. When it's time for you to do 
something else you'll do that.






-
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] RE: Apache CPU Utilization peaks to 100%

2007-03-29 Thread Boyle Owen
> -Original Message-
> From: Sachin123 [mailto:[EMAIL PROTECTED] 
> Sent: Friday, March 30, 2007 6:55 AM
> To: users@httpd.apache.org
> Subject: [EMAIL PROTECTED] RE: Apache CPU Utilization peaks to 100%
> 
> 
> We are running Apache HTTP Server on a Windows XP machine 
> with 2.79GHZ and 1
> GB RAM ,

So that's a fairly decent desktop PC. It's not exactly an enterprise
level webserver, however.

> Weblogic 9.2 is running on another machine with the same
> configuration as Apache HTTP Server machine and on a third 
> machine which is
> a 2 CPU,2.79 GHZ and 4 GB RAM machine we have Oracle 10g running 
> 
> We are doing a load test with 20 concurrent users .We see the 
> access.log and
> apache is processing g around 140 HTTP Requests ( GET + Post) 
> through and
> forwarding to the Application Server .
> 
> We see that Apache is peaking to 100% where as the 
> Application Server and
> the DB Server remain underutilzed .

That would imply that the webserver is the bottleneck - but what is the
rate in the backend? It is also getting 140 req/sec or is it less? If
less, is there a queue building up at the webserver (ie, are some
clients hanging/timing out)?

> 
> The Application is using JDK 1.5 and Spring Framework is being used .
> The Application does to have complex business logic and POJO 
> classess are
> being used in all the layer 
> Presentation Layer,Business Logic Layer and the DAO Layer.
> 
> The Thread Count We see for Apache is 254
> 
> Why Apache peaks upto 100% ?
> 1. Is it becuase 140 requests per second it processing is too high 

It would seem so.. BTW, it's not the *number* of requests per second,
it's the resources each request demands that counts. If each request
launches an intensive computation then even a low rate could swamp a
server.

> 2. Some Configuration settings need to be changed ?

Check out http://httpd.apache.org/docs/2.0/misc/perf-tuning.html. Note
especially the first note: "The single biggest hardware issue affecting
webserver performance is RAM" - 1GB doesn't sound like an awful lot
these days...

Bear in mind that the problem is n't really the webserver - it just
receives requests and translates them into tasks for the OS. If the task
is simple (eg, fetch a static file) then the performance will be good.
If the task is complex (look up a DB, crunch some data, request
something from another server, process the result, rewrite, faff about,
etc...) then don't expect too much.

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 

> 
> Please suggest 
> 
> Thanks
> Sachin
> 
> 
> Boyle Owen wrote:
> > 
> >> -Original Message-
> >> From: Sachin123 [mailto:[EMAIL PROTECTED] 
> >> Sent: Thursday, March 29, 2007 8:04 AM
> >> To: users@httpd.apache.org
> >> Subject: [EMAIL PROTECTED] Apache CPU Utilization peaks to 100%
> >> 
> >> 
> >> Hi 
> >> 
> >> We are doing a load test for 20 concurrent users with 
> >> Apache 2.00.59 on one machine 
> >> Weblogic 9.2 on another machine 
> >> Oracle 10g on the third machine 
> > 
> > - define "machine" (OS, hardware)
> > - webservers don't really have "users", they handle 
> requests. What kind
> > of requests? How frequent? What kind of back-end activity do the
> > requests generate?
> > 
> > Rgds,
> > Owen Boyle
> > Disclaimer: Any disclaimer attached to this message may be ignored. 
> > 
> >> 
> >> The machine in which  Apache HTTP serveris installed  peaks 
> >> upto 100% and
> >> machines in which Weblogic 9.2 and Oracle 10g is installed 
> are under
> >> utilized .
> >> 
> >> Attached is the http.conf which is being used. 
> >> 
> >> Please suggest what configuration changes can be done to 
> improve the
> >> performance 
> >> 
> >> In Apache Rewrite Engine is on to show the user the freindly 
> >> URL's instead
> >> of the actual URL's Will rewrite take this much CPU
> >> http://www.nabble.com/file/7498/httpd.conf httpd.conf 
> >> -- 
> >> View this message in context: 
> >> http://www.nabble.com/Apache-CPU-Utilization-peaks-to-100--tf3
> > 484568.html#a9727551
> >> 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]
> >>
> >  
> >  
> > This message is for the named person's use only. It may contain
> > confidential, proprietary or legally privileged information. No
> > confidentiality or privilege is waived or lost by any 
> mistransmission. If
> > you receive this message in error, please notify the sender 
> urgently and
> > then immediately delete the message and any copies of it 
> from your system.
> > Please also immediately destroy any hardcopies of the 
> messag

[EMAIL PROTECTED] RE: users Digest 29 Mar 2007 16:03:07 -0000 Issue 2813

2007-03-29 Thread Clarke, James

unsubscribe

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 29 March 2007 17:03
To: users@httpd.apache.org
Subject: users Digest 29 Mar 2007 16:03:07 - Issue 2813


users Digest 29 Mar 2007 16:03:07 - Issue 2813

Topics (messages 71342 through 71371):

httpd.conf question - virtual server- firewall port forwarding
71342 by: Vizion
71343 by: Joshua Slive
71357 by: Vizion
71367 by: Bruce Hyatt

Redirecting to a different physical server
71344 by: nealweston.bellsouth.net
71345 by: Eric DuToit
71346 by: nealweston.bellsouth.net

Still Need Help w. PHP And Apache
71347 by: Mr. Steve Burrus
71348 by: Bill Angus
71349 by: Mr. Steve Burrus
71350 by: William A. Rowe, Jr.
71354 by: Huesser Peter
71363 by: Bruce Hyatt

Apache CPU Utilization peaks to 100%
71351 by: Sachin123
71352 by: Boyle Owen
71353 by: Sachin123

Re: Apache & PHP(myadmin)
71355 by: Warhurst, SI \(Spencer\)
71364 by: Joshua Slive

Configuring  handler for exact location
71356 by: Artem Kuchin
71365 by: Joshua Slive
71368 by: Artem Kuchin
71369 by: Joshua Slive

Complex mod_rewrite URL rewriting - help needed
71358 by: Brice Figureau

Re: ScriptAlias broken with VirtualDocumentRoot?
71359 by: Alberto Giménez
71366 by: Joshua Slive

Relative path with virtual host
71360 by: Ken Loomis
71361 by: Peter Nyamukusa

Apache/2.2.4 (Win32) / mod_proxy_rewrite
71362 by: Clarke, James
71370 by: Clarke, James

mod_ssl question
71371 by: Rodman

Administrivia:

-
To post to the list, e-mail: users@httpd.apache.org To unsubscribe, e-mail: 
[EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--

This email may contain confidential material. If you were not an
intended recipient, please notify the sender and delete all copies.
We may monitor email to and from our network.
This email was sent by a company within the corporate group owned
by Pearson plc, registered office at 80 Strand, London WC2R 0RL,
registered in England and Wales with company number 53723 and
VAT number GB 278 5371 21.

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

2007-03-29 Thread Clarke, James



-Original Message-
From: Dragon [mailto:[EMAIL PROTECTED]
Sent: 29 March 2007 17:17
To: users@httpd.apache.org
Subject: Re: [EMAIL PROTECTED] mod_ssl question

Rodman wrote:
>Hello,
>
>Have a question pertaining to using mod_ssl on one of my virtual sites.

>I am running a web mail application in a directory on one of my sites
>and I was wondering if it would be possible to secure just a particular

>directory and everything under it.  For example, my site is
>www.example.com but I am wanting to secure
>www.example.com\mail.  Can it be possible
>to just use SSL on that particular directory rather than securing an
>entire site.  The reason I am asking is that I am going to use a self
>signed certificate (not going to pay an outrageous price of $800+) and
>I.E. complains about a certificate not being signed by a root
>authority.  I only need a handful of users going to the "\mail"
>directory and I can have them import the certificate so that I.E.
>doesn't complain each time one of them tries to access that directory.

>The public accessing www.example.com doesn't
>need SSL and if I had to turn it on for the whole site, I.E. might
>scare them away when it says the certificate can't be verified...
>
>Thanks guys!
>
>Rodman
 End original message. -

Yes, you can secure any portion of a site, there is no need to do the
whole thing.

Also, there are affordable certificates available. I paid $35 for one
from GoDaddy for a web ticketing system I did for a non-profit event.
VeriSign and their ridiculously inflated pricing is not the only option.

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]

This email may contain confidential material. If you were not an
intended recipient, please notify the sender and delete all copies.
We may monitor email to and from our network.
This email was sent by a company within the corporate group owned
by Pearson plc, registered office at 80 Strand, London WC2R 0RL,
registered in England and Wales with company number 53723 and
VAT number GB 278 5371 21.

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