PHP execution time exeeded

2007-09-10 Thread Sven Kobow
Hallo,

ich schlage mich seit einiger Zeit mir einer Website rum, die auf meinem 
Server nicht so richtig funktionieren will. Ich bin allerdings der Meinung, 
dass der Server richtig konfiguriert ist, da sämtliche anderen Sites 
problemlos laufen.
Das Problem äussert sich so, dass sporadisch nur weiße Seiten angezeigt 
werden. In den logs finden sich dann solche Einträge:

PHP Fatal error:  Maximum execution time of 60 seconds exceeded 
in /srv/www/vhosts/website/http/index.php on line 339,

Mein erster Versuch die maximale execution time von 30s auf 60s anzuheben hat 
zwar schon zu einer Verbesserung geführt, das Problem aber noch nicht 
behoben. 
Ich weiß allerdings auch nicht genau, was diesen Fehler verursacht bzw. 
wodurch er ausgelöst wird. Ich weiß nur, dass bei der angegebenen 
Zeilennummer eine while-Schleife zu finden ist. 
Die Frage ist nun die: liegts am Server oder an der Programmierung 
(Endlosschleife etc.)? Ich habe den Code nicht selbst geschrieben und weiß 
daher nicht genau, was da passiert.

Irgendwelche Vorschläge?

Details:

OS: openSuSE Linux 10.2
Apache: 2.2.3
PHP: 5.2.0 with Suhosin-Patch 0.9.6.1 (cli)

Gruß

Sven


signature.asc
Description: This is a digitally signed message part.


Re: [ANNOUNCE] Apache HTTP Server 2.2.6, 2.0.61 and 1.3.39 Released

2007-09-10 Thread Rainer Sokoll
On Mon, Sep 10, 2007 at 10:43:29AM +0200, James Blond wrote:

 Wie sieht denn dein hack für 2.2.6 aus? Ich hatte das bei 2.2.5 schon
 aufgegeben.

Da das einzige C-Programm, daß ich je geschrieben habe, helloworld.c
heißt, habe ich das vor allem mit
Compilerfehlermeldungenlesenundverstehen hinbekommen:
http://issues.apache.org/bugzilla/show_bug.cgi?id=43328

Rainer

--
Apache HTTP Server Mailing List users-de 
  unsubscribe-Anfragen an [EMAIL PROTECTED]
   sonstige Anfragen an [EMAIL PROTECTED]
--



Re: PHP execution time exeeded

2007-09-10 Thread James Blond
Hallo Sven,
um das beantworten zu können, wäre es sehr hilfreich, wenn Du das
while mal mit copy und paste per mail senden könntest.
Ohne etwas zu sehen gibt es nur raten. Mein erster Tipp ist die
Programmierung oder der server hat zu wenig resourcen wie CPU und RAM.

Gruß
Mario

On 9/10/07, Sven Kobow [EMAIL PROTECTED] wrote:
 Hallo,

 ich schlage mich seit einiger Zeit mir einer Website rum, die auf meinem
 Server nicht so richtig funktionieren will. Ich bin allerdings der Meinung,
 dass der Server richtig konfiguriert ist, da sämtliche anderen Sites
 problemlos laufen.
 Das Problem äussert sich so, dass sporadisch nur weiße Seiten angezeigt
 werden. In den logs finden sich dann solche Einträge:

 PHP Fatal error:  Maximum execution time of 60 seconds exceeded
 in /srv/www/vhosts/website/http/index.php on line 339,

 Mein erster Versuch die maximale execution time von 30s auf 60s anzuheben hat
 zwar schon zu einer Verbesserung geführt, das Problem aber noch nicht
 behoben.
 Ich weiß allerdings auch nicht genau, was diesen Fehler verursacht bzw.
 wodurch er ausgelöst wird. Ich weiß nur, dass bei der angegebenen
 Zeilennummer eine while-Schleife zu finden ist.
 Die Frage ist nun die: liegts am Server oder an der Programmierung
 (Endlosschleife etc.)? Ich habe den Code nicht selbst geschrieben und weiß
 daher nicht genau, was da passiert.

 Irgendwelche Vorschläge?

 Details:

 OS: openSuSE Linux 10.2
 Apache: 2.2.3
 PHP: 5.2.0 with Suhosin-Patch 0.9.6.1 (cli)

 Gruß

 Sven



--
Apache HTTP Server Mailing List users-de
  unsubscribe-Anfragen an [EMAIL PROTECTED]
   sonstige Anfragen an [EMAIL PROTECTED]
--



Re: PHP execution time exeeded

2007-09-10 Thread Rainer Sokoll
On Mon, Sep 10, 2007 at 11:23:42AM +0200, James Blond wrote:

 Ohne etwas zu sehen gibt es nur raten. Mein erster Tipp ist die
 Programmierung oder der server hat zu wenig resourcen wie CPU und RAM.

Du meinst, mit einer schnelleren CPU wird die Endlosschleife eher
beendet?

Raiduck'n runner

--
Apache HTTP Server Mailing List users-de 
  unsubscribe-Anfragen an [EMAIL PROTECTED]
   sonstige Anfragen an [EMAIL PROTECTED]
--



Re: PHP execution time exeeded

2007-09-10 Thread Sven Kobow
Servus Mario,

hier die schleife:

// {wbvar ...} finden und entsprechend einsetzen

while(stristr($c,'{wbvar'))
{
$ii= stristr($c,{wbvar);
$paras = split( ,substr($ii,1,strpos($ii,})-1));
$ii = stristr($c,{wbvar);
$c  = substr($c,0,strlen($c)-strlen($ii)).
$$paras[1].substr(stristr($ii,}),1);
};

was da allerdings genau geschieht kann ich auch nicht sagen. kann leider nicht 
mehr code rausgeben, da er mir nicht gehört.
was den zweiten punkt angeht halte ich das für unwahrscheinlich:

dual intel xeon 3Ghz (HT)
2GB DDR2 Ram

daran sollte es also nicht liegen. hatte vergessen zu erwähnen, dass es sich 
um x64_86 Linux handelt. vielleicht ist das ja von einer gewissen relevanz?!

gruß

