Just like 
   <VirtualHost www.site1.com>
      DocumentRoot  /usr/local/www/htdocs/site1
      # Mason configuration
      PerlSetVar  MasonCompRoot    /usr/local/www/htdocs/site1
      PerlSetVar  MasonDataDir     /usr/local/mason/site1
      <LocationMatch ...>
        SetHandler   perl-script
        PerlHandler  HTML::Mason::ApacheHandler
      </LocationMatch>
    </VirtualHost>
You should use apache's documentroot to set website's root 
directory.MasonCompRoot just tell mason 
which is the root directory so that you can use relative path.For example,if 
you use '/test.html',it actually
refers to MasonCompRoot + '/test.html'.  




蒋宇捷     
:Maxthon Web前台开发组Leader
:010-51651772-849
[EMAIL PROTECTED]

2008-10-22



发件人: Dave Mabe
发送时间: 2008-10-21 21:13:12
收件人: mason-users@lists.sourceforge.net
抄送: 
主题: [Mason] PerlAddVar MasonCompRoot not being recognized

I'm using Apache 1.3 and mod_perl and Mason seems to ignore whatever I put in 
httpd.conf for MasonCompRoot and MasonDataDir.  This was working on another 
machine.

I put these two lines in my <VirtualHost> section:

PerlAddVar MasonCompRoot /var/www/mysitedir
PerlAddVar MasonDataDir /var/www/mysitedir

It continues to ignore these settings and uses /etc/apache-perl as the root.

-- 
Dave Mabe
StockTickr - Trader Performance Analysis
We Make Traders More Profitable
http://www.stocktickr.com/

Every trade I make is blogged:
http://blog.stocktickr.com/

<<101(10-22-09-19-19).jpg>>

<<70(10-22-09-19-19).gif>>

<<72(10-22-09-19-19).gif>>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to