Hi all,

  I'm just in the process of plugging holes in a server config,
  getting it ready to go live and played with EMBPERL_MAIL_ERRORS_TO
  for the first time.

  I've enabled optReturnError and set the appropriate ErrorDocument if
  this makes any difference.

  Everything now works great, except that I'm getting 3 copies of
  every error email. Has anyone else experienced this? The emails have
  different message IDs and all are sent one after the other.

  We're running a CVS version of Embperl: 1.3.4_dev-4 with SessionX,
  Apache/1.3.12 (Unix) Debian/GNU mod_ssl/2.6.4 OpenSSL/0.9.4
  mod_perl/1.24

  Relevant lines from the httpd.conf follow.

PerlTaintCheck On
PerlWarn On
PerlSetEnv EMBPERL_DEBUG 39862509
#PerlSetEnv EMBPERL_OPTIONS 8208
# 8208 + 262144 (optReturnError)
PerlSetEnv EMBPERL_OPTIONS 270352

PerlSetEnv EMBPERL_SESSION_CLASSES "Postgres Null Base64"
PerlSetEnv EMBPERL_SESSION_ARGS "DataSource=dbi:Pg:dbname=sessions;host=blah 
Transaction=1 Commit=1"
PerlSetEnv EMBPERL_OBJECT_HANDLER_CLASS Switch::EmbperlReq
PerlSetEnv EMBPERL_MAIL_ERRORS_TO [EMAIL PROTECTED]

PerlRequire startup.pl
PerlFreshRestart On

PerlModule Apache::Registry
...
<VirtualHost blah:80>
...
    ErrorDocument 403 /login/index.html
    ErrorDocument 404 /notfound.html
    ErrorDocument 500 /error/index.html

    <Files *.epl>
        order deny,allow
        deny from all
    </Files>

    PerlSetEnv EMBPERL_COOKIE_DOMAIN    .switchsuper.com.au
    PerlSetEnv EMBPERL_COOKIE_PATH      /
    PerlSetEnv EMBPERL_COOKIE_EXPIRES   +7d

    PerlSetEnv EMBPERL_FILESMATCH       "\.html|\.epl$"
    PerlSetEnv EMBPERL_OBJECT_BASE      base.epl
    PerlSetEnv EMBPERL_OBJECT_STOPDIR   /home/andrewo/work/switchonline/www/public_html
    PerlSetEnv EMBPERL_OBJECT_ADDPATH   
/home/andrewo/work/switchonline/www/public_html/defaults
    PerlSetEnv EMBPERL_OBJECT_FALLBACK  notfound.html

    <Location />
        SetHandler perl-script
        PerlHandler HTML::EmbperlObject

        Options ExecCGI SymLinksIfOwnerMatch
        AllowOverride None

        # use the access handler - default to open slather
        PerlAccessHandler Apache::AuthSwitchCookie
        
    </Location>

</VirtualHost>

  

-- 
 Andrew O'Brien                                                               
 Product Engineer                          email: [EMAIL PROTECTED]
 Switch Online Group Pty Limited           phone: +61 2 9299 1133             
 ABN 89 092 286 327                          fax: +61 2 9299 1134             

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to