sven

 Hallo Sven,
 um das beantworten zu können, wäre es sehr hilfreich, wenn Du das
 while mal mit copy und paste per mail senden könntest.
 Ohne etwas zu sehen gibt es nur raten. Mein erster Tipp ist die
 Programmierung oder der server hat zu wenig resourcen wie CPU und RAM.

 Gruß
 Mario

 On 9/10/07, Sven Kobow [EMAIL PROTECTED] wrote:
  Hallo,
 
  ich schlage mich seit einiger Zeit mir einer Website rum, die auf meinem
  Server nicht so richtig funktionieren will. Ich bin allerdings der
  Meinung, dass der Server richtig konfiguriert ist, da sämtliche anderen
  Sites problemlos laufen.
  Das Problem äussert sich so, dass sporadisch nur weiße Seiten angezeigt
  werden. In den logs finden sich dann solche Einträge:
 
  PHP Fatal error:  Maximum execution time of 60 seconds exceeded
  in /srv/www/vhosts/website/http/index.php on line 339,
 
  Mein erster Versuch die maximale execution time von 30s auf 60s anzuheben
  hat zwar schon zu einer Verbesserung geführt, das Problem aber noch nicht
  behoben.
  Ich weiß allerdings auch nicht genau, was diesen Fehler verursacht bzw.
  wodurch er ausgelöst wird. Ich weiß nur, dass bei der angegebenen
  Zeilennummer eine while-Schleife zu finden ist.
  Die Frage ist nun die: liegts am Server oder an der Programmierung
  (Endlosschleife etc.)? Ich habe den Code nicht selbst geschrieben und
  weiß daher nicht genau, was da passiert.
 
  Irgendwelche Vorschläge?
 
  Details:
 
  OS: openSuSE Linux 10.2
  Apache: 2.2.3
  PHP: 5.2.0 with Suhosin-Patch 0.9.6.1 (cli)
 
  Gruß
 
  Sven

 --
 Apache HTTP Server Mailing List users-de
   unsubscribe-Anfragen an [EMAIL PROTECTED]
sonstige Anfragen an [EMAIL PROTECTED]
 --



-- 
Sven Kobow
Universität Paderborn
Sportmedizinisches Institut - Rechnerbetrieb 
Raum SP1-501
FON: +49 (05251) 60-3586
MAIL: [EMAIL PROTECTED]


signature.asc
Description: This is a digitally signed message part.


Re: PHP execution time exeeded

2007-09-10 Thread James Blond
Hallo!

Sven schrieb:
 // {wbvar ...} finden und entsprechend einsetzen

 while(stristr($c,'{wbvar'))
 {
 $ii= stristr($c,{wbvar);
 $paras = split( ,substr($ii,1,strpos($ii,})-1));
 $ii = stristr($c,{wbvar);
 $c  = substr($c,0,strlen($c)-strlen($ii)).
 $$paras[1].substr(stristr($ii,}),1);
 };

Wie die Beschreibung vom Code schon sagt:

{wbvar ...} finden und dann zerlegen.
Der Inhalt des While selber ist nicht Zeit aufwendig. Das bißchen
suchen ist IMHO schnell abgearbeitet.
Die Frage ist nur, wie groß der input string $c ist. Ich denke, das
die größe des Strings das in die Länge zieht.

Rainer schrieb:
Du meinst, mit einer schnelleren CPU wird die Endlosschleife eher
beendet?

Ist das eine Fangfrage?

Sven schrieb:
 dual intel xeon 3Ghz (HT)
 2GB DDR2 Ram

An sich mehr als ausreichen für die meisten PHP Anwendungen. Oder ist
das ein shared vhost?

 um x64_86 Linux handelt.
Ob das was mit den 64 bit zu tun hat, weiß ich nicht, da habe ich noch
keine Erfahrungen gesammelt.

Gruß
Mario

--
Apache HTTP Server Mailing List users-de
  unsubscribe-Anfragen an [EMAIL PROTECTED]
   sonstige Anfragen an [EMAIL PROTECTED]
--



Re: [ANNOUNCE] Apache HTTP Server 2.2.6, 2.0.61 and 1.3.39 Released

2007-09-10 Thread James Blond
 Äh, was weißt Du, was httpd.apache.org nicht weiß?

In zwischen ist es *offiziel*
http://issues.apache.org/bugzilla/show_bug.cgi?id=43329
Ist wohl ein Proplem mit dem neuen APR.

Gruß
Mario

--
Apache HTTP Server Mailing List users-de
  unsubscribe-Anfragen an [EMAIL PROTECTED]
   sonstige Anfragen an [EMAIL PROTECTED]
--



Re: PHP execution time exeeded

2007-09-10 Thread Paul Puschmann
On Mon, Sep 10, 2007 at 10:59:21AM +0200, Sven Kobow wrote:
 Hallo,
 
 Das Problem äussert sich so, dass sporadisch nur weiße Seiten angezeigt 
 werden. In den logs finden sich dann solche Einträge:
 
 PHP Fatal error:  Maximum execution time of 60 seconds exceeded 
 in /srv/www/vhosts/website/http/index.php on line 339,
 
 Mein erster Versuch die maximale execution time von 30s auf 60s anzuheben hat 
 zwar schon zu einer Verbesserung geführt, das Problem aber noch nicht 
 behoben. 

Richtig, sondern nur verschoben.
 Ich weiß allerdings auch nicht genau, was diesen Fehler verursacht bzw. 
 wodurch er ausgelöst wird. Ich weiß nur, dass bei der angegebenen 
 Zeilennummer eine while-Schleife zu finden ist. 
 Die Frage ist nun die: liegts am Server oder an der Programmierung 
 (Endlosschleife etc.)? Ich habe den Code nicht selbst geschrieben und weiß 
 daher nicht genau, was da passiert.
 
Das Script versuchen zu debuggen. Was macht das Script?

Paul
-- 
: Bitte einen Realname benutzen, unter dem Zitat antworten
: und einfache Text-Mails senden (kein HTML).
: Danke.


signature.asc
Description: Digital signature


Re: PHP execution time exeeded

2007-09-10 Thread Dirk Nijenhuis

Hallo Sven!



Sven Kobow schrieb:

Servus Mario,

hier die schleife:

// {wbvar ...} finden und entsprechend einsetzen

while(stristr($c,'{wbvar'))
{
$ii= stristr($c,{wbvar);
$paras = split( ,substr($ii,1,strpos($ii,})-1));
$ii = stristr($c,{wbvar);
$c  = substr($c,0,strlen($c)-strlen($ii)).
$$paras[1].substr(stristr($ii,}),1);
};

was da allerdings genau geschieht kann ich auch nicht sagen. kann leider nicht 
mehr code rausgeben, da er mir nicht gehört.
  


Dann finde es doch heraus. Lasse Dir in der Schleife $ii und $c 
ausgeben. Zur Übersichtlichkeit eventuell einfach einen Zähler mitlaufen 
lassen und ausgeben. Ich vermute, dass Du dann siehst wann und warum die 
while-Bedingung unendlich oft wahr ist.

Und dann sollte es Dir über
http://www.php.net/manual/de/indexes.php
möglich sein zu verstehen was da passiert.

[...]


Grüße
von

Dirk

--
   Apache HTTP Server Mailing List users-de 
 unsubscribe-Anfragen an [EMAIL PROTECTED]

  sonstige Anfragen an [EMAIL PROTECTED]
--



[EMAIL PROTECTED] How to mask an URL with .htaccess

2007-09-10 Thread thomas Armstrong
 Hi.

I want to make http://mysite.com/post/004.htm --
http://mysite.com/post.php?id=004
but not redirecting but masking the URL (the first URL must be shown
and not the second one).

My .httaccess:
--
RewriteEngine On
RewriteBase /
DirectoryIndex index.php index.html
RewriteRule ^post/(.*).htm post.php?id=$1 [R=301,L]
---

