Forums.ATC.no

Teknisk => Generelt teknisk => Emne startet av: ATC på 25. Mars 2009, 21:31 pm

Tittel: CentOS 5.2: HTML::Mason autohandler gets called twice per request
Skrevet av: ATC25. Mars 2009, 21:31 pm
After moving our virtual web hosts from SuSE 10.1 to CentOS 5.2 we had a peculiar problem with HTML::Mason. For some reason, all virtualhosts using autohandlers would wrap the requested HTML page in the autohandler HTML code twice.
Tittel: [Solved] CentOS 5.2: HTML::Mason autohandler gets called twice per request
Skrevet av: ATC25. Mars 2009, 21:31 pm
On the old SuSE server, we used one global
PerlAddVar MasonCompRoot "main => /base/path"
plus one
PerlAddVar MasonCompRoot "vhost => /base/path/vhost"
for each virtualhost.

On the CentOS 5.2 server we had to change this to just one
PerlSetVar MasonCompRoot /base/path/vhost
for each virtualhost.

Similarly, we had to replace
PerlAddVar MasonDataDir /base/path/vhost
with
PerlSetVar MasonDataDir /base/path/vhost
in order to get the cache to keep virtualhosts separate.