[us...@httpd] RAM problem w/ multiple Apache processes

2009-05-04 Thread Rex C. Eastbourne
Hi,

I seem to have done something very wrong with my Apache configuration,
but can't figure out what it is. Essentially, each time I launch my
website and start to get traffic, I almost immediately run out of RAM.
Typing "ps faux" gives me the following snippet, where I have around
20 processes started by user www-data:

USER   PID %CPU %MEMVSZ   RSS TTY  STAT START   TIME COMMAND
[...]
root  5065  0.0  1.9 156952  9976 ?Ss   06:26   0:00
/usr/sbin/apache2 -k start
www-data  5069  0.0  4.8 223908 25388 ?S06:26   0:00  \_
/usr/sbin/apache2 -k start
[Around 20 more of these...]
www-data  5164  0.1  4.7 223332 24876 ?        S    06:41   0:00  \_
/usr/sbin/apache2 -k start
www-data  5168  0.0  1.1 156952  6232 ?        S    06:42   0:00  \_
/usr/sbin/apache2 -k start

Any clues about what could be happening here? My 000-default
configuration file (I'm on Ubuntu) just contains a bunch of
VirtualHost and Location directives. I'm happy to provide any
information that might be useful for diagnosing this.

Thanks,

Rex

-
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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[us...@httpd] SSL and Virtual Host

2009-05-04 Thread Asier Ramos
Hello, first i`m sorry about my English...

Second, i explain which is the problem do i have. I have Apache server with
many Virtual Host, one of this Virtual Host has SSL activate and runs ok.
But i have to create another Virtual Host also with SSL but with a different
certificate, is this posible?I tried in my localhost and runs ok, but on a
final server not runs. When try in Firefox https, i have and error of
bad_cert and the error is(el certificado solo es valido para https:\\
www.ejemplo1.com // the certificate is only valid for
http://www.ejemplo1.com) and in the error log gets the following
error: *(13)Permission
denied: file permissions deny server access:*

This is the code of the configuration of the localhost!

*# NAME VIRTUAL HOSTS POR IFACE 1: xx.xxx..xx.115
NameVirtualHost xx.xx.xx.115:80
NameVirtualHost xx.xx.xx.115:443

# NAME VIRTUAL HOSTS POR IFACE 2: xx.xx.xx.116
NameVirtualHost xx.xx.xx.116:80
NameVirtualHost xx.xx.xx.116:443

# ESTE VHOST ES PARA REDIRECCIONA A HTTPS

  ServerNamewww.ejemplo1.com
  ServerAlias ejemplo1.com
  DocumentRoot /var/www/ejemplo1
  Redirect / https://www.ejemplo1.com
  ErrorLog /home/irontec/web_logs/ejemplo1_http-error.log


# ESTE VHOST ES PARA CERTIFICADO SSL

  ServerNamewww.ejemplo1.com
  ServerAlias ejemplo1.com
  DocumentRoot /var/www/ejemplo1
  SSLEngine on
  SSLCertificateFile /etc/apache2/ssl/www.ejemplo1.com.crt
  SSLCertificateKeyFile /etc/apache2/ssl/www.ejemplo1.com.key
  ErrorLog /home/irontec/web_logs/ejemplo1_https-error.log


# ESTE VHOST ES PARA VERSION PRUEBAS

  DocumentRoot /var/www/ejemplo2
  ServerName ejemplo2.miempresa.net
  SSLEngine on
  SSLCertificateFile /etc/apache2/ssl/ejemplo2/certificado-servidor.pem
  SSLCertificateKeyFile /etc/apache2/ssl/ejemplo2/claveprivada.pem
  SSLCACertificateFile /etc/apache2/ssl/ejemplo2/CAXplotacert.pem
  SSLVerifyClient require
  ErrorLog /home/irontec/web_logs/ejemplo2-error.log


# ESTE VHOST ES PARA VERSION PRUEBAS

  DocumentRoot /var/www/ejemplo2
  ServerName ejemplo2.miempresa.net
  ErrorLog /home/irontec/web_logs/ejemplo2-error.log



*


Re: [us...@httpd] SSL and Virtual Host

2009-05-04 Thread Davide Bianchi
Asier Ramos wrote:
> runs ok. But i have to create another Virtual Host also with SSL but
> with a different certificate, is this posible?

Only using a different ip address, otherwise all the SSL sites will use
the same certificate. Is not a problem in apache but in the way HTTPS works.

Davide

-- 
Helping you to shoot yourself in the foot is not in my mission statement.
-- Shmuel (Seymour J.) Metz

-
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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Apache not accepting php

2009-05-04 Thread Igor Galić

Hi Jeff,

> I am trying to install and configure Apache, mySQL, and PHP on a
> Windows
> Vista PC.  I have installed all of the programs, but when I test a
> simple
> php test, I am only seeing the html.  I have modified httpd.conf in
> the
> /conf folder to include: 
>   #
> AddType application/x-compress .Z
> AddType application/x-gzip .gz .tgz
> AddType application/x-httpd-php .php
> #BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
> PHPIniDir "C:/PHP/"
> LoadModule php5_module "C:/PHP/php5apache2_2.dll"
> #
> #END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL

AddType is a very old and grotty hack kind of way of deploying PHP on apache.
Please read http://www.devside.net/articles/php which explains this, and how
to get it right.

Also make sure that your PHP files start with http://at2.php.net/manual/en/ini.core.php#ini.short-open-tag
is set to 1.
 
> Any suggestions would be apprecitated.
> 
> - Jeff

Bye,
Igor

-
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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] SSL and Virtual Host

2009-05-04 Thread Igor Galić

This problem is addressed by newer revisions of TLS:
http://wiki.apache.org/httpd/NameBasedSSLVHostsWithSNI

Most Browsers I've tested understand this, so it shouldn't be an issue.
 
Bye,
Igor

-
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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Default server is overridden by first VirtualHost

2009-05-04 Thread Eric Covener
On Mon, May 4, 2009 at 12:19 AM, Basil Mohamed Gohar
 wrote:

>> The manual explicitly talks about this. If it matches, it will hide
>> the base/default server.
>>
> The thing is, the vhost names do not match.  I type in "beta" and the
> server loads "x".  This is the problem I am having.

There's no comparisons of names at this point, just ips/interfaces and
ports.  If you have a set of *:80 virtualhosts, ip-based selection
occurs early and then name-based selection comes from this subset of
virtualhosts.

That's why the base server is covered up.

-- 
Eric Covener
cove...@gmail.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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] RAM problem w/ multiple Apache processes

2009-05-04 Thread Matus UHLAR - fantomas
On 04.05.09 00:15, Rex C. Eastbourne wrote:
> I seem to have done something very wrong with my Apache configuration,
> but can't figure out what it is. Essentially, each time I launch my
> website and start to get traffic, I almost immediately run out of RAM.

how much of RAM do you have on that machine?

> Typing "ps faux" gives me the following snippet, where I have around
> 20 processes started by user www-data:
> 
> USER   PID %CPU %MEMVSZ   RSS TTY  STAT START   TIME COMMAND
> [...]
> root  5065  0.0  1.9 156952  9976 ?Ss   06:26   0:00
> /usr/sbin/apache2 -k start
> www-data  5069  0.0  4.8 223908 25388 ?S06:26   0:00  \_
> /usr/sbin/apache2 -k start
> [Around 20 more of these...]
> www-data  5164  0.1  4.7 223332 24876 ?        S    06:41   0:00  \_
> /usr/sbin/apache2 -k start
> www-data  5168  0.0  1.1 156952  6232 ?        S    06:42   0:00  \_
> /usr/sbin/apache2 -k start
> 
> Any clues about what could be happening here? My 000-default
> configuration file (I'm on Ubuntu) just contains a bunch of
> VirtualHost and Location directives. I'm happy to provide any
> information that might be useful for diagnosing this.

Do you use ubuntu's apache package(s)? Don't you have too much of useless
modules loaded?

-- 
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
REALITY.SYS corrupted. Press any key to reboot Universe.

-
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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Apache 2.2.10 LDAPS to Active Directory

2009-05-04 Thread Eric Covener
> 
>
> AuthType Basic
>
> AuthName "TCBC"
> AuthLDAPBindDN webuserloo...@user.org
> AuthLDAPBindPassword 1password
> AuthLDAPURL
> "ldaps://ldapurl:636/DC=nm,DC=ad,DC=llssa,DC=org?sAMAccountName?sub?(objectClass=*)"
> Require group CN=Web_TTR,OU=Web Groups,OU=Global Security
> Groups,DC=nm,DC=ad,DC=llssa,DC=org
>
> 

"AuthBasicProvider ldap" is required in 2.2

Your require should be "ldap-group", not just group.



-- 
Eric Covener
cove...@gmail.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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] SSL and Virtual Host

2009-05-04 Thread Asier Ramos
In my configuration i especified that there are two different IP's but only
takes old certificate, no the one!

2009/5/4 Igor Galić 

>
> This problem is addressed by newer revisions of TLS:
> http://wiki.apache.org/httpd/NameBasedSSLVHostsWithSNI
>
> Most Browsers I've tested understand this, so it shouldn't be an issue.
>
> Bye,
> Igor
>
> -
> 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: users-unsubscr...@httpd.apache.org
>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


Re: [us...@httpd] Apache not accepting php

2009-05-04 Thread Matus UHLAR - fantomas
> > I am trying to install and configure Apache, mySQL, and PHP on a
> > Windows
> > Vista PC.  I have installed all of the programs, but when I test a
> > simple
> > php test, I am only seeing the html.  I have modified httpd.conf in
> > the
> > /conf folder to include: 
> >   #
> > AddType application/x-compress .Z
> > AddType application/x-gzip .gz .tgz
> > AddType application/x-httpd-php .php
> > #BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
> > PHPIniDir "C:/PHP/"
> > LoadModule php5_module "C:/PHP/php5apache2_2.dll"
> > #
> > #END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL

Did you add directives that are loading PHP module?

On 04.05.09 08:49, Igor Galić wrote:
> AddType is a very old and grotty hack kind of way of deploying PHP on apache.

Bug it usually works and PHP developers don't seem to like changing it...

> Please read http://www.devside.net/articles/php which explains this, and how
> to get it right.
> 
> Also make sure that your PHP files start with  Or that 
> http://at2.php.net/manual/en/ini.core.php#ini.short-open-tag
> is set to 1.


-- 
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
"The box said 'Requires Windows 95 or better', so I bought a Macintosh".

-
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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[us...@httpd] httpd service not starting on Windows 2008 (64bit) through Microsoft Failover Cluster

2009-05-04 Thread Raja Shekar CS
Hi !

I am facing an issue in bringing up httpd (2.2.10) configured in Microsoft
Failover Cluster (MSCS) on Windows 2008 64 bit system.

This problem is seen only on Windows 2008 64bit system and through Microsoft
Failover Cluster only. The service starts fine on the same system outside
when started directly from Service Control Manager.

Could you please let me know if you have seen similar issue, and know of any
work around or solution ?

Error noticed:

When the service is started from Failover Cluster manager, ~20 events are
seen in event viewer (basically printing the syntax help spread over many
events):

Description:
The Apache service named  reported the following error:
>>> Usage: C:\\Program Files (x86)\\DFM\\bin\\httpd.exe [-D name] [-d
directory] [-f file] .
Event Xml:
http://schemas.microsoft.com/win/2004/08/events/event";>
  

 ...
  
  
The Apache service named


reported the following error:>>>
Usage: C:\\Program Files (x86)\\DFM\\bin\\httpd.exe [-D name] [-d
directory] [-f file]
  


My guess is that httpd is not accepting "-k runservice" argument for some
reason and printing the syntax help.
I read on earlier mail on apache mail list that "-k runservice" is accepted
by httpd only if it is started by service control manager as part of the
kernel:

http://markmail.org/message/4irgpoeth7ccl3c5

I have checked with Microsoft Support, and they confirmed that failover
cluster starts the service by using the service control manager and not
directly. Also, since it works fine on Windows 2008 32bit system, I am
really confused.

What works:

- starting the service directly from Service Control Manager (on the same
system)
- starting httpd.exe as an application (not as a service) on the same system
through Failover Cluster Manager
- starting the service from Failover Cluster Server or Service Control
Manager on Windows 2008 32bit system, or Windows 2003

httpd version - 2.2.10
Windows Version - Microsoft Windows Server 2008 Enterprise Service Pack 1
(Build 6001) x64 based
The issue was seen on multiple cluster setups and also on Windows 2008 64bit
VMs.

Any help is greatly appreciated.
-- 
~ Raj ~


Re: [us...@httpd] httpd service not starting on Windows 2008 (64bit) through Microsoft Failover Cluster

2009-05-04 Thread Eric Covener
On Mon, May 4, 2009 at 7:57 AM, Raja Shekar CS  wrote:
> I am facing an issue in bringing up httpd (2.2.10) configured in Microsoft
> Failover Cluster (MSCS) on Windows 2008 64 bit system.
 Usage: C:\\Program Files (x86)\\DFM\\bin\\httpd.exe [-D name] [-d

Tried simplifying the path?

-- 
Eric Covener
cove...@gmail.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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Log Filter based on client ip ?

2009-05-04 Thread André Warnier

Bastien LEGRAS wrote:

Hello,

Is there a way to filter errors issued from a specific client ip ? i.e. my
loadbalancers are testing my https urls but cannot perform SSL handshake so
I have lot of errors like that :

[Mon May 04 08:24:24 2009] [info] [client x.x.x.x] (70014)End of file found:
SSL handshake interrupted by system [Hint: Stop button pressed in browser?!]

I'd like to prevent errors from a specific client IP from being logged.


Which specific log are you talking about ?
(and under which Apache version, if Apache this is)

As far as the access log is concerned, you can use conditional logging,
(http://httpd.apache.org/docs/2.2/logs.html  Conditional Logs)
 or piped logs, see below.  But I don't think that this works for the 
log you indicate above.


Generally speaking however, I would suggest that the easiest (and 
safest) solution could be to just "grep" these lines out after the fact.
If you would filter these out too widely, you also have the risk of 
filtering out really important messages some day, and never know about them.


For the Apache access log, you can also use a "piped" log, going through 
some program before being written to the logfile. I guess that this 
program could be grep.

http://httpd.apache.org/docs/2.2/logs.html#piped


-
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: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] RAM problem w/ multiple Apache processes

2009-05-04 Thread Rex C. Eastbourne
2009/5/4 Matus UHLAR - fantomas :
> [...]
> how much of RAM do you have on that machine?
>

512 MB. Not a lot, I know, but I had thought it would be sufficient to
run a website with low traffic like mine.

>
> Do you use ubuntu's apache package(s)? Don't you have too much of useless
> modules loaded?
>

Through apt-get I have installed Apache2 and mod_python. I don't have
many useless modules loaded; baseline memory usage is only around 60
MB.

Any ideas? Is it normal for there to be dozens of Apache processes like this?

Thanks,

Rex

-
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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Default server is overridden by first VirtualHost

2009-05-04 Thread Basil Mohamed Gohar
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/04/2009 06:48 PM, Eric Covener wrote:
> On Mon, May 4, 2009 at 12:19 AM, Basil Mohamed Gohar
>  wrote:
> 
>>> The manual explicitly talks about this. If it matches, it will hide
>>> the base/default server.
>>>
>> The thing is, the vhost names do not match.  I type in "beta" and the
>> server loads "x".  This is the problem I am having.
> 
> There's no comparisons of names at this point, just ips/interfaces and
> ports.  If you have a set of *:80 virtualhosts, ip-based selection
> occurs early and then name-based selection comes from this subset of
> virtualhosts.
> 
> That's why the base server is covered up.
> 
Thank you very much for explaining this!
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAkn/CXwACgkQaVgOCFr0s2IrSwCeOZU4FgJU1MAggPl4eDXoS2bb
hGIAnRYNf8cNngvpAUu5V+ryZvfnsBoh
=csD3
-END PGP SIGNATURE-

-
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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] RAM problem w/ multiple Apache processes

2009-05-04 Thread Jan G.B.
2009/5/4 Rex C. Eastbourne :
> 2009/5/4 Matus UHLAR - fantomas :
>> [...]
>> how much of RAM do you have on that machine?
>>
>
> 512 MB. Not a lot, I know, but I had thought it would be sufficient to
> run a website with low traffic like mine.
>
>>
>> Do you use ubuntu's apache package(s)? Don't you have too much of useless
>> modules loaded?
>>
>
> Through apt-get I have installed Apache2 and mod_python. I don't have
> many useless modules loaded; baseline memory usage is only around 60
> MB.
>
> Any ideas? Is it normal for there to be dozens of Apache processes like this?
>
> Thanks,
>
> Rex
>




Hi Rex,

it's quite normal: as more visitors come along, more apache processess
will be spawned. You can set up how much processes are reserved, how
many are allowed and so on. Just have a look in your server config.

One apache process will consume as much RAM as your most complex page
will require to render. So if you serve different, static and simple
HTML files 1 and one php script using 200MB of ram, one process
will use 200MB at least.

You should tweak your config by calculating how many processes your
server will handle with the installed application on it.
You'll find a lot of pages describing the optimization process and the
needed config-options. Try Google or look into the apache docs! All
options and the stuff I was writing is well described there.

Bye, Jan

-
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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] RAM problem w/ multiple Apache processes

2009-05-04 Thread Prasanna Ram Venkatachalam
Hi Rex, Jan told all in detail i guess. I was about to start typing for you.
Anyway, just an addition to that, try googling about Pre-fork and worker-MPM
mode. In the second, you can limit the processes by configuring more threads
for each process (threads serve requests here). But there might be an
increase in CPU %.

Regards
Prasanna Ram


On Mon, May 4, 2009 at 9:00 PM, Jan G.B.  wrote:

> 2009/5/4 Rex C. Eastbourne :
> > 2009/5/4 Matus UHLAR - fantomas :
> >> [...]
> >> how much of RAM do you have on that machine?
> >>
> >
> > 512 MB. Not a lot, I know, but I had thought it would be sufficient to
> > run a website with low traffic like mine.
> >
> >>
> >> Do you use ubuntu's apache package(s)? Don't you have too much of
> useless
> >> modules loaded?
> >>
> >
> > Through apt-get I have installed Apache2 and mod_python. I don't have
> > many useless modules loaded; baseline memory usage is only around 60
> > MB.
> >
> > Any ideas? Is it normal for there to be dozens of Apache processes like
> this?
> >
> > Thanks,
> >
> > Rex
> >
>
>
>
>
> Hi Rex,
>
> it's quite normal: as more visitors come along, more apache processess
> will be spawned. You can set up how much processes are reserved, how
> many are allowed and so on. Just have a look in your server config.
>
> One apache process will consume as much RAM as your most complex page
> will require to render. So if you serve different, static and simple
> HTML files 1 and one php script using 200MB of ram, one process
> will use 200MB at least.
>
> You should tweak your config by calculating how many processes your
> server will handle with the installed application on it.
> You'll find a lot of pages describing the optimization process and the
> needed config-options. Try Google or look into the apache docs! All
> options and the stuff I was writing is well described there.
>
> Bye, Jan
>
> -
> 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: users-unsubscr...@httpd.apache.org
>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


Re: [us...@httpd] RAM problem w/ multiple Apache processes

2009-05-04 Thread Prasanna Ram Venkatachalam
And yes.. For worker MPM you need to compile apache with that option
(-with-mpm=worker). I forgot to add that!!

Prasanna Ram


On Mon, May 4, 2009 at 9:06 PM, Prasanna Ram Venkatachalam <
vpra...@gmail.com> wrote:

> Hi Rex, Jan told all in detail i guess. I was about to start typing for
> you. Anyway, just an addition to that, try googling about Pre-fork and
> worker-MPM mode. In the second, you can limit the processes by configuring
> more threads for each process (threads serve requests here). But there might
> be an increase in CPU %.
>
> Regards
> Prasanna Ram
>
>
>   On Mon, May 4, 2009 at 9:00 PM, Jan G.B. wrote:
>
>> 2009/5/4 Rex C. Eastbourne :
>> > 2009/5/4 Matus UHLAR - fantomas :
>> >> [...]
>> >> how much of RAM do you have on that machine?
>> >>
>> >
>> > 512 MB. Not a lot, I know, but I had thought it would be sufficient to
>> > run a website with low traffic like mine.
>> >
>> >>
>> >> Do you use ubuntu's apache package(s)? Don't you have too much of
>> useless
>> >> modules loaded?
>> >>
>> >
>> > Through apt-get I have installed Apache2 and mod_python. I don't have
>> > many useless modules loaded; baseline memory usage is only around 60
>> > MB.
>> >
>> > Any ideas? Is it normal for there to be dozens of Apache processes like
>> this?
>> >
>> > Thanks,
>> >
>> > Rex
>> >
>>
>>
>>
>>
>> Hi Rex,
>>
>> it's quite normal: as more visitors come along, more apache processess
>> will be spawned. You can set up how much processes are reserved, how
>> many are allowed and so on. Just have a look in your server config.
>>
>> One apache process will consume as much RAM as your most complex page
>> will require to render. So if you serve different, static and simple
>> HTML files 1 and one php script using 200MB of ram, one process
>> will use 200MB at least.
>>
>> You should tweak your config by calculating how many processes your
>> server will handle with the installed application on it.
>> You'll find a lot of pages describing the optimization process and the
>> needed config-options. Try Google or look into the apache docs! All
>> options and the stuff I was writing is well described there.
>>
>> Bye, Jan
>>
>> -
>> 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: users-unsubscr...@httpd.apache.org
>>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
>> For additional commands, e-mail: users-h...@httpd.apache.org
>>
>>
>


[us...@httpd] Log Filter based on client ip ?

2009-05-04 Thread Bastien LEGRAS
Hello,

Is there a way to filter errors issued from a specific client ip ? i.e. my
loadbalancers are testing my https urls but cannot perform SSL handshake so
I have lot of errors like that :

[Mon May 04 08:24:24 2009] [info] [client x.x.x.x] (70014)End of file found:
SSL handshake interrupted by system [Hint: Stop button pressed in browser?!]

I'd like to prevent errors from a specific client IP from being logged.

Thanks

-- 
Cordialement / Best Regards

Bastien LEGRAS






This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is 
intended only for the person to whom it is addressed. If you are not the 
intended recipient, you are not authorized to 
read, print, retain, copy, disseminate, distribute, or use this message or any 
part thereof. If you receive this message 
in error, please notify the sender immediately and delete all copies of this 
message.


Re: [us...@httpd] SSL and Virtual Host

2009-05-04 Thread Krist van Besien
2009/5/4 Asier Ramos :
> In my configuration i especified that there are two different IP's but only
> takes old certificate, no the one!

Does your second hostname resolve to the second IP?

Krist

-- 
krist.vanbes...@gmail.com
kr...@vanbesien.org
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

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



[us...@httpd] config httpd for php5 howto

2009-05-04 Thread Teun
As many others, I have the same problem in ubuntu lamp. That the apache 
do not pars php files, but give a download action. This action is wrong. 
Caus it must pars php files. It do not. After changing some files it 
shows only the tekst of the php code. I still can not find the solution.

Please wat is the actual solution?

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: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[us...@httpd] How do I play out a request ??

2009-05-04 Thread ricardo13

Hi all,

In this 
http://www.nabble.com/RewriteMap-PRG-By-Example-Using-C-to23283305.html link
, I use a external program (in C) to rewrite URLs.

In program, when I typed in browser localhost/1, or localhost/2, or
localhost/3, they're mapped to a resource (a page).

I have a reverse proxy then, when I typed in browser localhost/1, or
localhost/2, or localhost/3, the request are dispatch to other machines
(backend).
Now, I would like of play out a request when, for example, the URL to be /4.
URLs (localhost/4) to discard (not dispatch to backend).
-- 
View this message in context: 
http://www.nabble.com/How-do-I-play-out-a-request-tp23376152p23376152.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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



RE: [us...@httpd] SSL and Virtual Host

2009-05-04 Thread inas inassen

If you want to use subdomain based certificat and virtual host, please read 
this doc, it will help you understand the case you are experiencing and the 
solution you can adopte:

 

http://fusesource.com/docs/framework/2.1/security/i382183.html

http://www.verisign.com/ssl/ssl-information-center/ssl-licensing/index.html

 

Inas.
 


From: uthop...@gmail.com
Date: Mon, 4 May 2009 09:27:46 +0200
To: users@httpd.apache.org
Subject: [us...@httpd] SSL and Virtual Host

Hello, first i`m sorry about my English...

Second, i explain which is the problem do i have. I have Apache server with 
many Virtual Host, one of this Virtual Host has SSL activate and runs ok. But i 
have to create another Virtual Host also with SSL but with a different 
certificate, is this posible?I tried in my localhost and runs ok, but on a 
final server not runs. When try in Firefox https, i have and error of bad_cert 
and the error is(el certificado solo es valido para https:\\www.ejemplo1.com // 
the certificate is only valid for http://www.ejemplo1.com) and in the error log 
gets the following error: (13)Permission denied: file permissions deny server 
access:

This is the code of the configuration of the localhost!

# NAME VIRTUAL HOSTS POR IFACE 1: xx.xxx..xx.115
NameVirtualHost xx.xx.xx.115:80
NameVirtualHost xx.xx.xx.115:443

# NAME VIRTUAL HOSTS POR IFACE 2: xx.xx.xx.116 
NameVirtualHost xx.xx.xx.116:80
NameVirtualHost xx.xx.xx.116:443

# ESTE VHOST ES PARA REDIRECCIONA A HTTPS

  ServerNamewww.ejemplo1.com
  ServerAlias ejemplo1.com
  DocumentRoot /var/www/ejemplo1
  Redirect / https://www.ejemplo1.com
  ErrorLog /home/irontec/web_logs/ejemplo1_http-error.log


# ESTE VHOST ES PARA CERTIFICADO SSL

  ServerNamewww.ejemplo1.com
  ServerAlias ejemplo1.com
  DocumentRoot /var/www/ejemplo1 
  SSLEngine on
  SSLCertificateFile /etc/apache2/ssl/www.ejemplo1.com.crt
  SSLCertificateKeyFile /etc/apache2/ssl/www.ejemplo1.com.key
  ErrorLog /home/irontec/web_logs/ejemplo1_https-error.log


# ESTE VHOST ES PARA VERSION PRUEBAS

  DocumentRoot /var/www/ejemplo2
  ServerName ejemplo2.miempresa.net
  SSLEngine on
  SSLCertificateFile /etc/apache2/ssl/ejemplo2/certificado-servidor.pem
  SSLCertificateKeyFile /etc/apache2/ssl/ejemplo2/claveprivada.pem
  SSLCACertificateFile /etc/apache2/ssl/ejemplo2/CAXplotacert.pem
  SSLVerifyClient require
  ErrorLog /home/irontec/web_logs/ejemplo2-error.log


# ESTE VHOST ES PARA VERSION PRUEBAS

  DocumentRoot /var/www/ejemplo2
  ServerName ejemplo2.miempresa.net
  ErrorLog /home/irontec/web_logs/ejemplo2-error.log





_
Découvrez Windows Live Spaces et créez votre site Web perso en quelques clics !
http://spaces.live.com/signup.aspx

Re: [us...@httpd] config httpd for php5 howto

2009-05-04 Thread Eric Covener
On Mon, May 4, 2009 at 4:32 PM, Teun  wrote:
> As many others, I have the same problem in ubuntu lamp. That the apache do
> not pars php files, but give a download action. This action is wrong. Caus
> it must pars php files. It do not. After changing some files it shows only
> the tekst of the php code. I still can not find the solution.

http://wiki.apache.org/httpd/PHPDownload


-- 
Eric Covener
cove...@gmail.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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[us...@httpd] serving multiple application servers under one domain name.

2009-05-04 Thread Ahmedkafi


Hello everybody,

I have one domain name (www.example.com).

I also have 3 different application all running under their own tomcat
instances. (each application has its own tomcat).

All 3 instance of tomcat use Apache Server for accepting requests.

In httpd.conf Each tomcat instance has a corresponding virtual host.

Everything works fine if I use different domain name for each Virtual host
for exampel :

ServerName example.com



ServerName anotherexample.com


ServerName lastexample.com


but what I want to have one domain name www.example.com to serve all three
applications. for example something like:


ServerName example.com/application1



ServerName example.com/application2


ServerName example.com/application3


All applications are independent each has its own database,web app etc.

Please help. Your help is appreciated thanks

-- 
View this message in context: 
http://www.nabble.com/serving-multiple--application-servers-under-one-domain-name.-tp23377360p23377360.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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[us...@httpd] Unneeded Modules

2009-05-04 Thread Jason Todd Slack-Moehrle

Hi All,

I am doing basic webserving, HTML, PHP, ColdFusion, some credit card  
processing, some CGI (for Blosxom), virtual hosting, mysql, etc


I see that Apache is loading a ton of modules, what can I safely get  
rid of?


LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_alias_module modules/mod_authn_alias.so
LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
#LoadModule ldap_module modules/mod_ldap.so
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
LoadModule include_module modules/mod_include.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule logio_module modules/mod_logio.so
LoadModule env_module modules/mod_env.so
LoadModule ext_filter_module modules/mod_ext_filter.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule expires_module modules/mod_expires.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule headers_module modules/mod_headers.so
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mime.so
#LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule info_module modules/mod_info.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so
#LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule cache_module modules/mod_cache.so
LoadModule suexec_module modules/mod_suexec.so
LoadModule disk_cache_module modules/mod_disk_cache.so
LoadModule file_cache_module modules/mod_file_cache.so
LoadModule mem_cache_module modules/mod_mem_cache.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule version_module modules/mod_version.so


-
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: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Unneeded Modules

2009-05-04 Thread William A. Rowe, Jr.
Jason Todd Slack-Moehrle wrote:
> 
> I see that Apache is loading a ton of modules, what can I safely get rid
> of?

Get rid of all the modules which don't affect the configuration or the
behavior of your server.  The easiest way to determine this is to comment
one out and use apachectl -t to find out if you broke 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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] config httpd for php5 howto

2009-05-04 Thread André Warnier

Teun wrote:
As many others, I have the same problem in ubuntu lamp. That the apache 
do not pars php files, but give a download action. This action is wrong. 
Caus it must pars php files. It do not. After changing some files it 
shows only the tekst of the php code. I still can not find the solution.

Please wat is the actual solution?


#1: Apache does not come with PHP.  Ubuntu lamp may well do, but see #2.

#2: this is the Apache support list, not the ubuntu lamp support list.
If the ubuntu lamp package is broken, this does not have much to do with 
Apache. You should complain on the ubuntu or lamp list.


#3 : as you mention yourself, "as many others".  If you had made the 
small effort to search this list just a few responses ago, you would 
probably already have found the solution.

It may have been more productive than just changing some files.


-
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: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] serving multiple application servers under one domain name.