I also tried with:
RewriteRule ^post/(.*).htm post.php?id=$1 **whithout R,L**
I got this URL: http://mysite.com/post.php/005.htm?id=005

I also tried with
RewriteRule ^post/(.*).htm post.php?id=$1 [L]
I got this URL: http://mysite.com/post.php?id=005

I also tried with
RewriteRule ^post/(.*).htm http://mysite.com/post.php?id=$1 [L]
I got this URL: http://mysite.com//post.php/005.htm?id=005

Any suggestion?

-
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] Intermittent Unresponsiveness of Apache

2007-09-10 Thread mark redding
Hi all,

For the past 5 weeks now I've been experiencing an intermittent problem with
Apache 1.3.37. The server simply stops serving pages and remains in an
unresponsive state until I issue an apachectl restart after which it
returns to normal operation. I can find no pattern to this, as at times the
server will function normally for many days and at other times it will
become unresponsive twice a day. I have tried looking into the error log and
access log files, however the error log contains no information that is of
use (it only contains file not found and process restart type messages),
as the site is very busy (it has served 800,000 pages/images in the last two
days (totally 5.8GB) I have been unable to find a pattern in the access log
file that may point to any particular page or php script that may be causing
a problem).

Prior to August (when the problem first surfaced) the server did not exhibit
the problem, yet NO apache/kernel/userland software upgrade have taken place
since the server was build back in February. My best guess is that either a
php script is causing the problem, or that some security hole is
infrequently being exploited to generate a DOS. I have tracked back through
the code releases on the site and last change prior to the problem surfacing
was fully 7 days prior to it.


The server is running RedHat Linux :-

Red Hat Enterprise Linux ES release 4 (Nahant Update 4)

Linux web02 2.6.9-42.0.10.ELsmp #1 SMP Fri Feb 16 17:17:21 EST 2007 i686
i686 i386 GNU/Linux


with Apache :-

Server version: Apache/1.3.37 (Unix)
Server built:   Feb 21 2007 11:33:58


And uses (amongst others) :-

LoadModule php4_modulelibexec/libphp4.so


The main configuration file changes from the norm are :-

KeepAlive On
MaxKeepAliveRequests 128
KeepAliveTimeout 8
MinSpareServers 40
MaxSpareServers 80
StartServers 64
MaxClients 128
MaxRequestsPerChild 128
ExtendedStatus On

Listen 8044


The 'rather old' version of PHP I am using is :-

PHP 4.4.2 (cli) (built: May  2 2007 10:28:50)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
with Zend Extension Manager v1.2.0, Copyright (c) 2003-2006, by Zend
Technologies
with Zend Optimizer v3.2.2, Copyright (c) 1998-2006, by Zend
Technologies



The server itself, a Dell PowerEdge 1950 with 2GB of memory and 2 dual core
2.33GHz Xeon processors, is not CPU bound (the load average does not exceed
0.6) nor it is starved of memory.


Any ideas as to where I should look next to try to resolve this would be
most appreciated ?

-- 
bright blessings,
Mark


[EMAIL PROTECTED] Modify access to directory

2007-09-10 Thread Davide De Nicolo XX (SA/ERI)
Hi all,
I need an information about modifying access to third level domain, I'll
explain it:

I've a virtual server with apache and mydomain.com IP is set to it and
I've a third level domain as webmail.mydomain.com sets to the same IP.

I would like to configure Apache allowing access to openwebmail.

My provider advises me to add this VirtualHost tag, but when I put
http://webmail.mydomain.com in my browser, it's redirect me to
http://vs.provider.com:8080/cgi-bin/openwebmail/openwebmail.pl
changing so my url address.


VirtualHost webmail.mydomain.com
ServerName webmail.mydomain.com
DocumentRoot /home/httpd/docs
DirectoryIndex index.html index.htm index.php openwebmail.pl
RewriteEngine on
RewriteRule ^/$ /openwebmail.pl
RewriteRule (openwebmail.*pl)$
http://vs.provider.com:8080/cgi-bin/openwebmail/$1
RewriteRule ^/(.*)$ http://vs.provider.com:8080/openwebmail/$1
/VirtualHost


Is it possible to change VirtualHost that it'll sets url to
http://webmail.mydomain.com/cgi-bin/openwebmail/openwebmail.pl accessing
to http://webmail.mydomain.com ?

Thank you very much

Davide Denicolo



-
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] How to mask an URL with .htaccess

2007-09-10 Thread Vincent Bray
On 10/09/2007, thomas Armstrong [EMAIL PROTECTED] wrote:
 I want to make http://mysite.com/post/004.htm --
 http://mysite.com/post.php?id=004
 but not redirecting but masking the URL (the first URL must be shown
 and not the second one).

 My .httaccess:
 --
 RewriteEngine On
 RewriteBase /
 DirectoryIndex index.php index.html
 RewriteRule ^post/(.*).htm post.php?id=$1 [R=301,L]
 ---

Clearly you don't want this one as [R] does the opposite of what you're asking.

 I also tried with:
 RewriteRule ^post/(.*).htm post.php?id=$1 **whithout R,L**
 I got this URL: http://mysite.com/post.php/005.htm?id=005

 I also tried with
 RewriteRule ^post/(.*).htm post.php?id=$1 [L]
 I got this URL: http://mysite.com/post.php?id=005

These two look fine. If the browser is still being redirected, it
could be that your script is doing the redirect. One way to tell would
be to watch the http headers during the redirect and see if php
advertises itself (x-Powered-By or whatever it is) on the 3xx
response.

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

 I also tried with
 RewriteRule ^post/(.*).htm http://mysite.com/post.php?id=$1 [L]
 I got this URL: http://mysite.com//post.php/005.htm?id=005

This one is equivalent to the first, because using a full url in the
target implies a 3xx redirect.

-- 
noodl

-
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] Query regarding the httpd.conf

2007-09-10 Thread Praveena Vittal

Hi,

I am trying to make 2 ports listen in same httpd.conf file.

port 1-3032 - https://

port 2 -2022- standalone.

httpd.conf file is below:

ServerType standalone

ServerRoot /opt/SUNWRM2/applications/apache
DocumentRoot   /opt/SUNWTeleAlarm/www_live/docs
PidFile/var/opt/SUNWTeleAlarm/LOG/TeleAlarmweb.pid
ScoreBoardFile /var/opt/SUNWTeleAlarm/LOG/TeleAlarmweb.scoreboard
ErrorLog   /var/opt/SUNWTeleAlarm/LOG/TeleAlarmweb_error_log
LockFile   /var/opt/SUNWTeleAlarm/LOG/TeleAlarmweb.lock

Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 1
MaxSpareServers 3
StartServers 1
MaxClients 150
MaxRequestsPerChild 30

LoadModule env_module libexec/mod_env.so
LoadModule config_log_module  libexec/mod_log_config.so

