apache2: client denied by server configuration

2006-12-13 Thread Alexander Feil

Hallo,


Ich bekomme des öfteren einen 403 (Forbidden) wenn auf einer Seite  
viele Links anklicke.

Im Error Log taucht dann sowas auf:


---%---
[Tue Dec 12 10:42:29 2006] [error] [client 85.182.125.43] client  
denied by server configuration: /var/www/virtual/site1/htdocs/alt/ 
sites/static.php

[...]
---%---


Userrechte sind soweit richtig gesetzt. Die Vhosts sind wie folgt  
konfiguriert:


---%---
[...]
Directory /var/www/virtual/site1/htdocs
   AllowOverride None
   Order allow,deny
   Allow from all
/Directory
[...]
---%---

Das passiert eigentlich bei allen VHosts. Erst dachte ich, der Apache  
generiert zuwenig Prozesse und kommt daher nicht hinterher. Aber ich  
denke dann würden Timeouts produziert und nicht Forbiddens...


Hat jemand einen Tipp für mich?


Debian srage
Apache/2.0.54
PHP 4.3.10-18


Viele Grüße,
Alexander



Alexander Feil




smime.p7s
Description: S/MIME cryptographic signature


Re: apache2: client denied by server configuration

2006-12-13 Thread Alexander Feil


Am 13.12.2006 um 16:07 schrieb Vladislav Vorobiev:


Am 13.12.06 schrieb Alexander Feil [EMAIL PROTECTED]:

Hallo,


Ich bekomme des öfteren einen 403 (Forbidden) wenn auf einer Seite
viele Links anklicke.
Im Error Log taucht dann sowas auf:


---% 
---

[Tue Dec 12 10:42:29 2006] [error] [client 85.182.125.43] client
denied by server configuration: /var/www/virtual/site1/htdocs/alt/
sites/static.php
[...]
---% 
---



Userrechte sind soweit richtig gesetzt. Die Vhosts sind wie folgt
konfiguriert:

---% 
---

[...]
Directory /var/www/virtual/site1/htdocs
AllowOverride None
Order allow,deny
Allow from all
/Directory
[...]
---% 
---


Das passiert eigentlich bei allen VHosts. Erst dachte ich, der Apache
generiert zuwenig Prozesse und kommt daher nicht hinterher. Aber ich
denke dann würden Timeouts produziert und nicht Forbiddens...

Hat jemand einen Tipp für mich?


Schon wieder. Wer diesen Rätzel löst bekommt 5 Punkte. :)
Ich habs nicht geschaft und den Apache2 selbst kompiliert...



Tatsächlich?
Das wäre schade. Der sinn des Paketmanagers wäre futsch. Bei allen  
Postings im Archiv mit demselben Problem war die Lösung immer ein  
Misskonfigurierter VHost. Bei mir IMHO ja nicht.


Würde ein vorzeitiges Upgrade zu Etch mein Problem beheben ?




smime.p7s
Description: S/MIME cryptographic signature


[EMAIL PROTECTED] mod_auth_ldap