2009-05-04 Thread André Warnier

Ahmedkafi wrote:


Hello everybody,

I have one domain name (www.example.com).

I also have 3 different application all running under their own tomcat
instances. (each application has its own tomcat).

All 3 instance of tomcat use Apache Server for accepting requests.

In httpd.conf Each tomcat instance has a corresponding virtual host.

Everything works fine if I use different domain name for each Virtual host
for exampel :

ServerName example.com



ServerName anotherexample.com


ServerName lastexample.com


but what I want to have one domain name www.example.com to serve all three
applications. for example something like:


ServerName example.com/application1



ServerName example.com/application2


ServerName example.com/application3


All applications are independent each has its own database,web app etc.


What do you use as a "connector" to pass requests from Apache to Tomcat ?

> ServerName example.com/application1
does not work.  A ServerName is a DNS host name.
/application is the URI of a request.

You need something like

> 
> ServerName example.com
  JkMount /application1 worker1
  JkMount /application1/* worker1
  JkMount /application2 worker2
  JkMount /application2/* worker2
  ...
> 

(That's with mod_jk as a connector.)


-
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: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Unneeded Modules

2009-05-04 Thread dan trainor
On Mon, May 4, 2009 at 6:35 PM, William A. Rowe, Jr. wrote:

> Jason Todd Slack-Moehrle wrote:
> >
> > I see that Apache is loading a ton of modules, what can I safely get rid
> > of?
>
> Get rid of all the modules which don't affect the configuration or the
> behavior of your server.  The easiest way to determine this is to comment
> one out and use apachectl -t to find out if you broke it.
>

Even easier might be to comment them all out, and use apachectl -t to see if
you broke it.  Depends on how much your time is worth.

Thanks
-dant


Re: [us...@httpd] config httpd for php5 howto

2009-05-04 Thread Teun

Thanks for help.


André Warnier schreef:

Teun wrote:
As many others, I have the same problem in ubuntu lamp. That the 
apache do not pars php files, but give a download action. This action 
is wrong. Caus it must pars php files. It do not. After changing some 
files it shows only the tekst of the php code. I still can not find 
the solution.

Please wat is the actual solution?


#1: Apache does not come with PHP.  Ubuntu lamp may well do, but see #2.

#2: this is the Apache support list, not the ubuntu lamp support list.
If the ubuntu lamp package is broken, this does not have much to do 
with Apache. You should complain on the ubuntu or lamp list.


#3 : as you mention yourself, "as many others".  If you had made the 
small effort to search this list just a few responses ago, you would 
probably already have found the solution.

It may have been more productive than just changing some files.


-
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: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org





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



Re: [us...@httpd] Unneeded Modules

2009-05-04 Thread John Hudak
I would comment all of them out and see what is broken, then begin
adding them in.  To cut down on the randomess of the exercise, you
might look at the source code to see what the modules actually do.

BTW, how are you doing the credit card processing?  I'd be interested
in learning about this.  Instead of hijacking this thread, you can
reply to me directly unless others would find it useful.

Thanks
John


On Mon, May 4, 2009 at 6:21 PM, Jason Todd Slack-Moehrle
 wrote:
> Hi All,
>
> I am doing basic webserving, HTML, PHP, ColdFusion, some credit card
> processing, some CGI (for Blosxom), virtual hosting, mysql, etc
>
> I see that Apache is loading a ton of modules, what can I safely get rid of?
>
> LoadModule auth_basic_module modules/mod_auth_basic.so
> LoadModule auth_digest_module modules/mod_auth_digest.so
> LoadModule authn_file_module modules/mod_authn_file.so
> LoadModule authn_alias_module modules/mod_authn_alias.so
> LoadModule authn_anon_module modules/mod_authn_anon.so
> LoadModule authn_dbm_module modules/mod_authn_dbm.so
> LoadModule authn_default_module modules/mod_authn_default.so
> LoadModule authz_host_module modules/mod_authz_host.so
> LoadModule authz_user_module modules/mod_authz_user.so
> LoadModule authz_owner_module modules/mod_authz_owner.so
> LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
> LoadModule authz_dbm_module modules/mod_authz_dbm.so
> LoadModule authz_default_module modules/mod_authz_default.so
> #LoadModule ldap_module modules/mod_ldap.so
> LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
> LoadModule include_module modules/mod_include.so
> LoadModule log_config_module modules/mod_log_config.so
> LoadModule logio_module modules/mod_logio.so
> LoadModule env_module modules/mod_env.so
> LoadModule ext_filter_module modules/mod_ext_filter.so
> LoadModule mime_magic_module modules/mod_mime_magic.so
> LoadModule expires_module modules/mod_expires.so
> LoadModule deflate_module modules/mod_deflate.so
> LoadModule headers_module modules/mod_headers.so
> LoadModule usertrack_module modules/mod_usertrack.so
> LoadModule setenvif_module modules/mod_setenvif.so
> LoadModule mime_module modules/mod_mime.so
> #LoadModule dav_module modules/mod_dav.so
> LoadModule status_module modules/mod_status.so
> LoadModule autoindex_module modules/mod_autoindex.so
> LoadModule info_module modules/mod_info.so
> LoadModule dav_fs_module modules/mod_dav_fs.so
> LoadModule vhost_alias_module modules/mod_vhost_alias.so
> LoadModule negotiation_module modules/mod_negotiation.so
> LoadModule dir_module modules/mod_dir.so
> LoadModule actions_module modules/mod_actions.so
> LoadModule speling_module modules/mod_speling.so
> LoadModule userdir_module modules/mod_userdir.so
> LoadModule alias_module modules/mod_alias.so
> LoadModule rewrite_module modules/mod_rewrite.so
> #LoadModule proxy_module modules/mod_proxy.so
> LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
> LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
> LoadModule proxy_http_module modules/mod_proxy_http.so
> LoadModule proxy_connect_module modules/mod_proxy_connect.so
> LoadModule cache_module modules/mod_cache.so
> LoadModule suexec_module modules/mod_suexec.so
> LoadModule disk_cache_module modules/mod_disk_cache.so
> LoadModule file_cache_module modules/mod_file_cache.so
> LoadModule mem_cache_module modules/mod_mem_cache.so
> LoadModule cgi_module modules/mod_cgi.so
> LoadModule version_module modules/mod_version.so
>
>
> -
> 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: users-unsubscr...@httpd.apache.org
>  "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>

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



Re: [us...@httpd] Unneeded Modules

2009-05-04 Thread Eric Covener
On Mon, May 4, 2009 at 6:35 PM, William A. Rowe, Jr.
 wrote:
> Jason Todd Slack-Moehrle wrote:
>>
>> I see that Apache is loading a ton of modules, what can I safely get rid
>> of?
>
> Get rid of all the modules which don't affect the configuration or the
> behavior of your server.  The easiest way to determine this is to comment
> one out and use apachectl -t to find out if you broke it.
>

mod_info in 2.2 can help here as well.

-- 
Eric Covener
cove...@gmail.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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



RE: [us...@httpd] Apache 2.2.10 LDAPS to Active Directory

2009-05-04 Thread Robert Gonzales
I will try this tomorrow morning.
But what about the question about this? Does anyone know?

I am in the process of configuring a windows system with apache 2.2.10
installed on it. I have a few questions before we get started.
1.  Is "LoadModule authnz_ldap_module modules/mod_authnz_ldap.so"
the same as  mod_auth_ldap?
2.  Will mod_authnz_ldap.so work on windows server 2003 with apache
2.2.10 installed?
3.  Do I need to specify DN in the AuthLDAPURL and does it need to
match the require group directive?



-Original Message-
From: Eric Covener [mailto:cove...@gmail.com] 
Sent: Monday, May 04, 2009 4:01 AM
To: users@httpd.apache.org
Subject: Re: [us...@httpd] Apache 2.2.10 LDAPS to Active Directory

> 
>
> AuthType Basic
>
> AuthName "TCBC"
> AuthLDAPBindDN webuserloo...@user.org
> AuthLDAPBindPassword 1password
> AuthLDAPURL
>
"ldaps://ldapurl:636/DC=nm,DC=ad,DC=llssa,DC=org?sAMAccountName?sub?(obj
ectClass=*)"
> Require group CN=Web_TTR,OU=Web Groups,OU=Global Security
> Groups,DC=nm,DC=ad,DC=llssa,DC=org
>
> 

"AuthBasicProvider ldap" is required in 2.2

Your require should be "ldap-group", not just group.



-- 
Eric Covener
cove...@gmail.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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org


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



Re: [us...@httpd] Unneeded Modules

2009-05-04 Thread Jonathan Zuckerman
On Mon, May 4, 2009 at 5:17 PM, Eric Covener  wrote:
> On Mon, May 4, 2009 at 6:35 PM, William A. Rowe, Jr.
>  wrote:
>> Jason Todd Slack-Moehrle wrote:
>>>
>>> I see that Apache is loading a ton of modules, what can I safely get rid
>>> of?
>>
>> Get rid of all the modules which don't affect the configuration or the
>> behavior of your server.  The easiest way to determine this is to comment
>> one out and use apachectl -t to find out if you broke it.
>>
>
> mod_info in 2.2 can help here as well.
>
> --
> Eric Covener
> cove...@gmail.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: users-unsubscr...@httpd.apache.org
>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>

Would you mind replying back with a very brief post-mortem when you're
done with this?  If you can figure out what if any the performance
gain was and whether you considered this something that every apache
administrator should consider doing..

-
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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] config httpd for php5 howto

2009-05-04 Thread Jonathan Zuckerman
On Mon, May 4, 2009 at 4:29 PM, Teun  wrote:
> Thanks for help.
>
>
> André Warnier schreef:
>>
>> Teun wrote:
>>>
>>> As many others, I have the same problem in ubuntu lamp. That the apache
>>> do not pars php files, but give a download action. This action is wrong.
>>> Caus it must pars php files. It do not. After changing some files it shows
>>> only the tekst of the php code. I still can not find the solution.
>>> Please wat is the actual solution?
>>>
>> #1: Apache does not come with PHP.  Ubuntu lamp may well do, but see #2.
>>
>> #2: this is the Apache support list, not the ubuntu lamp support list.
>> If the ubuntu lamp package is broken, this does not have much to do with
>> Apache. You should complain on the ubuntu or lamp list.
>>
>> #3 : as you mention yourself, "as many others".  If you had made the small
>> effort to search this list just a few responses ago, you would probably
>> already have found the solution.
>> It may have been more productive than just changing some files.
>>
>>
>> -
>> 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: users-unsubscr...@httpd.apache.org
>>  "   from the digest: users-digest-unsubscr...@httpd.apache.org
>> For additional commands, e-mail: users-h...@httpd.apache.org
>>
>>
>
>
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>  "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>

I'd also like to add that LAMP is far from broken on Ubuntu, I set it
up in literally 30 seconds utilizing only sudo apt-get install.  You
probably need to install libapache2-mod-php5

-
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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[us...@httpd] jk2 configuration problem

2009-05-04 Thread Arvin S
Hi,
 
I am trying to get basic loadbalancing using an apache web server and two 
tomcat servers in remote machines.
I am using windows 2003 server as the OS for all the mcahines.
 
I have installed Apache 2.2 - using apache_2.2.11-win32-x86-openssl-0.9.8i.msi.
I downloaded mod_jk-1.2.28-httpd-2.2.3.so. 
Somewhere I read, that I need to rename it to mod_jk.so and put it under the 
modules directory of Apache server.
Other places, I read that there is supposed to be a DLL for windows that needs 
to be placed. 
I am confused, I dnt see any DLLs in the apache server that seems to be working 
fine in windows 2003. Do I need a DLL for the mod_jk?
 
I am looking at this article - 
http://www.javaworld.com/javaworld/jw-12-2004/jw-1220-tomcat.html?page=1#resources
 
and I am stuck. 
 
This article does not talk about configuring the  httpd.conf. (in fact it 
mentions httpd2.conf, which is not there in my server conf directory, I have 
httpd.conf)
 
Is there any link to detailed step by step instructions on setting this up?
 
Thanks in advance
-Arvin