LoadModule mime_modulelibexec/mod_mime.so
LoadModule negotiation_module libexec/mod_negotiation.so
LoadModule status_module  libexec/mod_status.so
LoadModule includes_modulelibexec/mod_include.so
LoadModule autoindex_module   libexec/mod_autoindex.so
LoadModule dir_module libexec/mod_dir.so
LoadModule cgi_module libexec/mod_cgi.so
LoadModule asis_modulelibexec/mod_asis.so

LoadModule imap_modulelibexec/mod_imap.so
LoadModule action_module  libexec/mod_actions.so
LoadModule userdir_module libexec/mod_userdir.so
LoadModule alias_module   libexec/mod_alias.so
LoadModule access_module  libexec/mod_access.so
LoadModule auth_modulelibexec/mod_auth.so
LoadModule setenvif_modulelibexec/mod_setenvif.so
LoadModule fastcgi_module libexec/mod_fastcgi.so


#IfDefine SSL
LoadModule ssl_module libexec/libssl.so
#/IfDefine

ClearModuleList
AddModule mod_env.c
AddModule mod_log_config.c
AddModule mod_mime.c
AddModule mod_negotiation.c
AddModule mod_status.c
AddModule mod_include.c
AddModule mod_autoindex.c
AddModule mod_dir.c
AddModule mod_cgi.c
AddModule mod_asis.c
AddModule mod_imap.c
AddModule mod_actions.c
AddModule mod_userdir.c
AddModule mod_alias.c
AddModule mod_access.c
AddModule mod_auth.c
AddModule mod_so.c
AddModule mod_setenvif.c
AddModule mod_fastcgi.c
#IfDefine SSL
AddModule mod_ssl.c
#/IfDefine
Port 2022



User rm2
Group other

ServerAdmin [EMAIL PROTECTED]
ServerName localhost

Directory /
   Options All
   AllowOverride None
/Directory

AccessFileName .htaccess
UseCanonicalName On
DefaultType text/plain
IfModule mod_mime_magic.c
   MIMEMagicFile /opt/Apache/conf/magic
/IfModule
HostnameLookups Off



LogLevel debug
LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\ \%{User-Agent}i\ 
combined


LogFormat %h %l %u %t \%r\ %s %b common
LogFormat %{Referer}i - %U referer
LogFormat %{User-agent}i agent

CustomLog /var/opt/SUNWTeleAlarm/LOG/TeleAlarmweb_access_log common
ServerSignature On

Alias /index.html /opt/SUNWTeleAlarm/www_live/cgi-bin/frontpage.cgi
PassEnv LD_LIBRARY_PATH

Directory /opt/Apache/icons
   Options Indexes MultiViews
   AllowOverride None
   Order allow,deny
   Allow from all
/Directory
ScriptAlias /cgi-bin/ /opt/SUNWTeleAlarm/www_live/cgi-bin/
Directory /opt/SUNWTeleAlarm/www_live/cgi-bin/
   AllowOverride None
   Options ExecCGI
   Order allow,deny
   Allow from all
/Directory

AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*
AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core
AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^

DefaultIcon /icons/unknown.gif
IndexOptions FancyIndexing SuppressDescription
AddDescription StarOffice Doc .sdw
AddDescription PostScript .ps
AddAltByType Star .sdw
HeaderName .index_head
ReadmeName README
HeaderName HEADER
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
AddEncoding x-compress Z
AddEncoding x-gzip gz
AddLanguage en .en
AddLanguage fr .fr
AddLanguage de .de
AddLanguage da .da
AddLanguage el .el
AddLanguage it .it
LanguagePriority en fr de
AddHandler cgi-script .cgi .pl
AddHandler fastcgi-script .fcg .fcgi .exe
AddType httpd/send-as-is csv  download
BrowserMatch Mozilla/2 nokeepalive
BrowserMatch MSIE 4\.0b2; nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch RealPlayer 4\.0 force-response-1.0
BrowserMatch Java/1\.0 force-response-1.0
BrowserMatch JDK/1\.0 force-response-1.0


#IfDefine SSL
AddType 

[EMAIL PROTECTED] https support for Apache

2007-09-10 Thread Ashwani Kumar Sharma
Hi,

 

Please tell me how to enable the https support for Apache web server.

 

 

 

 

Thanks and Regards,

Ashwani Sharma

Mob: 09916454843

Off: +91-80-26265053

 



DISCLAIMER:
This message (including attachment if any) is confidential and may be 
privileged. Before opening attachments please check them for viruses and 
defects. MindTree Consulting Limited (MindTree) will not be responsible for any 
viruses or defects or any forwarded attachments emanating either from within 
MindTree or outside. If you have received this message by mistake please notify 
the sender by return  e-mail and delete this message from your system. Any 
unauthorized use or dissemination of this message in whole or in part is 
strictly prohibited.Please note that e-mails are susceptible to change and 
MindTree shall not be liable for any improper, untimely or incomplete 
transmission.
E-mail may contain viruses. Before opening attachments please check them for 
viruses and defects. While MindTree Consulting Limited (MindTree) has put in 
place checks to minimize the risks, MindTree will not be responsible for any 
viruses or defects or any forwarded attachments emanating either from within 
MindTree or outside. 


Re: [EMAIL PROTECTED] utf-8 encoded htaccess?

2007-09-10 Thread Martin Strand

On Mon, 10 Sep 2007 04:40:44 +0200, Vincent Bray [EMAIL PROTECTED] wrote:


On 10/09/2007, Martin Strand [EMAIL PROTECTED] wrote:

This must be a UA problem - none of IE/FF/Opera decodes the name, they
must've forgotten to read rfc2617. :)


Or quite possibly an apache problem, given that this string must be
shoehorned in to the WWW-Authenticate header along with the other
tokens. Does the header look reasonable? I'm not sure if apache
supports this at all.


I did some experimenting with PHP. This script outputs an RFC compliant  
header (as far as i can tell) but IE/FF/Opera won't decode the realm name:


?php
header(WWW-Authenticate: Basic realm=\=?utf-8?B?5pel5pys6aaZ5aCC?=\,  
true, 401);

?


The same thing works fine for a filename so there's nothing wrong with the  
actual encoding:


?php
header(Content-Disposition: attachment;  
filename=\=?utf-8?B?5pel5pys6aaZ5aCC?=\);

?


It really seems to be a UA problem. According to those RFCs, both 'realm'  
and 'filename' are supposed to be 'quoted-string' and should be treated  
exactly the same. It just seems so weird that three major browser vendors  
would miss this.

Frustrating... :\

Martin

-
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] https support for Apache

2007-09-10 Thread Neil A. Hillard
Hi,

Ashwani Kumar Sharma wrote:
 Hi,
 
 Please tell me how to enable the https support for Apache web server.

You should start by reading the manual - try:

http://httpd.apache.org/docs/2.2/ssl/

Then you should come back here and ask questions if you get stuck
(including full details of what you've tried, what errors you got and
any other details).

You should also only send to the mailing list in plain text (i.e. switch
off HTML e-mail).


Neil.

-- 
Neil Hillard[EMAIL PROTECTED]
AgustaWestland  http://www.whl.co.uk/

Disclaimer: This message does not necessarily reflect the
views of Westland Helicopters Ltd.

