Hi everyone,

What do you write your file in the apache2/sites-enabled/file

I have done it like this:

NameVirtualHost websiteA:80
>
> <VirtualHost websiteA:80>
>  ServerName websiteA
>  DocumentRoot /var/www/websiteA
>
> PerlSetVar MasonCompRoot /var/www/websiteA/docs
> PerlSetVar MasonDataDir    /var/www/websiteA/docs
>
> <LocationMatch "\.html$">
> SetHandler perl-script
> PerlHandler HTML::Mason::ApacheHandler
> </LocationMatch>
> </VirtualHost>
>

This code was done maybe 6 months ago, and now i realize that the components
should be the ones that have the perl logic to create the HTML.

As i'm going to do all from zero, could you give me some advices, example:
do you put your components in one folder and the html in other? How they are
separated ? And if i have a database schema?

Let's Say i want to have in /var/www/new-website :
Files that connect to database (Dbix::Class)
component files
"normal" html files

I'm trying to explain.... but i'm with some dificulties, so my question is :
What is the right structure for a HTML::Mason based website? and ... What is
the right Apache2 configuration ?

Thank you for your time,
David Silva
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to