dear monks,

we will make a simple webservice public very soon. this beast now finally runs fine under mod_perl. now I am trying to find the best apache2 configuration. i've taken a simple example from the modperlbook:

<VirtualHost *:80> # default things like doc. root Alias /perl/ /var/www/modperl/ PerlModule ModPerl::Registry <Location /perl/> SetHandler perl-script PerlHandler ModPerl::Registry Options +ExecCGI PerlSendHeader On Allow from all </Location> </VirtualHost>

mod_perl is so powerful, and I am quite sure, many of you with much more experience have made nice virtualhost settings container like i have optimized my .vimrc over the years (bad example ;) ). would be cool to see one of yours. and yes I know that for every webapp the optimal settings are different. but a good start for a not that critical webservice should be possible, or not?

We use a CGI::Application based framework and a MySQL database (just in case this changes something)

ps: sorry if this sounds for you like "I am too lazy to RTFM". probably you are right ;) but time is limited and like i said already, it is not that critical.


In reply to your mod_perl configurations by lima1

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.