-
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 won't write to log files

2007-09-10 Thread Aaron Smith
Me again.  Hope springs eternal that I'll be able to find
someone who can respond to the odd issues I'm having.  My previous
problem of Apache not working correctly when accessed via SSL has
morphed.  Before, connecting to the SSL port would sort of work in
that you'd get a page, but there would be delays and child processes
would spawn for each request.  /server-status would show all these
processes in a Waiting... state with NO activity listed.  I recompiled
apache with one small change in that I changed the CPPFLAGS entry for
the OpenSSL libraries from -I/opt/openssl098d/include to
-I/opt/openssl098d/include/openssl.  

So now apache starts up, you can click around (using SSL)
just fine with no delays and everything looks good with no endlessly
spawning child processes.  Except that it doesn't write anything to
access_log (or error_log other than the initial start up messages).  If
you switch to plain HTTP, it logs fine.  Also, if you do an apachectl
stop, each child process SegFaults instead of exiting cleanly...

 

Thoughts?  Suggestions?

 

Aaron

 

 

 



RE: [EMAIL PROTECTED] Apache won't write to log files

2007-09-10 Thread Aaron Smith
I'm sorry, I was incorrect.  What's happening now is that, instead of a
new child process spawning for each request and sticking around, the
child process each request results in a child process segfaulting and
dying with a new one spawning to replace it.

 



Aaron Smith[EMAIL PROTECTED]

System Administrator   (269) 337-7496

Kalamazoo College

 



From: Aaron Smith [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 10, 2007 8:38 AM
To: users@httpd.apache.org
Subject: [EMAIL PROTECTED] Apache won't write to log files

 

Me again.  Hope springs eternal that I'll be able to find
someone who can respond to the odd issues I'm having.  My previous
problem of Apache not working correctly when accessed via SSL has
morphed.  Before, connecting to the SSL port would sort of work in
that you'd get a page, but there would be delays and child processes
would spawn for each request.  /server-status would show all these
processes in a Waiting... state with NO activity listed.  I recompiled
apache with one small change in that I changed the CPPFLAGS entry for
the OpenSSL libraries from -I/opt/openssl098d/include to
-I/opt/openssl098d/include/openssl.  

So now apache starts up, you can click around (using SSL)
just fine with no delays and everything looks good with no endlessly
spawning child processes.  Except that it doesn't write anything to
access_log (or error_log other than the initial start up messages).  If
you switch to plain HTTP, it logs fine.  Also, if you do an apachectl
stop, each child process SegFaults instead of exiting cleanly...

 

Thoughts?  Suggestions?

 

Aaron

 

 

 



[EMAIL PROTECTED] Fwd: Intermittent Unresponsiveness of Apache

2007-09-10 Thread mark redding
The behaviour seems to be a little different to that which I described
below. I have checked back through the log file for the time of the last
occurence and can see that already established connections (I presume
because of KeepAlive being switched on) continue to be served (for example,
I have a script that refreshes every 5 seconds and this continued to be
served) whereas new connections are not responded to.

I believe I have ruled out external network sources for the problem as a
wget http://localhost:8044; does not receive a response when apache is in
this state.

regards,
Mark

-- Forwarded message --
From: mark redding [EMAIL PROTECTED]
Date: 10 Sep 2007 10:38
Subject: Intermittent Unresponsiveness of Apache
To: users@httpd.apache.org

Hi all,

For the past 5 weeks now I've been experiencing an intermittent problem with
Apache 1.3.37. The server simply stops serving pages and remains in an
unresponsive state until I issue an apachectl restart after which it
returns to normal operation. I can find no pattern to this, as at times the
server will function normally for many days and at other times it will
become unresponsive twice a day. I have tried looking into the error log and
access log files, however the error log contains no information that is of
use (it only contains file not found and process restart type messages),
as the site is very busy (it has served 800,000 pages/images in the last two
days (totally 5.8GB) I have been unable to find a pattern in the access log
file that may point to any particular page or php script that may be causing
a problem).

Prior to August (when the problem first surfaced) the server did not exhibit
the problem, yet NO apache/kernel/userland software upgrade have taken place
since the server was build back in February. My best guess is that either a
php script is causing the problem, or that some security hole is
infrequently being exploited to generate a DOS. I have tracked back through
the code releases on the site and last change prior to the problem surfacing
was fully 7 days prior to it.


The server is running RedHat Linux :-

Red Hat Enterprise Linux ES release 4 (Nahant Update 4)

Linux web02 2.6.9-42.0.10.ELsmp #1 SMP Fri Feb 16 17:17:21 EST 2007 i686
i686 i386 GNU/Linux


with Apache :-

Server version: Apache/1.3.37 (Unix)
Server built:   Feb 21 2007 11:33:58


And uses (amongst others) :-

LoadModule php4_modulelibexec/libphp4.so


The main configuration file changes from the norm are :-

KeepAlive On
MaxKeepAliveRequests 128
KeepAliveTimeout 8
MinSpareServers 40
MaxSpareServers 80
StartServers 64
MaxClients 128
MaxRequestsPerChild 128
ExtendedStatus On

Listen 8044


The 'rather old' version of PHP I am using is :-

PHP 4.4.2 (cli) (built: May  2 2007 10:28:50)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
with Zend Extension Manager v1.2.0, Copyright (c) 2003-2006, by Zend
Technologies
with Zend Optimizer v3.2.2, Copyright (c) 1998-2006, by Zend
Technologies



The server itself, a Dell PowerEdge 1950 with 2GB of memory and 2 dual core
2.33GHz Xeon processors, is not CPU bound (the load average does not exceed
0.6) nor it is starved of memory.


Any ideas as to where I should look next to try to resolve this would be
most appreciated ?

-- 
bright blessings,
Mark



-- 
bright blessings,
Mark


Re: [EMAIL PROTECTED] Intermittent Unresponsiveness of Apache

2007-09-10 Thread Joshua Slive
On 9/10/07, mark redding [EMAIL PROTECTED] wrote:

 Any ideas as to where I should look next to try to resolve this would be
 most appreciated ?

I suppose you can't get to the server-status page when this is happening?

The only real way to debug a problem like this, as far as I know, is
to locate an apache process that is frozen (should be serving new
connections, but isn't) and attach to it with a debugger to see where
it is locked up. Some info on how to do this is at
http://httpd.apache.org/dev/debugging.html#backtrace

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] utf-8 encoded htaccess?

2007-09-10 Thread Vincent Bray
On 10/09/2007, Martin Strand [EMAIL PROTECTED] wrote:
 It really seems to be a UA problem. According to those RFCs, both 'realm'
 and 'filename' are supposed to be 'quoted-string' and should be treated
 exactly the same. It just seems so weird that three major browser vendors
 would miss this.
 Frustrating... :\

Indeed. I'm reaching a bit here but how about checking with a UA
that's meant to be a standards facist? I'm thinking the likes of svn
(via libneon) or links or wget, those kinds of command line clients.

Googling this issue doesn't shed much light :(

Iit would help to see a dump of the actual headers sent on the wire,
just in case apache's somehow mangling it. There was a link to the
wiki page containing several ways to watch those in an earlier post.

-- 
noodl

-
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] jk-runtime-status file

