perl-asp mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Chamas <jos...@chamas.com>
Subject Re: PerlSetVar Global and Multiple Applications with Virtual Hosts
Date Thu, 15 Nov 2001 20:37:19 GMT
"John D. Leonard II" wrote:
> 
> Joshua:
> 
> > # NODEWORKS HTTP
> > <VirtualHost 206.135.235.178:80>
> >   ServerName www.nodeworks.com
> >   ServerAlias nodeworks.com
> >   Include conf/nodeworks/html.conf
> >   PerlSetVar StatScripts 0
> > </VirtualHost>
> 
> What is inside one of the .conf files used in the Include statement above?
> 

Not everything, but here's what matters to making NodeWorks tick,
starting with the non-SSL portion of the site:

# conf/nodeworks/html.conf
        ServerAdmin ##########@chamas.com
        ServerName  www.nodeworks.com
        PerlPostReadRequestHandler My::ProxyRemoteAddr
        SSLDisable 
        DocumentRoot /usr/local/proj/mlink/site/html
        DirectoryIndex default.htm 
        Options +FollowSymLinks
        Alias /img /usr/local/proj/mlink/site/img
        Alias /test /usr/local/proj/mlink/site/test
        Include         conf/nodeworks/asp_config.conf
        PerlSetVar      Global          /usr/local/proj/mlink/perllib

<Directory /usr/local/proj/mlink/site/html>
  <Files ~ (\.htm$)>
        SetHandler      perl-script
        PerlHandler     Apache::ASP
  </Files>
</Directory>

Here's the config for the SSL portion of the site:

        PerlPostReadRequestHandler My::ProxyRemoteAddr
        ServerAdmin     ##########@chamas.com
        ServerName      www.nodeworks.com
        Include         conf/nodeworks/asp_config.conf
        PerlSetVar      Global          /usr/local/proj/mlink/perllib
        PerlSetVar      SecureSession   1
        PerlSetVar      StateCache      0
        PerlSetVar      CompressGzip    1
        DocumentRoot    /usr/local/proj/mlink/site/ssl
        Alias           /img /usr/local/proj/mlink/site/img
        Alias           /dload /usr/local/proj/mlink/site/dload

        <Files ~ (\.asp$)>
                SetHandler      perl-script
                PerlHandler     Apache::ASP
                PerlSetVar      AllowSessionState 1
        </Files>

        <Files ~ (\.htm$)>
                SetHandler      perl-script
                PerlHandler     Apache::ASP
        </Files>

And this config is common to both of them... note that the order
of includes matters, as you can override a setting from an 
earlier include if you set it after the include is loaded ...

# asp_config.conf
PerlSetVar      BufferingOn 1
#PerlSetVar     Debug 3
PerlSetVar      Debug -1
PerlSetVar      TimeHiRes 0
PerlSetVar      Clean 0
PerlSetVar      GlobalPackage   Node::Site
PerlSetVar      DynamicIncludes 1
PerlSetVar      MailErrorsTo    ##########@chamas.com
PerlSetVar      MailAlertTo     ##########@chamas.com
PerlSetVar      MailAlertPeriod 10
PerlSetVar      MailHost        mailhost
PerlSetVar      XMLSubsMatch    node:\w+
PerlSetVar      UseStrict       1
PerlSetVar      StateDB         SDBM_File
PerlSetVar      SessionTimeout  120
# application state on for the not_found.inc checksum functionality
PerlSetVar      AllowApplicationState 1
PerlSetVar      AllowSessionState 0
PerlSetVar      StateDir        /tmp/node       
PerlSetVar      SessionQueryParse 1
PerlSetVar      SessionQueryParseMatch ^(https://www\.nodeworks\.com|https?://gate.chamas.com)

That's it.

--Josh
_________________________________________________________________
Joshua Chamas                           Chamas Enterprises Inc.
NodeWorks Founder                       Huntington Beach, CA  USA 
http://www.nodeworks.com                1-714-625-4051

---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org


Mime
View raw message