<br><font size=2 face="sans-serif">Will,</font>
<br>
<br><font size=2 face="sans-serif">You will not find a login-page as it does not exist. The site is protected by the basic authentication and authorization scheme of the Apache web-server; i.e. all pages under "Biblio" will need authentication to be accessed, so it is nothing which is done in Catalyst and everything is configured in a standard Apache conf file:</font>
<br>
<br><font size=2><tt><Location /Biblio></tt></font>
<br><font size=2><tt> SetHandler modperl</tt></font>
<br><font size=2><tt> PerlResponseHandler CSA::Biblio</tt></font>
<br><font size=2><tt> PerlOptions +ParseHeaders</tt></font>
<br><font size=2><tt> AuthName CSA_Biblio</tt></font>
<br><font size=2><tt> AuthType Basic</tt></font>
<br><font size=2><tt> PerlAuthenHandler Apache::AuthDBI::authen</tt></font>
<br><font size=2><tt> #PerlAuthzHandler Apache::AuthDBI::authz</tt></font>
<br><font size=2><tt> PerlSetVar Auth_DBI_data_source dbi:mysql:biblio</tt></font>
<br><font size=2><tt> PerlSetVar Auth_DBI_username ***</tt></font>
<br><font size=2><tt> PerlSetVar Auth_DBI_password ***</tt></font>
<br><font size=2><tt> PerlSetVar Auth_DBI_pwd_table users</tt></font>
<br><font size=2><tt> PerlSetVar Auth_DBI_uid_field trigram</tt></font>
<br><font size=2><tt> PerlSetVar Auth_DBI_pwd_field paswoord</tt></font>
<br><font size=2><tt> PerlSetVar Auth_DBI_encrypted off</tt></font>
<br><font size=2><tt> require valid-user</tt></font>
<br><font size=2><tt></Location></tt></font>
<br>
<br><font size=2 face="sans-serif">By doing this, your browser will pop-up a log-in / password dialogue box for the "CSA_Biblio" realm and after successful log-in you will find the name of the user in the environment.</font>
<br>
<br><font size=2 face="sans-serif">If necessary you could use the more traditional .htaccess way of saving the passwords and user-names but as I already had a MySQL server running, the overhead of using it was minimal, whereas repeatedly reading and parsing the .htaccess file would be more "expensive" in the long run.</font>
<br>
<br><font size=2 face="sans-serif">To point Apache to Catalyst you use the SetHandler and PerlResponseHandler instructions (see above), CSA::Biblio being the application module "CSA/Biblio.pm" which configures and initializes your site.</font>
<br>
<br><font size=2 face="sans-serif">If you want to go straight to the Website (without passing through the initial welcome screen) go to: http://www.csa-biblio.be/Biblio/start</font>
<br>
<br>
<br><font size=2 face="sans-serif">Karl</font>
<br>
<br>
<br><font size=2><tt>Will Smith <willbelair@yahoo.com></tt></font><font size=2 face="sans-serif"> wrote:</font>
<br>
<br><font size=2><tt>Hi, i was looking around for the login page I got lost. I would like to see how your app running in the real world.<br>
Another favour that I would like to ask from you is that: how to point apache to catalyst app. I have the same setup as yours: linux server running apache under mod_perl 2, MySQL 5 database. Problem is I am not familiar with Linux, so I get lost with path. My app is at home/myuseraccount/myapp , and I use the localhost to run the app. I hope you have some spare munites to guide me through the path setup.<br>
thanks</tt></font>
<br>
<br><font size=2><tt>Karl.Moens@marsh.com wrote:<br>
</tt></font>
<br><font size=2><tt>Dear listmembers,<br>
</tt></font>
<br><font size=2><tt>I finally managed to put a Catalyst-driven website on my server and open it out to the world.<br>
</tt></font>
<br><font size=2><tt>It is a small library application allowing the members of our wargames-club to enter their books of military-history into a database so other members can look it up.<br>
</tt></font>
<br><font size=2><tt>It runs on Apache2 and MySQL 4.1. The front-end server is on LINUX (Mandriva 10, very old Celeron 333 Mhz) serving the static content and the mod-perl enabled back-end server is on an old Windows 98 laptop.<br>
</tt></font>
<br><font size=2><tt>The model classes use Class::DBI (and I hope to switch to DBIx::Class for the next version). The View classes use Template::Toolkit.<br>
</tt></font>
<br><font size=2><tt>You can have a look at it here: http://www.csa-biblio.be (with frames) or http://csa-in-exile.be (without frames). Just click the large "CSA" logo to continue.<br>
</tt></font>
<br><font size=2><tt>A guest log-in is available: ID is "gst" and password is "guest".<br>
</tt></font>
<br><font size=2><tt>Please note that the PDF-output of the catalogue doesn't work (yet). Splitting the static and dynamic content over two servers broke it. I will repair it as soon as I have an hour to spare :-)<br>
</tt></font>
<br><font size=2><tt>Comments, suggestions, ... are of course always welcome.<br>
</tt></font>
<br><font size=2><tt>Karl</tt></font><font size=2 face="sans-serif"><br>
<br>
<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
This message and any attachments are confidential. If you have received this message in error please delete it from your system. If you require any assistance please notify the sender. Thank You.<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</font>