2007-09-10 Thread Gerhardus.Geldenhuis
Hi
Platform: Linux LONGAPA02C 2.6.9-55.ELsmp #1 SMP Wed May 2 14:04:42 EDT
2007 x86_64 x86_64 x86_64 GNU/Linux
Httpd: httpd-2.0.52-32.3.ent.centos4
mod_jk .25
 
When using mod_jk it complains about this file not being present
 
 No JkShmFile defined in httpd.conf. Using default
/etc/httpd/logs/jk-runtime-status
 
The documentation does not state what this file is actually used for nor
have I seen any adverse effects for not explictely defining it.
 
Any ideas...
 
Regards

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

[EMAIL PROTECTED] jk-runtime-status file

2007-09-10 Thread Davide Bianchi

[EMAIL PROTECTED] wrote:

When using mod_jk it complains about this file not being present
 
 No JkShmFile defined in httpd.conf. Using default 
/etc/httpd/logs/jk-runtime-status
 
The documentation does not state what this file is actually used for nor 
have I seen any adverse effects for not explictely defining it.


The shm file is a Shared Memory storage, usually it's used to share 
informations between multiple Apache servers to handle load balancing.


Davide

--
'Windows for Dummies'; says it all, really.
--Gary Barnes

-
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] jk-runtime-status file

2007-09-10 Thread Bj
This file is used for shared memory, lock, ...of mod_jk threads.
if you don't declare it in your mod_jk config file, mod_jk will create a
default one in your http log directory.

-- 
Bj

On 9/10/07, [EMAIL PROTECTED] 
[EMAIL PROTECTED] wrote:

 Hi
 Platform: Linux LONGAPA02C 2.6.9-55.ELsmp #1 SMP Wed May 2 14:04:42 EDT
 2007 x86_64 x86_64 x86_64 GNU/Linux
 Httpd: httpd-2.0.52-32.3.ent.centos4
 mod_jk .25

 When using mod_jk it complains about this file not being present

  No JkShmFile defined in httpd.conf. Using default
 /etc/httpd/logs/jk-runtime-status

 The documentation does not state what this file is actually used for nor
 have I seen any adverse effects for not explictely defining it.

 Any ideas...

 Regards

 __
 This email has been scanned by the MessageLabs Email Security System.
 For more information please visit http://www.messagelabs.com/email
 __



[EMAIL PROTECTED] RE : [EMAIL PROTECTED] Apache 2.2.3 with mod_authn_dbd and pgsql

2007-09-10 Thread Laurent FAILLIE
Hi Dustin,

--- Dustin Schuemann [EMAIL PROTECTED] a écrit :

 Im trying to use mod_authn_dbd with pgsql my table
 structure is 3  
 columns username,password,group. When I try to login
 into the  
 protected directory I get a 500 error. My apache
 conf is below. My  
 logs are [Sun Sep 09 20:04:05 2007] [error] [client
 127.0.0.1] Error  
 looking up blah in database

I wasn't able to make authentication against pgsql
database to work w/ 2.2.4 (see this mailling list
archive). I have also opened a bug report on the same
and a fix has been proposed.

As I'm in paternity leave (YEA :-)) I can't test
it before next week. I duno if this fix has been
promoted to 2.2.6

Bye

Laurent


The misspelling master is on the Web.
   _100 % Dictionnary Free !
  //(
 /  Dico  / /   Pleins d'autres fautes sur
// /
(###( / http://destroyedlolo.homeunix.org
Quoi, des fautes d'orthographe! Pas possible ;-D.


  
_ 
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail 

-
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] how to check caching is disabled?

2007-09-10 Thread Dragon

rahul gundecha wrote:
thanks Joshua for helping, I really appreciate your instantaneous 
and correct solution.


Just to point out confusion in the thread -

first time you replied -
check for mod_cache, mod_file_cache, and similar modules. If they 
are turned off, then you don't likely have any caching going on.


my reply -
 There isn't any cache related entry in that file.
So what's the default setting of apache server ?
I was expecting the answer that without doing anything apart from
normal installation of apache server, will there be caching ? and how to find
about it?

your reply -
But in the default install you will not have any apache-level caching
 if mod_cache and mod_file_cache are both disabled.
now again we end up with same question, how do I know these things 
are disabled?


that's why I asked again. And then I got the correct answer.

 As long as mod_cache and mod_file_cache are not configured, there is no
caching in a default install of apache.

Anyways no hard feelings but just wanted to show lack of clarity in 
your answer.
Thanks for helping me, I really bombarded you with series of 
questions, still you answered them promptly.

 End original message. -

I disagree, I think Joshua's answers were clear and concise.

He said that if it is not configured then you do not have it enabled. 
I don't think that is very difficult to understand though it does 
assume an understanding of the httpd.conf file and configuration of 
individual modules. However, even that is pretty basic stuff and 
easily understood through a perusal of the Apache documentation 
regarding modules.


Dragon

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


-
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] Intermittent Unresponsiveness of Apache

2007-09-10 Thread mark redding
Hi,

 I suppose you can't get to the server-status page when this is happening?


Yes, that is correct...no response is returned when I make this request.

 http://httpd.apache.org/dev/debugging.html#backtrace


Thank you for the pointer. I'll script up something to ptrace the
apache processes when they get 'stuck'.

-- 
bright blessings,
Mark

-
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] Upgrade 1.3.29 to 1.3.37

2007-09-10 Thread McDougall, Marshall (FSH)
I have a couple of 1.3.29 servers that I need to bring up to scratch.  I
have only installed the servers in the past,  I have never had to do an
upgrade.  I have looked through the FAQ's and docs, but I can't find
anything that says, to upgrade do this.  I can't believe it is as
simple as configure, make, make install and I need to preserve my conf
files.  Any enlightenment appreciated.  Thanks.

Regards, Marshall


[EMAIL PROTECTED] Path_info vs. Request_uri Environment Variables

2007-09-10 Thread Roger Haase
I have been unable to find any documentation that clearly states the
difference between the path_info and request_uri environment variables.
The cgi specs at
   http://cgi-spec.golux.com/draft-coar-cgi-v11-03-clean.html
define the path_info variable but do not mention request_uri.  The brief
references I found related to Apache describe path_info as extra path
information and describe request_uri similar to the cgi definition of
path_info.  In the few instances where I dumped the output, the two
variables seem to be the same.

But I have found that if a uri is changed with a rewite command, the
request_uri contains the original browser path and the path_info contains
the changed path.

I am trying to debug a situation that uses a rewrite command to retrieve a
MoinMoin based page. MoinMoin is using the request_uri variable resulting in
a missing page response.   It looks like the fix to this problem is to just
use path_info instead of request_uri, but I an concerned about other
side-effects.

Any advise on the location of more documentation or the difference in values
of these two variables?

Roger Haase