2006-12-13 Thread Malka Cymbalista
I am running Apache 2.0.55 with mod_perl 2.0.1 and Perl 5.8.1 on a Sun
Solaris machine. We would like to do http authentication via our ldap
server so we need to install mod_auth_ldap.
The instrictions I found for installing mod_auth_ldap
(http://www.muquit.com/muquit/software/mod_auth_ldap/mod_auth_ldap_apache2.html)
say that before compiling and installing mod_auth_ldap, we need to
complile and install LDAP libraries.  The instructions for installing
ldap libraries seem to force me to also install an ldap server.  I do
not want to install an ldap server since we already have a working ldap
server.  I want to use our existing ldap server to do httpd
authentication on our web server. Is there a way to install only the
ldap libraries?
Thanks for any help.
 
Malka Cymbalista
Webmaster, Weizmann Institute of Science
[EMAIL PROTECTED] 
08-934-3036


Re: [EMAIL PROTECTED] ssl - force ssl per directory

2006-12-13 Thread Joshua Slive

On 12/12/06, Nathan Kellogg [EMAIL PROTECTED] wrote:

We have open ssl running fine on Apache 2.2.3.

A separate virtual host is defined for both the :80 port and for :443

In order that the .../secure/... directory be handled exclusively by the
SSL host, we have :


See:
http://wiki.apache.org/httpd/Recipes/RedirectSSL

Joshua.

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



[EMAIL PROTECTED] Best way to activate changes in PRODUCTION Apache system without stopping and starting server

2006-12-13 Thread Roger Hendrix at Baldor-IS
Greetings:

A simple question!

I have a production system running Apache 2.2 over a SLES10 linux operating 
system.

I have made changes to the SSL links in a virtual host that is running on the 
server.

Is there a way to activate these changes without doing an rcapache2 stop   
reapache2 start?

Please advise.

Many thanks in advance. 

Best regards.

Roger Hendrix

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



Re: [EMAIL PROTECTED] Best way to activate changes in PRODUCTION Apache system without stopping and starting server

2006-12-13 Thread Joshua Slive

On 12/13/06, Roger Hendrix at Baldor-IS [EMAIL PROTECTED] wrote:

Greetings:

A simple question!

I have a production system running Apache 2.2 over a SLES10 linux operating 
system.

I have made changes to the SSL links in a virtual host that is running on the 
server.

Is there a way to activate these changes without doing an rcapache2 stop   
reapache2 start?


I know nothing about SLES, but any decent apache install will have a
way to gracefully restart apache, which will cause apache to reread
the config without losing any existing or pending connections.  Try
reading through rcapache2 to see what options it provides, and in the
worst case, send a USR1 signal to the root-owned process.

See:
http://httpd.apache.org/docs/2.2/stopping.html#graceful

Joshua.

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



[EMAIL PROTECTED] perl and mysql issue

2006-12-13 Thread Jim Goh
Hi,
   
  I have perl 5.6.1 and mysql 5.0.24 installed and the following perl script 
works fine from command line, but not working when I run from the IE browser:
   
  #!/usr/local/bin/perl
  use DBI;
use CGI qw(:standard);
use CGI::Carp 'fatalsToBrowser';
use strict;
   
  print header;
print start_html;
  my $docID;
my $docfile = test.doc;
my $docdesc = this is test;
my $last_update;
my $dbh = DBI-connect(dbi:mysql:dbname, username, password )
or dienice(Can't connect to database: $DBI::errstr);
  my $sth = $dbh-prepare(insert into test_tbl values(?,?,?,?)) or dbdie;
$sth-execute($docID, $last_update, $docfile, $docdesc) or dbdie;
  print end_html;

  and here is the error i got from browser after ran it:
   
  Software error:
install_driver(mysql) failed: Can't load 
'/usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris/auto/DBD/mysql/mysql.so' for 
module DBD::mysql: ld.so.1: perl: fatal: libmysqlclient.so.15: open failed: No 
such file or directory at /usr/local/lib/perl5/5.6.1/sun4-solaris/DynaLoader.pm 
line 206.   at (eval 10) line 3  Compilation failed in require at (eval 10) 
line 3.  Perhaps a required shared library or dll isn't installed where 
expected   at /usr/local/apache2/cgi-bin/testdb.pl line 15  

Thanks all for your help!

 
-
Any questions?  Get answers on any topic at Yahoo! Answers. Try it now.

Re: [EMAIL PROTECTED] ssl - force ssl per directory

2006-12-13 Thread Gregor Schneider

My suggestion:

VirtualHost *:80
   ServerName your_server
   ServerAdmin [EMAIL PROTECTED]
   # don't loose time with IP address lookups
   HostnameLookups Off
   # needed for named virtual hosts
   UseCanonicalName Off
   #
   RewriteEngine On
   RewriteRule ^/(.*)$ https://%{HTTP_HOST}/$1
   RewriteLog /var/log/apache2/your_server_rewrite.log
   # RewriteLogLevel 9
/VirtualHost

VirtualHost *:443
   ServerName your_server
   ServerAdmin [EMAIL PROTECTED]
   # don't loose time with IP address lookups
   HostnameLookups Off
   # needed for named virtual hosts
   UseCanonicalName Off
   # Possible values include: debug, info, notice, warn, error, crit,
   # alert, emerg.
   LogLevel info
   ServerSignature Off
   # SSL
   SSLEngine On
[...]
/VirtualHost

cheers

Greg
--
what's puzzlin' you, is the nature of my game

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



Re: [EMAIL PROTECTED] perl and mysql issue

2006-12-13 Thread Issac Goldstand
It looks like your MySQL client library isn't installed properly, or
else require some special odd permissions.

Did you recently change anything in your server MySQL setup?
Can you run the Perl script on the server as the same user Apache runs as?
Finally, just to be absolutely sure - when you say it runs from the
command line, you *do* mean the command line on the Apache server, right?

  Issac

Jim Goh wrote:
 Hi,
  
 I have perl 5.6.1 and mysql 5.0.24 installed and the following perl
 script works fine from command line, but not working when I run from the
 IE browser:
  
 #!/usr/local/bin/perl
 use DBI;
 use CGI qw(:standard);
 use CGI::Carp 'fatalsToBrowser';
 use strict;
  
 print header;
 print start_html;
 my $docID;
 my $docfile = test.doc;
 my $docdesc = this is test;
 my $last_update;
 my $dbh = DBI-connect(dbi:mysql:dbname, username, password )
 or dienice(Can't connect to database: $DBI::errstr);
 my $sth = $dbh-prepare(insert into test_tbl values(?,?,?,?)) or dbdie;
 $sth-execute($docID, $last_update, $docfile, $docdesc) or dbdie;
 print end_html;
 and here is the error i got from browser after ran it:
  
 
 
   Software error:
 
 install_driver(mysql) failed: Can't load 
 '/usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris/auto/DBD/mysql/mysql.so' 
 for module DBD::mysql: ld.so.1: perl: fatal: libmysqlclient.so.15: open 
 failed: No such file or directory at 
 /usr/local/lib/perl5/5.6.1/sun4-solaris/DynaLoader.pm line 206.   at (eval 
 10) line 3  Compilation failed in require at (eval 10) line 3.  Perhaps a 
 required shared library or dll isn't installed where expected   at 
 /usr/local/apache2/cgi-bin/testdb.pl line 15  
 
 Thanks all for your help!
 
 
 Any questions? Get answers on any topic at Yahoo! Answers
 http://answers.yahoo.com/;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx.
 Try it now.

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



Re: [EMAIL PROTECTED] Best way to activate changes in PRODUCTION Apache system without stopping and starting server

2006-12-13 Thread Jaqui Greenlees

--- Joshua Slive [EMAIL PROTECTED] wrote:

 On 12/13/06, Roger Hendrix at Baldor-IS
 [EMAIL PROTECTED] wrote:
  Greetings:
 
  A simple question!
 
  I have a production system running Apache 2.2 over
 a SLES10 linux operating system.
 
  I have made changes to the SSL links in a virtual
 host that is running on the server.
 
  Is there a way to activate these changes without
 doing an rcapache2 stop   reapache2 start?
 
 I know nothing about SLES, but any decent apache
 install will have a
 way to gracefully restart apache, which will cause
 apache to reread
 the config without losing any existing or pending
 connections.  Try
 reading through rcapache2 to see what options it
 provides, and in the
 worst case, send a USR1 signal to the root-owned
 process.
 
 See:

http://httpd.apache.org/docs/2.2/stopping.html#graceful
 
 Joshua.
 

Yup, usually apachectl restart so it should be in SEL,
Novell wouldn't forget that type of functionality.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: [EMAIL PROTECTED] perl and mysql issue

2006-12-13 Thread Jim Goh
Issac,
   
  Thanks for your quick reply.  This installation are all new in my server.
  I can run the script as any user as long as I set the LD_LIBRARY_PATH to 
/usr/local/mysql/lib/mysql path, w/o this LD set, i got same error as show up 
on the web site.
   
  So I am not sure how to set the LD in the script?
   
  My apache run with user nobody and group nobody.
   
  thanks again!

Issac Goldstand [EMAIL PROTECTED] wrote:
  It looks like your MySQL client library isn't installed properly, or
else require some special odd permissions.

Did you recently change anything in your server MySQL setup?
Can you run the Perl script on the server as the same user Apache runs as?
Finally, just to be absolutely sure - when you say it runs from the
command line, you *do* mean the command line on the Apache server, right?

Issac

Jim Goh wrote:
 Hi,
 
 I have perl 5.6.1 and mysql 5.0.24 installed and the following perl
 script works fine from command line, but not working when I run from the
 IE browser:
 
 #!/usr/local/bin/perl
 use DBI;
 use CGI qw(:standard);
 use CGI::Carp 'fatalsToBrowser';
 use strict;
 
 print header;
 print start_html;
 my $docID;
 my $docfile = test.doc;
 my $docdesc = this is test;
 my $last_update;
 my $dbh = DBI-connect(dbi:mysql:dbname, username, password )
 or dienice(Can't connect to database: $DBI::errstr);
 my $sth = $dbh-prepare(insert into test_tbl values(?,?,?,?)) or dbdie;
 $sth-execute($docID, $last_update, $docfile, $docdesc) or dbdie;
 print end_html;
 and here is the error i got from browser after ran it:
 
 
 
 Software error:
 
 install_driver(mysql) failed: Can't load 
 '/usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris/auto/DBD/mysql/mysql.so' 
 for module DBD::mysql: ld.so.1: perl: fatal: libmysqlclient.so.15: open 
 failed: No such file or directory at 
 /usr/local/lib/perl5/5.6.1/sun4-solaris/DynaLoader.pm line 206. at (eval 10) 
 line 3 Compilation failed in require at (eval 10) line 3. Perhaps a required 
 shared library or dll isn't installed where expected at 
 /usr/local/apache2/cgi-bin/testdb.pl line 15 
 
 Thanks all for your help!
 
 
 Any questions? Get answers on any topic at Yahoo! Answers
 .
 Try it now.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 
-
Access over 1 million songs - Yahoo! Music Unlimited.

Re: [EMAIL PROTECTED] perl and mysql issue

2006-12-13 Thread Issac Goldstand
You *could* use the SetEnv directive in httpd.conf to set Apache's
environment variables.  However, there's a better solution:

I'm not sure how it works on Solaris, but on Linux, you can edit the
file /etc/ld.so.conf and add /usr/local/mysql/lib/mysql to it.  Once
it's added run /sbin/ldconfig (optionally with -v to ensure that it
noticed the new directory) and it will know to look in
/usr/local/mysql/lib/mysql when it needs shared libraries.  This is the
more correct solution, I think.

  Issac

Jim Goh wrote:
 Issac,
  
 Thanks for your quick reply.  This installation are all new in my server.
 I can run the script as any user as long as I set the LD_LIBRARY_PATH to
 /usr/local/mysql/lib/mysql path, w/o this LD set, i got same error as
 show up on the web site.
  
 So I am not sure how to set the LD in the script?
  
 My apache run with user nobody and group nobody.
  
 thanks again!
 
 */Issac Goldstand [EMAIL PROTECTED]/* wrote:
 
 It looks like your MySQL client library isn't installed properly, or
 else require some special odd permissions.
 
 Did you recently change anything in your server MySQL setup?
 Can you run the Perl script on the server as the same user Apache
 runs as?
 Finally, just to be absolutely sure - when you say it runs from the
 command line, you *do* mean the command line on the Apache server,
 right?
 
 Issac
 
 Jim Goh wrote:
  Hi,
 
  I have perl 5.6.1 and mysql 5.0.24 installed and the following perl
  script works fine from command line, but not working when I run
 from the
  IE browser:
 
  #!/usr/local/bin/perl
  use DBI;
  use CGI qw(:standard);
  use CGI::Carp 'fatalsToBrowser';
  use strict;
 
  print header;
  print start_html;
  my $docID;
  my $docfile = test.doc;
  my $docdesc = this is test;
  my $last_update;
  my $dbh = DBI-connect(dbi:mysql:dbname, username, password )
  or dienice(Can't connect to database: $DBI::errstr);
  my $sth = $dbh-prepare(insert into test_tbl values(?,?,?,?)) or
 dbdie;
  $sth-execute($docID, $last_update, $docfile, $docdesc) or dbdie;
  print end_html;
  and here is the error i got from browser after ran it:
 
 
 
  Software error:
 
  install_driver(mysql) failed: Can't load
 
 '/usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris/auto/DBD/mysql/mysql.so'
 for module DBD::mysql: ld.so.1: perl: fatal: libmysqlclient.so.15:
 open failed: No such file or directory at
 /usr/local/lib/perl5/5.6.1/sun4-solaris/DynaLoader.pm line 206. at
 (eval 10) line 3 Compilation failed in require at (eval 10) line 3.
 Perhaps a required shared library or dll isn't installed where
 expected at /usr/local/apache2/cgi-bin/testdb.pl line 15
 
  Thanks all for your help!
 
 
 
  Any questions? Get answers on any topic at Yahoo! Answers
  .
  Try it now.
 
 -
 The official User-To-User support forum of the Apache HTTP Server
 Project.
 See for more info.
 To unsubscribe, e-mail: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 Access over 1 million songs - Yahoo! Music Unlimited.
 http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=36035/*http://music.yahoo.com/unlimited/
 

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



[EMAIL PROTECTED] Templated config for vhost

2006-12-13 Thread Florian Lindner
Hello,
is is possible to define a template for a vhost config entry and use this 
template in other entries. 
For example I have the template:

Template
ServerName $SERVER_NAME
ServerAlias *.$SERVER_NAME $MORE_ALIASES
DocumentRoot /home/$DIR/http/pub
CustomLog /home/$DIR/http/log/access.log combined
ErrorLog /home/$DIR/http/log/error.log
php_admin_value sendmail_path /usr/sbin/sendmail -t -i -f 
[EMAIL PROTECTED]
php_admin_value open_basedir /home/$DIR/http
/Template

now a config use this template

VirtualHost *
$SERVER_NAME xgm.de
$DIR xgmde
$MORE_ALIASES someotherdomain.tld
/VirtualHost

Can I do something like this?

Thanks,

Florian

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



[EMAIL PROTECTED] new user / cgi program ignoring form arguments

2006-12-13 Thread michaeljay

I have httpd 2.2 / windows xp

My cgi program (ansi c) is failing to echo arguments from an xhtml 
form. Thinking this is common. Can anyone point to common 
configuration errors which would result in something like this. 
The resulting web page says: (null)


* the form is sending correctly using the mailto: method.
* the program works from the command line
* the form is triggering hardwired output from the program.
* the program will echo argv[0] (program path) in the web output 
but not argv[1] which should be the name=value pairs


thanks

 emjay! 


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



RE: [EMAIL PROTECTED] mod_auth_ldap

2006-12-13 Thread Mark Lavi
This question is best suited towards the community behind the LDAP
libraries or the LDAP authentication module you are speaking about.

However, it's a pretty easy guess you are speaking about OpenLDAP, which
is distributed as a single tarball of code for the libraries, command
line tools, and server. There's no way around that unless you find
another distribution, perhaps via another source, which I wouldn't
recommend. It's always best to deal with primary sources or mirrors and
be sure to check the signatures on anything you download.

You've got nothing to worry about: building and installing OpenLDAP
*does not* run the LDAP server.

You (or someone on the system with administrative privileges) would need
to initiate starting the server. You can also delete the server binaries
and configuration if you wish, but it's simplest to never run any of the
LDAP server start up scripts. I recommend reading the OpenLDAP
administrator handbook to learn more about what files constitute the
server, startup, and configuration rather than ask further here.

Cheers,

--Mark 

Mark Lavi, Enterprise Web Management Team @ SGI
mailto:[EMAIL PROTECTED] || phone:+1-650-933-7707



From: Malka Cymbalista [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 13, 2006 2:30 AM
To: users@httpd.apache.org; modperl@perl.apache.org
Subject: [EMAIL PROTECTED] mod_auth_ldap

 

I am running Apache 2.0.55 with mod_perl 2.0.1 and Perl 5.8.1 on a Sun
Solaris machine. We would like to do http authentication via our ldap
server so we need to install mod_auth_ldap.

The instrictions I found for installing mod_auth_ldap
(http://www.muquit.com/muquit/software/mod_auth_ldap/mod_auth_ldap_apach
e2.html) say that before compiling and installing mod_auth_ldap, we need
to complile and install LDAP libraries.  The instructions for installing
ldap libraries seem to force me to also install an ldap server.  I do
not want to install an ldap server since we already have a working ldap
server.  I want to use our existing ldap server to do httpd
authentication on our web server. Is there a way to install only the
ldap libraries?

Thanks for any help.

 

Malka Cymbalista
Webmaster, Weizmann Institute of Science
[EMAIL PROTECTED]
08-934-3036



Re: [EMAIL PROTECTED] mod_autoindex not cooperating

2006-12-13 Thread David Scott

David Scott wrote:

Nope, this simply does not work for me.  Here is the latest httpd.conf
snippet:

Listen 3002
VirtualHost *:3002
   Alias /static /home/david/pix/html/static
   DocumentRoot /home/david/pix/html
   Location /static
   SetHandler default
   Options +Indexes
   Order allow,deny
   Allow from all
   /Location
   Directory /home/david/pix/html/static/code
   SetHandler default
   Options +Indexes +FollowSymLinks
   Order allow,deny
   Allow from all
   /Directory
/VirtualHost

both a request to /static and /static/code return

[Wed Dec 13 12:11:51 2006] [error] [client 127.0.0.1] Attempt to serve
directory: /home/david/pix/html/static/
[Wed Dec 13 12:12:04 2006] [error] [client 127.0.0.1] Attempt to serve
directory: /home/david/pix/html/static/code/

It's almost as if the +Indexes options is being ignored, or
mod_autoindex isn't there at all.  But it *is* listed as a compiled-in
module:

:~/pix/html$  /usr/local/apache2/bin/httpd -l
Compiled in modules:
 core.c
 mod_authn_file.c
 mod_authn_default.c
 mod_authz_host.c
 mod_authz_groupfile.c
 mod_authz_user.c
 mod_authz_default.c
 mod_auth_basic.c
 mod_include.c
 mod_filter.c
 mod_log_config.c
 mod_env.c
 mod_usertrack.c
 mod_setenvif.c
 prefork.c
 http_core.c
 mod_mime.c
 mod_status.c
 mod_autoindex.c
 mod_asis.c
 mod_cgi.c
 mod_negotiation.c
 mod_dir.c
 mod_actions.c
 mod_userdir.c
 mod_alias.c
 mod_rewrite.c
 mod_so.c

I'm stumped.  Has anyone else had this problem?

d





Subject:
Re: [EMAIL PROTECTED] mod_autoindex not cooperating
From:
Yvo van Doorn [EMAIL PROTECTED]
Date:
Mon, 11 Dec 2006 23:03:36 -0800
To:
users@httpd.apache.org

To:
users@httpd.apache.org


I *could* be wrong on this but don't you need an alias as well such as:
Alias /code /home/david/pix/html/code

Another way would be inside the VirtualHost directive and instead of 
Location do:

Directory /home/david/pix/html/code
SetHandler default
Order allow,deny
Allow from all
Options +Indexes +FollowSymLinks
/Directory


On 12/11/06, * David Scott* [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:


I've got apache 2.2.3 running and I'd like to generate an automatic
directory listing, but I can't.  I've checked and mod_autoindex is
compiled in statically.  The snippet from my httpd.conf is as follows.
I'd like a directory listing in the /code location.

Listen 3001
NameVirtualHost *:3001
VirtualHost *:3001
DocumentRoot /home/david/pix/html
Location /
PerlSetEnv SQL_DEBUG 1
SetHandler perl-script
PerlHandler Pix
Allow from all
/Location
Location /static
SetHandler none
/Location
Location /code
SetHandler default
Order allow,deny
Allow from all
Options +Indexes +FollowSymLinks
/Location
/VirtualHost

The message in the error log is

[Mon Dec 11 16:59:49 2006] [error] [client 127.0.0.1
http://127.0.0.1] Attempt to serve
directory: /home/david/pix/html/code/

I've tried this in just about every way imaginable, disabling the
mod_perl handler, configuring outside a virtual host, using
Options All,
etc etc etc.  The server simply does not want to give me a directory
listing.

Can anyone think of anything else I can try to figure this out?
mod_autoindex is supposed to just work.

d

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






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



Re: [EMAIL PROTECTED] mod_autoindex not cooperating

2006-12-13 Thread Joshua Slive

On 12/13/06, David Scott [EMAIL PROTECTED] wrote:

David Scott wrote:

Nope, this simply does not work for me.  Here is the latest httpd.conf
snippet:

Listen 3002
VirtualHost *:3002
Alias /static /home/david/pix/html/static
DocumentRoot /home/david/pix/html
Location /static
SetHandler default
Options +Indexes
Order allow,deny
Allow from all
/Location
Directory /home/david/pix/html/static/code
SetHandler default
Options +Indexes +FollowSymLinks
Order allow,deny
Allow from all
/Directory
/VirtualHost

both a request to /static and /static/code return

[Wed Dec 13 12:11:51 2006] [error] [client 127.0.0.1] Attempt to serve
directory: /home/david/pix/html/static/


Get rid of the SetHandler default stuff.  It probably interferes with
mod_autoindex's ability to put its directory handler in place.

Joshua.

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



Re: [EMAIL PROTECTED] mod_autoindex not cooperating

2006-12-13 Thread Serge Dubrouski

On 12/13/06, David Scott [EMAIL PROTECTED] wrote:

David Scott wrote:

Nope, this simply does not work for me.  Here is the latest httpd.conf
snippet:

Listen 3002
VirtualHost *:3002
Alias /static /home/david/pix/html/static
DocumentRoot /home/david/pix/html
Location /static


Try to replace your Location tags with Directory tags like this:

Directory /home/david/pix/html/static

/Directory

And keep your alias.

I'm afraid Options +Indexes isn't applicable in the Location context.


SetHandler default
Options +Indexes
Order allow,deny
Allow from all
/Location
Directory /home/david/pix/html/static/code
SetHandler default
Options +Indexes +FollowSymLinks
Order allow,deny
Allow from all
/Directory
/VirtualHost

both a request to /static and /static/code return

[Wed Dec 13 12:11:51 2006] [error] [client 127.0.0.1] Attempt to serve
directory: /home/david/pix/html/static/
[Wed Dec 13 12:12:04 2006] [error] [client 127.0.0.1] Attempt to serve
directory: /home/david/pix/html/static/code/

It's almost as if the +Indexes options is being ignored, or
mod_autoindex isn't there at all.  But it *is* listed as a compiled-in
module:

:~/pix/html$  /usr/local/apache2/bin/httpd -l
Compiled in modules:
  core.c
  mod_authn_file.c
  mod_authn_default.c
  mod_authz_host.c
  mod_authz_groupfile.c
  mod_authz_user.c
  mod_authz_default.c
  mod_auth_basic.c
  mod_include.c
  mod_filter.c
  mod_log_config.c
  mod_env.c
  mod_usertrack.c
  mod_setenvif.c
  prefork.c
  http_core.c
  mod_mime.c
  mod_status.c
  mod_autoindex.c
  mod_asis.c
  mod_cgi.c
  mod_negotiation.c
  mod_dir.c
  mod_actions.c
  mod_userdir.c
  mod_alias.c
  mod_rewrite.c
  mod_so.c

I'm stumped.  Has anyone else had this problem?

d


 

 Subject:
 Re: [EMAIL PROTECTED] mod_autoindex not cooperating
 From:
 Yvo van Doorn [EMAIL PROTECTED]
 Date:
 Mon, 11 Dec 2006 23:03:36 -0800
 To:
 users@httpd.apache.org

 To:
 users@httpd.apache.org


 I *could* be wrong on this but don't you need an alias as well such as:
 Alias /code /home/david/pix/html/code

 Another way would be inside the VirtualHost directive and instead of
 Location do:
 Directory /home/david/pix/html/code
 SetHandler default
 Order allow,deny
 Allow from all
 Options +Indexes +FollowSymLinks
 /Directory


 On 12/11/06, * David Scott* [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:

 I've got apache 2.2.3 running and I'd like to generate an automatic
 directory listing, but I can't.  I've checked and mod_autoindex is
 compiled in statically.  The snippet from my httpd.conf is as follows.
 I'd like a directory listing in the /code location.

 Listen 3001
 NameVirtualHost *:3001
 VirtualHost *:3001
 DocumentRoot /home/david/pix/html
 Location /
 PerlSetEnv SQL_DEBUG 1
 SetHandler perl-script
 PerlHandler Pix
 Allow from all
 /Location
 Location /static
 SetHandler none
 /Location
 Location /code
 SetHandler default
 Order allow,deny
 Allow from all
 Options +Indexes +FollowSymLinks
 /Location
 /VirtualHost

 The message in the error log is

 [Mon Dec 11 16:59:49 2006] [error] [client 127.0.0.1
 http://127.0.0.1] Attempt to serve
 directory: /home/david/pix/html/code/

 I've tried this in just about every way imaginable, disabling the
 mod_perl handler, configuring outside a virtual host, using
 Options All,
 etc etc etc.  The server simply does not want to give me a directory
 listing.

 Can anyone think of anything else I can try to figure this out?
 mod_autoindex is supposed to just work.

 d

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





-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [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 URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
 from the digest: [EMAIL 

Re: [EMAIL PROTECTED] new user / cgi program ignoring form arguments

2006-12-13 Thread Sean Conner
It was thus said that the Great michaeljay once stated:
 I have httpd 2.2 / windows xp
 
 My cgi program (ansi c) is failing to echo arguments from an xhtml 
 form. Thinking this is common. Can anyone point to common 
 configuration errors which would result in something like this. 
 The resulting web page says: (null)
 
 * the form is sending correctly using the mailto: method.
 * the program works from the command line
 * the form is triggering hardwired output from the program.
 * the program will echo argv[0] (program path) in the web output 
 but not argv[1] which should be the name=value pairs

  Apache doesn't send the name/value pairs on the comment line, but either
through the environment variable QUERY_STRING (for a GET method) or as stdin
(for the POST method).  Either way, you'll need to parse the input
(QUERY_STRING or stdin) to break the name/value pairs apart.

  -spc (I have a library for that sort of thing---works well under Unix,
and an older version *was* successfully ported to Windows, but
that was about seven years ago ... )




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



Re: [EMAIL PROTECTED] mod_autoindex not cooperating

2006-12-13 Thread David Scott

Yup, that did the trick.

I got into this predicament in the first place because I was trying to 
set up a default-content hole in a vhost served by mod_perl.  That's 
where the SetHandler default directive came from (it works for static 
content like images and JavaScript).  But when I set up a separate vhost 
and left off the SetHandler directives completely it worked like a charm.


Thanks guys.

d

Joshua Slive wrote:

On 12/13/06, David Scott [EMAIL PROTECTED] wrote:

David Scott wrote:

Nope, this simply does not work for me.  Here is the latest httpd.conf
snippet:

Listen 3002
VirtualHost *:3002
Alias /static /home/david/pix/html/static
DocumentRoot /home/david/pix/html
Location /static
SetHandler default
Options +Indexes
Order allow,deny
Allow from all
/Location
Directory /home/david/pix/html/static/code
SetHandler default
Options +Indexes +FollowSymLinks
Order allow,deny
Allow from all
/Directory
/VirtualHost

both a request to /static and /static/code return

[Wed Dec 13 12:11:51 2006] [error] [client 127.0.0.1] Attempt to serve
directory: /home/david/pix/html/static/


Get rid of the SetHandler default stuff.  It probably interferes with
mod_autoindex's ability to put its directory handler in place.

Joshua.

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

See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [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 URL: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 php

2006-12-13 Thread Andrew Long
Problem on one server with php... php test file in doc root works well
and returns variables, status, etc... But when trying to open a php
under a subdir, the client browser will attempt to download the file.

I post here since php(4) is working, so I think it's an Apache config
issue.

There are are no directory options defined for the dir. (It is is for
phpMyAdmin, and requires no settings in http.conf)

In php.conf under conf.d:

   LoadModule php4_module modules/libphp4.so
   AddType application/x-httpd-php .php  # for PHP 4

   Files *.php
SetOutputFilter PHP
SetInputFilter PHP
LimitRequestBody 524288
/Files

DirectoryIndex index.php

Thanks in advance-
Andrew Long





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



[EMAIL PROTECTED] Denise E Wickenhauser is out of the office.

2006-12-13 Thread Denise . Wickenhauser

I will be out of the office starting  12/13/2006 and will not return until
12/14/2006.

Thank you for your email.  I will be out of the office Wednesday, December
13.  I will return Thursday and reply to your email at that time.

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



[EMAIL PROTECTED] do not proxy static files

2006-12-13 Thread Xavier Noria
I am using mod_proxy_balancer to balance Mongrels in localhost. I am  
putting lines like


  ProxyPass /images/ !

to let Apache serve static files, but that couples the config with  
the application layout. I would prefer to be able to simply say:


  if file exists
let Apache send it
  otherwise
ProxyPass to Mongrel
ProxyPassReverse
  end

Is that possible?

-- fxn


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



[EMAIL PROTECTED] ErrorDocument 401

2006-12-13 Thread Liz Kim

I have a 401 error on a directory redirect to a local file...
It seems to work fine on most browsers I've tested so far EXCEPT safari...
Anyone else have this problem?
Any ideas?
Thanks!


[EMAIL PROTECTED] Processes not yielding, and lockf

2006-12-13 Thread Kevin Jones

I'm running an Apache server on a FreeBSD server with 494 MB of RAM and an
Intel Celeron 2.4 GHz CPU.
A recent surge of traffic to my PHP site has been causing the server to come
to its knees.

The first symptom is that the server won't return my page when I access it
through the browser. The connection times out.

In researching, I found out that my available RAM had become cripplingly low
(about 1 meg) because Apache had spawned over 100 different processes of
itself.

So, I figured the way to fix this was to limit how many processes Apache
would start up max, so I edited the httpd.conf and set MaxClients to 40 (I'm
using the prefork MPM) and KeepAliveTimeout to 15.

That's fine, but now it runs out of available processes to handle requests
very soon. I run top to see what's happening, and I see that most of the
apache processes are in the lockf state. And a few are in sbwait. I run
ps, and see that most of the apache processes are idle or sleeping.

What do lockf and sbwait mean? Are the processes just idling?
How do I get the Apache processes to die?

Thanks for any help.


[EMAIL PROTECTED] New Orleans

2006-12-13 Thread Mark
I was wondering If you were from New Orleans

[EMAIL PROTECTED]

Re: [EMAIL PROTECTED] Processes not yielding, and lockf

2006-12-13 Thread Ravi Menon

It is been a while since I last worked on FreeBSD but if I recall correctly:

'lockf' - sleeping on a flock() or fcntl() equivalent on some file fd somewhere.

'sbwait' - socket buffer wait - a wait due to recv or send buf size
for socket fds'.

Attaching a gdb on such child pids and getting a backtrace might help narrow
down where it could be occuring - maybe it is a deadlock.

Also 494MB of ram sounds awfully less these days - increasing it might help.

Ravi


On 12/13/06, Kevin Jones [EMAIL PROTECTED] wrote:

I'm running an Apache server on a FreeBSD server with 494 MB of RAM and an
Intel Celeron 2.4 GHz CPU.
A recent surge of traffic to my PHP site has been causing the server to come
to its knees.

The first symptom is that the server won't return my page when I access it
through the browser. The connection times out.

In researching, I found out that my available RAM had become cripplingly low
(about 1 meg) because Apache had spawned over 100 different processes of
itself.

So, I figured the way to fix this was to limit how many processes Apache
would start up max, so I edited the httpd.conf and set MaxClients to 40 (I'm
using the prefork MPM) and KeepAliveTimeout to 15.

That's fine, but now it runs out of available processes to handle requests
very soon. I run top to see what's happening, and I see that most of the
apache processes are in the lockf state. And a few are in sbwait. I run
ps, and see that most of the apache processes are idle or sleeping.

What do lockf and sbwait mean? Are the processes just idling?
How do I get the Apache processes to die?

Thanks for any help.



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



Re: [EMAIL PROTECTED] apache php

2006-12-13 Thread Yvo van Doorn

Andrew,

Either remove
  Files *.php
   SetOutputFilter PHP
   SetInputFilter PHP
   LimitRequestBody 524288
   /Files

or

 AddType application/x-httpd-php .php  # for PHP 4


You can't have both. (My personal recommendation is to get rid of the Files
directive)

On 12/13/06, Andrew Long [EMAIL PROTECTED] wrote:


Problem on one server with php... php test file in doc root works well
and returns variables, status, etc... But when trying to open a php
under a subdir, the client browser will attempt to download the file.

I post here since php(4) is working, so I think it's an Apache config
issue.

There are are no directory options defined for the dir. (It is is for
phpMyAdmin, and requires no settings in http.conf)

In php.conf under conf.d:

   LoadModule php4_module modules/libphp4.so
   AddType application/x-httpd-php .php  # for PHP 4

   Files *.php
SetOutputFilter PHP
SetInputFilter PHP
LimitRequestBody 524288
/Files

DirectoryIndex index.php

Thanks in advance-
Andrew Long





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




Re: [EMAIL PROTECTED] make error --with-dbm=gdbm, version 2.0.59

2006-12-13 Thread Yvo van Doorn

What version of gdbm is installed? Was it perhaps removed in a clean up of
the machine? I know under Debian deborphan always wants to remove
libgdbm-dev

On 12/12/06, K. Clair [EMAIL PROTECTED] wrote:


Hi,

I'm trying to upgrade apache from 2.0.55 to 2.0.59.  We have a
standard configure line that we have been using for the entire 2.0.x
release of apache:

./configure --enable-maintainer-mode --enable-proxy
--disable-proxy-connect --disable-proxy-ftp --enable-mods-shared=all
--with-dbm=gdbm --without-berkeley-db --enable-module-so --enable-ssl
--enable-suexec --with-suexec-docroot=/home/XXXhidden
--with-suexec-userdir=. --with-suexec-uidmin=100
--with-suexec-gidmin=100 --with-suexec-safepath=/bin:/usr/bin
--with-suexec-caller=www

This has compiled with no problem for every apache version up until
2.0.59.  The make error I am now seeing is (I included the line just
before the error in case it is relevant):
/home/sys/src/httpd-2.0.59/srclib/apr/libtool --silent --mode=link gcc
-g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes
-Wmissing-declarations -pthread-DLINUX=2 -D_REENTRANT
-D_GNU_SOURCE -DAP_DEBUG -DAP_HAVE_DESIGNATED_INITIALIZER
-I/home/sys/src/httpd-2.0.59/srclib/apr/include
-I/home/sys/src/httpd-2.0.59/srclib/apr-util/include -I.
-I/home/sys/src/httpd-2.0.59/os/unix
-I/home/sys/src/httpd-2.0.59/server/mpm/prefork
-I/home/sys/src/httpd-2.0.59/modules/http
-I/home/sys/src/httpd-2.0.59/modules/filters
-I/home/sys/src/httpd-2.0.59/modules/proxy
-I/home/sys/src/httpd-2.0.59/include
-I/home/sys/src/httpd-2.0.59/modules/generators
-I/home/sys/src/httpd-2.0.59/server -I/usr/include/openssl
-I/usr/kerberos/include -I/home/sys/src/httpd-2.0.59/modules/dav/main
-export-dynamic-o htpasswd  htpasswd.lo   -lssl -lcrypto
-L/usr/kerberos/lib -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv
-ldl -lz /home/sys/src/httpd-2.0.59/srclib/pcre/libpcre.la
/home/sys/src/httpd-2.0.59/srclib/apr-util/libaprutil-0.la -lexpat
/home/sys/src/httpd-2.0.59/srclib/apr/libapr-0.la -lrt -lm -lcrypt
-lnsl -lpthread -ldl

/home/sys/src/httpd-2.0.59/srclib/apr-util/.libs/libaprutil-0.so:
undefined reference to `apr_dbm_type_gdbm'

I am compiling apache on the same system that it was previously
compiled on, and I don't think anything significant has changed about
the setup otherwise.

I read the changelog for all the releases between 2.0.55 and 2.0.59
but could find nothing related to dbm/gdbm.  Help? :)

-Kristina

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