From acb38afcd4780191569ee809f3e8bdb550a634bc Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Wed, 5 Sep 2012 18:34:48 +0000 Subject: blogsum --- examples/httpd-blogsum.conf | 50 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 examples/httpd-blogsum.conf (limited to 'examples/httpd-blogsum.conf') diff --git a/examples/httpd-blogsum.conf b/examples/httpd-blogsum.conf new file mode 100644 index 0000000..f7f669c --- /dev/null +++ b/examples/httpd-blogsum.conf @@ -0,0 +1,50 @@ + + ServerName www.example.com + DocumentRoot /var/www/blogsum + DirectoryIndex index.cgi + + Options +FollowSymlinks + RewriteEngine On + RewriteRule ^/rss.xml$ /index.cgi?rss=1 [PT,QSA] + RewriteRule ^/rss2.xml$ /index.cgi?rss=2 [PT,QSA] + RewriteRule ^/Page/([^/]+)$ /index.cgi?page=$1 [PT,QSA] + RewriteRule ^/Tags/([^/]+)$ /index.cgi?search=$1 [PT,QSA] + RewriteRule ^/([0-9]{4})/([0-9]{2})/([^/]+)$ /index.cgi?view=article&year=$1&month=$2&uri=$3 [PT,QSA] + RewriteRule ^/([0-9]{4})/([0-9]{2})/?$ /index.cgi?view=article&year=$1&month=$2 [PT,QSA] + RewriteRule ^/([0-9]{4})/?$ /index.cgi?view=article&year=$1 [PT,QSA] + + PerlModule Apache::PerlRun + + SetHandler perl-script + PerlHandler Apache::PerlRun + PerlRequire /var/www/blogsum/startup.pl + Options ExecCGI + Order deny,allow + Allow from all + + + SetHandler perl-script + PerlHandler Apache::PerlRun + PerlRequire /var/www/blogsum/startup.pl + Options ExecCGI + Order deny,allow + Allow from all + AuthUserFile /var/www/conf/blogsum.htpasswd + AuthName "Blogsum Admin - example.com" + AuthType Basic + + require valid-user + + + + SetHandler perl-script + PerlHandler Apache::PerlRun + Options -ExecCGI + Order deny,allow + Allow from all + + + Order deny,allow + Deny from all + + -- cgit v1.2.3