Re: [EMAIL PROTECTED] utf-8 encoded htaccess?

2007-09-10 Thread Martin Strand

On Mon, 10 Sep 2007 15:48:45 +0200, Vincent Bray [EMAIL PROTECTED] wrote:


On 10/09/2007, Martin Strand [EMAIL PROTECTED] wrote:
It really seems to be a UA problem. According to those RFCs, both  
'realm'

and 'filename' are supposed to be 'quoted-string' and should be treated
exactly the same. It just seems so weird that three major browser  
vendors

would miss this.
Frustrating... :\


Indeed. I'm reaching a bit here but how about checking with a UA
that's meant to be a standards facist? I'm thinking the likes of svn
(via libneon) or links or wget, those kinds of command line clients.

Googling this issue doesn't shed much light :(

Iit would help to see a dump of the actual headers sent on the wire,
just in case apache's somehow mangling it. There was a link to the
wiki page containing several ways to watch those in an earlier post.


Alright, I just tried svn but no luck - it doesn't decode the realm name  
and neither does elinks.

I couldn't find a way to show the realm with wget.
Letting wget dump the response shows that the header looks just fine:

WWW-Authenticate: Basic realm==?utf-8?B?5pel5pys6aaZ5aCC?=

As far as I understand those two RFCs, that's exactly how it's supposed to  
look.


Martin

-
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] Re: mod_dav on a shared hosting.

2007-09-10 Thread Michaël Cadilhac
[gmane is down ; resent via the mailing-list]

Hi!

As this question is not really mod_dav centered, I hope you guys can
help!

[EMAIL PROTECTED] (Michaël Cadilhac) writes:

 Sorry if this question has been asked before, I just can't found the
 information.

 My web host said to me, « If you give us a way to switch on DAV for
 every clients just by adding a few lines to our global configuration,
 then we'll add them ».

 So, I'm not at all a regular user of Apache, but I told them « You just
 have to add the DavLockDb line, and then for each client file (each
 VirtualHost), add a ` Location /webdav DAV On /Location ' line. »

 They insisted on the fact that the change HAS to be on the global file
 only.  So, is there a way to say: « The /webdav directory of each
 VirtualHost has DAV On » ?

Thanks in advance!

-- 
 |   Michaël `Micha' Cadilhac   |   Did you Mooh today ? |
 |   http://michael.cadilhac.name   ||
 |   JID/MSN:   |   http://boitam.eu/|
 `  [EMAIL PROTECTED]  |   -  --'


pgpIkbxgmrcHp.pgp
Description: PGP signature


Re: [EMAIL PROTECTED] configuring SSL

2007-09-10 Thread Galaxy Virus
Thank you so much for your reply. I got it. But I have still some problems.
   
  1) Our MoCA organisation issued sequrity certificate for everyone who is the 
member of that organisation. The members used their own file to browse the  
www.123.com. 
   
  2) I made new server hosting www.abc.com and I generated hostreq.pem file and 
sent it to MoCA to get signed CA certificate file. After I got it, I made 
configuration as you explained. 
  It works! 
   
  But the other members browse www.abc.com,  they will use their own 
certificate file issed by the MoCA. It doesnt work. 
   
  Frankly speaking, I just know server.key and server.cert file since I found 
many docs mentioned about ssl configuration. I dont see the case for the users 
who will also use their certificates file. 
   
  Please help me as soon as possible. 
   
  regards,
  galaxy
   
  
 

   
-
Boardwalk for $500? In 2007? Ha! 
Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.

[EMAIL PROTECTED] UDP support for apache

2007-09-10 Thread Yogsothoth GV
Hi all,

Can I configure Apache to serve webpages using UDP as transport protocol.

I see some code in srclib/apr/network_io/unix to make UDP


[EMAIL PROTECTED] UDP support for apache

2007-09-10 Thread Yogsothoth GV
Hello,

Sorry previous email was sent before completion.

Can I configure Apache to serve webpages using UDP as transport protocol ?

I see some code in srclib/apr/network_io/unix to send/recv UDP sockets,
which makes me think it might support.  If so how would i configure ? I
don't see documentation for this.

I don't even know if these questions make sense, because to serve webpages
server may force to do have reliability(so only supports TCP).

thanks,
-GV


Re: [EMAIL PROTECTED] UDP support for apache

2007-09-10 Thread Dragon

Yogsothoth GV wrote:

Hi all,

Can I configure Apache to serve webpages using UDP as transport protocol.

I see some code in srclib/apr/network_io/unix to make UDP

 End original message. -

I don't know the answer to your question but I suspect it is very 
likely no. Even though I believe the RFC specifying the HTTP 
protocol does mention that it could be implemented on UDP. AFAIK, all 
practical implementations of HTTP have been over TCP and not UDP.


HTTP could very well work on UDP but all of the browsers I know about 
expect it to function on TCP. So serving it via UDP is pointless if 
you have no client that will accept HTTP over UDP.




Dragon

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


-
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] UDP support for apache

2007-09-10 Thread Chris 'Xenon' Hanson

Yogsothoth GV wrote:

Hello,
Sorry previous email was sent before completion.
Can I configure Apache to serve webpages using UDP as transport protocol ?


  That's the silliest thing I've ever heard of.

  Why would you want to?

I see some code in srclib/apr/network_io/unix to send/recv UDP sockets, 
which makes me think it might support.  If so how would i configure ? I 
don't see documentation for this.

I don't even know if these questions make sense, because to serve webpages
server may force to do have reliability(so only supports TCP).


  Just because there is support for UDP in APR doens't mean Apache uses it. APR is the 
Apache Portable Runtime:

http://apr.apache.org/

  It could be sued for a lot of things other than Apache itself.


thanks,
-GV



--
 Chris 'Xenon' Hanson | Xenon @ 3D Nature | http://www.3DNature.com/
 I set the wheels in motion, turn up all the machines, activate the programs,
  and run behind the scenes. I set the clouds in motion, turn up light and 
sound,
  activate the window, and watch the world go 'round. -Prime Mover, Rush.

-
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] UDP support for apache

2007-09-10 Thread Joshua Slive
On 9/10/07, Yogsothoth GV [EMAIL PROTECTED] wrote:
 Hi all,

 Can I configure Apache to serve webpages using UDP as transport protocol.

 I see some code in srclib/apr/network_io/unix to make UDP

See this month's archives of the [EMAIL PROTECTED] list.

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] Mass Virtual Hosting

2007-09-10 Thread pavel . stratil-jun
Hi!

I'm trying to think of an optimal mass vhosting solution for my server.
But even after reading http://httpd.apache.org/docs/2.2/vhosts/mass.html
and http://httpd.apache.org/docs/2.2/mod/mod_vhost_alias.html I couldn't
make up my mind and have actually more questions then aswers. Here they
are:

1. I have the choice of using mod_vhost_alias nad mod_rewrite.
  a. Did anyone compare the performance of these two modules for mass
hosting? Since mod_vhost_alias is meant just to do that i guess that it
might perform better..
  b. Won't mod_rewrite issue some redirect (3xx) response when used?
  c. Cant the mod_rewrite rewrites collide somehow with other rewrites in
htaccess files of the vhosted domains?
  d. Are there any other pros/cons for using one over the other?
  e. Whatever method I will use in the end, how many vhosting types should
I consider? In http://httpd.apache.org/docs/2.2/vhosts/mass.html is
pointed out that I can use more then one mass vhosting schemes (i.e. for
homepages and for commertial sites). But I can't really imagine real
dfferences between serving homepages and commertial sites. To me it
seems that all one needs is one mass vhosting template and
(custom/manual) vhosting that would allow to host sites that wont fit
the template (i.e. i'm not sure if apache apache would handle correctly
sites with pure IDN directory names - would punny code work here? What
would you suggest?). If there are some reasons to use more then one mass
vhosting template, please give me an example, I dont want to overlook
something.

2. How would you implement this? I have something in mind, please correct
me if something seems problematic
  a. The server I'm speaking about would carry several hundreds of domains
(~500). Therefore I'd split domains according to their first letter.
  b. I'd like the users to be able to create subdomains by creating
directories. This is the simplest way I was able to think of
 /var/www/template/s/somehost.com/htdocs/somehost.com 
(maps to http://somehost.com)
 /var/www/template/s/somehost.com/htdocs/www.somehost.com 
(maps to http://www.somehost.com - I hope this would if
www.somehost.com would softlink to somehost.com?)
 /var/www/template/s/somehost.com/htdocs/subdomain1.somehost.com  
(mapping to http://subdomain1.somehost.com)
 For this is this correct (fro using mod_vhost_alias)?
 UseCanonicalName Off
 VirtualDocumentRoot /var/www/template/%-2.1/%-2.%-1/htdocs/%0
 I'm not sure if I understood the docs perfectly.

Thanks in advance for any answers..

Pavel



-
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] UDP support for apache

2007-09-10 Thread Yogsothoth GV
On 9/10/07, Chris 'Xenon' Hanson [EMAIL PROTECTED] wrote:

 Yogsothoth GV wrote:
  Hello,
  Sorry previous email was sent before completion.
  Can I configure Apache to serve webpages using UDP as transport protocol
 ?

That's the silliest thing I've ever heard of.


Yes it is silly, only if you think all data that HTML serves requires TCP
like transport semantics. Moreover, HTML specification doesn't specify what
semantics to use for transport, right ?
However, content may impose those semantics.

|   Why would you want to?
Say, you are streaming video/audio over HTML like Flash, quicktime.  This
doesn't
necessarily require TCP like semantics because delay due to packet
retransmission or HOL blocking is bad (when serving real time data).
However, if you are using a transport protocol like
UDP  you might experience small disturbance, which is better than stalled
video/audio. This
is one reason that I can think on top of my head.

 I see some code in srclib/apr/network_io/unix to send/recv UDP sockets,
  which makes me think it might support.  If so how would i configure ? I
  don't see documentation for this.
  I don't even know if these questions make sense, because to serve
 webpages
  server may force to do have reliability(so only supports TCP).

Just because there is support for UDP in APR doens't mean Apache uses
 it. APR is the
 Apache Portable Runtime:
 http://apr.apache.org/

   It could be sued for a lot of things other than Apache itself.

I completely agree they might be using for totally different purpose. I just
started diving into the
code and trying to make sense of it.

-GV


  thanks,
  -GV


 --
   Chris 'Xenon' Hanson | Xenon @ 3D Nature | http://www.3DNature.com/
   I set the wheels in motion, turn up all the machines, activate the
 programs,
and run behind the scenes. I set the clouds in motion, turn up light
 and sound,
activate the window, and watch the world go 'round. -Prime Mover,
 Rush.

 -
 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] UDP support for apache

2007-09-10 Thread Dragon

On Mon, September 10, 2007 18:26, Yogsothoth GV wrote:
 On 9/10/07, Chris 'Xenon' Hanson [EMAIL PROTECTED] wrote:

 Yogsothoth GV wrote:
  Hello,
  Sorry previous email was sent before completion.
  Can I configure Apache to serve webpages using UDP as transport
 protocol
 ?

That's the silliest thing I've ever heard of.


 Yes it is silly, only if you think all data that HTML serves requires TCP
 like transport semantics. Moreover, HTML specification doesn't specify
 what
 semantics to use for transport, right ?
 However, content may impose those semantics.

Actually, the fact that nobody has implemented HTTP over UDP puts such a
constraint on you. Just because the RFC allows for it does not mean that
somebody has actually implemented it on both the server and client side.



 |   Why would you want to?
 Say, you are streaming video/audio over HTML like Flash, quicktime.  This
 doesn't
 necessarily require TCP like semantics because delay due to packet
 retransmission or HOL blocking is bad (when serving real time data).
 However, if you are using a transport protocol like
 UDP  you might experience small disturbance, which is better than stalled
 video/audio. This
 is one reason that I can think on top of my head.

I am no expert here, but there are probably much better ways to do this
using more recent and more sophisticated protocols.

When I was working for a company that shall not be named that was working
on edge routing solutions, one of the big things was QOS and priority
scheduling of real-time or streaming data. Unfortunately, my knowledge
here is barely superficial as I never had to get deep into the mechanics
of that to write my test software (which ran functional testing of various
high-speed ATM optical network interfaces).

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


-
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] Having problems getting mod_authnz_ldap to work right

2007-09-10 Thread Rob Tanner

Hi,

I upgraded from Apace 2.0.53 to 2.2.4 and from mod_auth_ldap to 
mod_authnz_ldap and that's where my troubles began.  I have one 
protected directory that anyone with an LDAP entry should be able to 
access, but something is failing in the process and Apache is not 
providing in helpful logs (when I deliberately mistype my password I get 
an error in the error_log but other times no log)


Here's the configuration on the old server that does work:
Directory /var/apache/html/support/protected
   SSLRequireSSL
   AuthLDAPUrl ldap://biblio.linfield.edu:389/o=linfield.edu?uid
   AuthLDAPBindDN cn=secret, ou=Special Users, o=linfield.edu
   AuthLDAPBindPassword secret
   AuthName Protected
   AuthType Basic
   Limit GET
   require valid-user
   /Limit
   Options Indexes FollowSymLinks
   AllowOverride None
/Directory

Here's my attempted mod_authnz_ldap configuration:
Directory /var/apache/html/support/protected
   SSLRequireSSL
   AuthBasicProvider ldap
   AuthLDAPURL ldap://biblio.linfield.edu:389/o=linfield.edu?uid
   AuthLDAPBindDN cn=secret, ou=Special Users, o=linfield.edu
   AuthLDAPBindPassword secret
   AuthName Protected
   AuthType Basic
   Limit GET
   Require valid-user
   /Limit
   Options Indexes FollowSymLinks
   AllowOverride None
/Directory

Can someone please tell me what's missing?

Thanks,
Rob


--
Rob Tanner
UNIX Services Manager
Linfield College, McMinnville OR

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