view release on metacpan or search on metacpan
vhost/cgi-bin/config/parserules.ini
vhost/cgi-bin/config/phrasebook.ini
vhost/cgi-bin/config/requests/author.ini
vhost/cgi-bin/config/requests/error.ini
vhost/cgi-bin/config/requests/hits.ini
vhost/cgi-bin/config/requests/home.ini
vhost/cgi-bin/config/requests/menu.ini
vhost/cgi-bin/config/requests/realm.ini
vhost/cgi-bin/config/requests/user.ini
vhost/cgi-bin/config/settings.ini
vhost/cgi-bin/db/cpanprefs-master.sql
vhost/cgi-bin/db/cpanprefs-schema.sql
vhost/cgi-bin/pages.cgi
vhost/cgi-bin/templates/content/author-admin.html
vhost/cgi-bin/templates/content/author-default.html
vhost/cgi-bin/templates/content/author-dist.html
vhost/cgi-bin/templates/content/author-distros.html
vhost/cgi-bin/templates/content/dropdown-list.html
vhost/cgi-bin/templates/content/welcome-admin.html
vhost/cgi-bin/templates/content/welcome-author.html
vhost/cgi-bin/templates/content/welcome.html
vhost/cgi-bin/templates/hits/hits_admin.html
vhost/cgi-bin/templates/menus/menu_adminlist.html
vhost/cgi-bin/templates/public/analytics.html
vhost/cgi-bin/templates/public/badaccess.html
vhost/cgi-bin/templates/public/badcommand.html
vhost/cgi-bin/templates/public/badlayout.html
vhost/cgi-bin/templates/public/badmail.html
vhost/cgi-bin/templates/public/badpage.html
vhost/cgi-bin/templates/public/baduser.html
vhost/cgi-bin/templates/public/banuser.html
vhost/cgi-bin/templates/public/blank.html
vhost/cgi-bin/templates/public/box-prefs.html
vhost/cgi-bin/templates/public/box-sites.html
vhost/cgi-bin/templates/public/error_message.html
vhost/cgi-bin/templates/public/footer.html
vhost/cgi-bin/templates/public/layout.html
vhost/cgi-bin/templates/public/navigation.html
vhost/cgi-bin/templates/public/quote.html
vhost/cgi-bin/templates/users/user-acl.html
vhost/cgi-bin/templates/users/user-adminedit.html
vhost/cgi-bin/templates/users/user-adminlist.html
vhost/cgi-bin/templates/users/user-announce.html
vhost/html/css/layout2_text.css
vhost/html/css/reset-fonts-grids.css
vhost/html/css/style.css
vhost/html/favicon.ico
vhost/html/images/adverts/circle_power_perl.gif
vhost/html/images/adverts/tt.gif
vhost/html/images/blank.png
vhost/html/images/icons/feed-icon-large.png
vhost/html/images/icons/feed-icon-small.png
vhost/html/images/layout/background.png
vhost/html/images/layout/banner-prefs.png
vhost/html/images/layout/bg_bullet_arrow.gif
vhost/html/images/layout/bg_bullet_full_1.gif
vhost/html/images/layout/bg_bullet_full_2.gif
vhost/html/images/layout/bg_bullet_half_1.gif
vhost/html/images/layout/bg_bullet_half_2.gif
vhost/html/images/layout/bg_corner_topleft.gif
vhost/html/images/layout/bg_corner_topright.gif
vhost/html/images/layout/bg_foot.jpg
vhost/html/images/layout/bg_head_bottom_nav.jpg
vhost/html/images/layout/bg_head_breadcrumbs.jpg
"Labyrinth::Plugin::CPAN::Preferences": {
"file": "lib/Labyrinth/Plugin/CPAN/Preferences.pm",
"version": "0.20"
}
},
"no_index": {
"directory": ["t","examples","vhost"]
},
"resources": {
"homepage": "https://prefs.cpantesters.org",
"license": [ "http://www.perlfoundation.org/artistic_license_2_0" ],
"bugtracker": { "web": "http://rt.cpan.org/Public/Dist/Display.html?Name=CPAN-Testers-WWW-Preferences" },
"repository": {
"url": "git://github.com/barbie/cpan-testers-www-preferences.git",
"web": "http://github.com/barbie/cpan-testers-www-preferences",
"type": "git"
}
}
}
file: lib/Labyrinth/Plugin/CPAN/Preferences.pm
version: 0.20
no_index:
directory:
- examples
- t
- vhost
resources:
homepage: https://prefs.cpantesters.org
license: http://www.perlfoundation.org/artistic_license_2_0
bugtracker: http://rt.cpan.org/Public/Dist/Display.html?Name=CPAN-Testers-WWW-Preferences
repository: http://github.com/barbie/cpan-testers-www-preferences
meta-spec:
version: 1.4
url: http://module-build.sourceforge.net/META-spec-v1.4.html
generated_by: The Hand of Barbie 1.0
installed as
perl Makefile.PL
make
make test
make install
In the second instance, download the latest tarball and copy the contents of
the 'vhost' directory into the directory you plan to use to provide access to
the Admin. Create an appropriate database in MySQL and load the contents of the
SQL file, ./cgi-bin/db/cpanprefs-master.sql. Note that this only provides the
base tables and contents.
You then need to update the configuration file, ./cgi-bin/config/settings.ini,
with the necessary database connection settings, together with the correct
paths to your virtual directory. Then you'll need update the run script,
./cgi-bin/pages.cgi, to point your configuration file.
Finally, you'll need to update your web server as necessary. The CPAN Testers
Preferences website runs under Apache2, and the vhost file, ./vhosts.conf, can
be adapted as appropriate for other web servers applications.
lib/CPAN/Testers/WWW/Preferences.pm view on Meta::CPAN
send an email to admin@cpantesters.org with details.
Our full list of current sponsors can be found at our I <3 CPAN Testers site.
F<http://iheart.cpantesters.org>
=head1 SEE ALSO
L<Labyrinth>,
L<https://prefs.cpantesters.org>
=head1 AUTHOR
Barbie, <barbie@missbarbell.co.uk> for
Miss Barbell Productions, L<http://www.missbarbell.co.uk/>
=head1 COPYRIGHT & LICENSE
Copyright (C) 2008-2015 Barbie for Miss Barbell Productions
All Rights Reserved.
lib/Labyrinth/Plugin/CPAN/Preferences.pm view on Meta::CPAN
elsif($pref_fields{$_}->{html} == 3) { $cgiparams{$_} = CleanLink($cgiparams{$_}) }
}
return if FieldCheck(\@pref_all,\@pref_man);
my $author = $tvars{user}{author} || $tvars{user}{name};
# change reporting activity
$dbi->DoQuery('UpdateAuthorActive',$tvars{data}{active},$author);
_save_distprefs($author,'-');
}
sub DistSave {
return unless RealmCheck('author','admin');
for(keys %pref_fields) {
if($pref_fields{$_}->{html} == 1) { $cgiparams{$_} = CleanHTML($cgiparams{$_}) }
elsif($pref_fields{$_}->{html} == 2) { $cgiparams{$_} = CleanTags($cgiparams{$_}) }
elsif($pref_fields{$_}->{html} == 3) { $cgiparams{$_} = CleanLink($cgiparams{$_}) }
}
return if FieldCheck(\@pref_all,\@pref_man);
my $author = $tvars{user}{author} || $tvars{user}{name};
_save_distprefs($author,$tvars{data}{dist});
}
sub _save_distprefs {
my ($author,$dist) = @_;
my @fields;
$tvars{data}{patches} = $tvars{data}{patches} ? 1 : 0;
# save default settings
for(qw(grade versions perls platforms)) {
my @array = CGIArray($_);
#LogDebug("$_ => @array");
$tvars{data}{$_} = join(',',@array);
vhost/cgi-bin/config/phrasebook.ini view on Meta::CPAN
FindTesterIndex=SELECT * FROM ixtester WHERE email=?
ConfirmedEmail=INSERT INTO ixtester (userid,email,confirm,confirmed) VALUES (?,?,'',1)
RemoveEmail=DELETE FROM ixtester WHERE userid=? AND email IN ($mails)
UnConfirmedEmail=INSERT INTO ixtester (userid,email,confirm,confirmed) VALUES (?,?,?,0)
ListAllMarkedReports=SELECT * FROM ixmarked
ListMarkedReports=SELECT * FROM ixmarked WHERE email IN ($addrs)
MarkReport=INSERT INTO ixmarked (id,email,cpanid,markdate) VALUES (?,?,?,?)
UnMarkReports=DELETE FROM ixmarked WHERE id IN (ids)
GetAuthorDefault=SELECT * FROM prefs_authors AS a \
INNER JOIN prefs_distributions AS d ON d.pauseid=a.pauseid \
WHERE a.pauseid=? AND d.distribution='-'
GetAuthorDistros=SELECT * FROM prefs_distributions WHERE pauseid=? AND distribution!='-'
GetAuthorDistro=SELECT * FROM prefs_distributions WHERE pauseid=? AND distribution=?
SetAuthorIgnore=UPDATE prefs_distributions SET ignored=? WHERE pauseid=? AND distribution IN ($dists)
UpdateAuthorLogin=UPDATE prefs_authors SET lastlogin=? WHERE pauseid=?
UpdateAuthorActive=UPDATE prefs_authors SET active=? WHERE pauseid=?
UpdateDistroPrefs=UPDATE prefs_distributions SET ignored=?,report=?,grade=?,tuple=?,version=?,patches=?,perl=?,platform=? WHERE pauseid=? AND distribution=?
InsertDistroPrefs=INSERT INTO prefs_distributions (ignored,report,grade,tuple,version,patches,perl,platform,pauseid,distribution) VALUES (?,?,?,?,?,?,?,?,?,?)
DeleteDistroPrefs=DELETE FROM prefs_distributions WHERE pauseid=? AND distribution=?
#[CPANSTATS]
GetAuthorDists=SELECT DISTINCT(dist) FROM cpanstats.uploads WHERE author=? AND type != 'backpan'
GetAuthorDistVersions=SELECT version FROM cpanstats.uploads WHERE author=? AND dist=? ORDER BY released
GetPerlVersions=SELECT DISTINCT(perl) FROM cpanstats.perl_version
AllOSNames=SELECT * FROM cpanstats.osname ORDER BY ostitle
vhost/cgi-bin/config/settings.ini view on Meta::CPAN
[PROJECT]
icode=cpanprefs
iname=CPAN Testers Author Preferences
administrator=barbie@missbarbell.co.uk
mailhost=
cookiename=session
timeout=3600
autoguest=1
copyright=© 1999-2014 CPAN Testers
lastpagereturn=0
minpasslen=6
maxpasslen=20
[INTERNAL]
logfile=/var/www/cpanprefs/html/cache/audit.log
loglevel=0
[HTTP]
webpath=
cgipath=/cgi-bin
realm=public
basedir=/var/www/cpanprefs
webdir=/var/www/cpanprefs/html
cgidir=/var/www/cpanprefs/cgi-bin
cpan_config=/var/www/reports/cgi-bin/config/cpan-config.ini
requests=/var/www/cpanprefs/cgi-bin/config/requests
[DATABASE]
driver=mysql
database=cpanprefs
dbhost=localhost
dbuser=secret
dbpass=s3cr3t
[CPANSTATS]
cpanstats_dictionary=CPANSTATS
cpanstats_driver=mysql
cpanstats_database=cpanstats
cpanstats_dbhost=localhost
cpanstats_dbuser=secret
vhost/cgi-bin/db/cpanprefs-master.sql view on Meta::CPAN
-- MySQL dump 10.13 Distrib 5.5.41, for debian-linux-gnu (i686)
--
-- Host: localhost Database: cpanprefs
-- ------------------------------------------------------
-- Server version 5.5.41-0ubuntu0.14.04.1
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
vhost/cgi-bin/db/cpanprefs-master.sql view on Meta::CPAN
PRIMARY KEY (`optionid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `options`
--
--
-- Table structure for table `prefs_authors`
--
DROP TABLE IF EXISTS `prefs_authors`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `prefs_authors` (
`pauseid` varchar(255) NOT NULL,
`active` int(2) DEFAULT '0',
`lastlogin` varchar(255) DEFAULT NULL,
PRIMARY KEY (`pauseid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `prefs_distributions`
--
DROP TABLE IF EXISTS `prefs_distributions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `prefs_distributions` (
`pauseid` varchar(255) NOT NULL,
`distribution` varchar(255) NOT NULL,
`ignored` int(1) DEFAULT '0',
`report` int(2) DEFAULT '0',
`grade` varchar(32) DEFAULT 'FAIL',
`tuple` varchar(32) DEFAULT 'FIRST',
`version` varchar(1000) DEFAULT 'LATEST',
`patches` int(1) DEFAULT '0',
`perl` varchar(1000) DEFAULT 'ALL',
`platform` varchar(1000) DEFAULT 'ALL',
vhost/cgi-bin/db/cpanprefs-schema.sql view on Meta::CPAN
-- MySQL dump 10.13 Distrib 5.5.41, for debian-linux-gnu (i686)
--
-- Host: localhost Database: cpanprefs
-- ------------------------------------------------------
-- Server version 5.5.41-0ubuntu0.14.04.1
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
vhost/cgi-bin/db/cpanprefs-schema.sql view on Meta::CPAN
`optionid` int(10) unsigned NOT NULL AUTO_INCREMENT,
`menuid` int(10) unsigned NOT NULL DEFAULT '0',
`orderno` int(2) DEFAULT '0',
`text` varchar(255) DEFAULT NULL,
`href` varchar(255) DEFAULT NULL,
PRIMARY KEY (`optionid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `prefs_authors`
--
DROP TABLE IF EXISTS `prefs_authors`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `prefs_authors` (
`pauseid` varchar(255) NOT NULL,
`active` int(2) DEFAULT '0',
`lastlogin` varchar(255) DEFAULT NULL,
PRIMARY KEY (`pauseid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `prefs_distributions`
--
DROP TABLE IF EXISTS `prefs_distributions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `prefs_distributions` (
`pauseid` varchar(255) NOT NULL,
`distribution` varchar(255) NOT NULL,
`ignored` int(1) DEFAULT '0',
`report` int(2) DEFAULT '0',
`grade` varchar(32) DEFAULT 'FAIL',
`tuple` varchar(32) DEFAULT 'FIRST',
`version` varchar(1000) DEFAULT 'LATEST',
`patches` int(1) DEFAULT '0',
`perl` varchar(1000) DEFAULT 'ALL',
`platform` varchar(1000) DEFAULT 'ALL',
vhost/cgi-bin/pages.cgi view on Meta::CPAN
use lib qw|. ./lib ./plugins|;
#use CGI::Carp qw(fatalsToBrowser);
use Labyrinth;
#----------------------------------------------------------
my $app = Labyrinth->new();
$app->run('/var/www/cpanprefs/cgi-bin/config/settings.ini');
1;
__END__
vhost/cgi-bin/templates/public/badlayout.html view on Meta::CPAN
<!-- A. HEADER -->
<div class="header">
<!-- A.1 HEADER TOP -->
<div class="header-middle">
<!-- Sitelogo and sitename -->
<div class="sitename">
<h1><a href="/">[% iname %]</a></h1>
<h3>prefs.cpantesters.org</h3>
<h2>[% IF loggedin ; IF user.author ; user.author | upper | html ; ELSE ; user.name | html ; END ; ELSE ; title ; END %]</h2>
</div>
[% INCLUDE "public/box-sites.html" %]
</div>
<!-- A.4 HEADER BREADCRUMBS -->
<!-- Breadcrumbs -->
<div class="header-breadcrumbs">
vhost/cgi-bin/templates/public/box-sites.html view on Meta::CPAN
<!-- Navigation Level 0 -->
<div class="nav0">
<ul>
<li class="purple" ><a href="http://blog.cpantesters.org" title="CPAN Testers Blog" >Blog</a></li>
<li class="orange" ><a href="http://www.cpantesters.org" title="CPAN Testers Reports" >Reports</a></li>
<li class="violet" ><a href="http://wiki.cpantesters.org" title="CPAN Testers Wiki" >Wiki</a></li>
<li class="blue" ><a href="http://stats.cpantesters.org" title="CPAN Testers Statistics" >Statistics</a></li>
<li class="yellow" ><a href="http://pass.cpantesters.org" title="CPAN Testers PASS Matrix">PASS Matrix</a></li>
<li class="green" ><a href="http://prefs.cpantesters.org" title="CPAN Testers Preferences">Preferences</a></li>
<li class="cornblue"><a href="http://metabase.cpantesters.org" title="CPAN Testers Metabase" >Metabase</a></li>
<li class="cyan" ><a href="http://devel.cpantesters.org" title="CPAN Testers Development">Development</a></li>
<li class="brown" ><a href="http://deps.cpantesters.org" title="CPAN Dependencies" >CPAN Deps</a></li>
<li class="grey" ><a href="http://matrix.cpantesters.org" title="CPAN Testers Matrix" >CPAN Matrix</a></li>
<li class="teal" ><a href="http://analysis.cpantesters.org" title="CPAN Testers Analysis" >Analysis</a></li>
<li class="red" ><a href="http://admin.cpantesters.org" title="CPAN Testers Admin" >Admin</a></li>
</ul>
</div>
vhost/cgi-bin/templates/public/footer.html view on Meta::CPAN
[% copyright %] Comments and design patches to barbie@cpan.org.
<p>
<p>
The CPAN Testers Family: <br />
<a href="http://blog.cpantesters.org" title="CPAN Testers Blog" >Blog</a> •
<a href="http://www.cpantesters.org" title="CPAN Testers Reports" >Reports</a> •
<a href="http://wiki.cpantesters.org" title="CPAN Testers Wiki" >Wiki</a> •
<a href="http://stats.cpantesters.org" title="CPAN Testers Statistics" >Statistics</a> •
<a href="http://pass.cpantesters.org" title="CPAN Testers PASS Matrix">PASS Matrix</a> •
<a href="http://prefs.cpantesters.org" title="CPAN Testers Preferences">Preferences</a> •
<a href="http://metabase.cpantesters.org" title="CPAN Testers Metabase" >Metabase</a> •
<a href="http://devel.cpantesters.org" title="CPAN Testers Development">Development</a> •
<a href="http://deps.cpantesters.org" title="CPAN Dependencies" >Dependencies</a> •
<a href="http://matrix.cpantesters.org" title="CPAN Testers Matrix" >Matrix</a> •
<a href="http://analysis.cpantesters.org" title="CPAN Testers Analysis" >Analysis</a> •
<a href="http://admin.cpantesters.org" title="CPAN Testers Admin" >Admin</a>
</p>
<p>
CPAN Testers, supporting the Perl programming language since 1999.
vhost/cgi-bin/templates/public/layout.html view on Meta::CPAN
<!-- A. HEADER -->
<div class="header">
<!-- A.1 HEADER TOP -->
<div class="header-middle">
<!-- Sitelogo and sitename -->
<div class="sitename">
<h1><a href="/">[% iname %]</a></h1>
<h3>prefs.cpantesters.org</h3>
<h2>[% IF loggedin ; IF user.author ; user.author | upper | html ; ELSE ; user.name | html ; END ; ELSE ; title ; END %]</h2>
</div>
</div>
[% INCLUDE "public/box-sites.html" %]
<!-- A.4 HEADER BREADCRUMBS -->
<!-- Breadcrumbs -->
<div class="header-breadcrumbs">
vhost/dumper.sh view on Meta::CPAN
mysqldump -u barbie --skip-add-locks --add-drop-table --skip-disable-keys --skip-extended-insert cpanprefs >cgi-bin/db/cpanprefs-backup.sql
mysqldump -u barbie --skip-add-locks --add-drop-table --skip-disable-keys --skip-extended-insert --no-data cpanprefs >cgi-bin/db/cpanprefs-schema.sql
vhost/html/css/layout2_setup.css view on Meta::CPAN
.main {clear:both; width:900px; padding-bottom:30px; background:transparent url(/images/layout/bg_main_withnav.jpg) top left repeat-y;}
.main-navigation {display:inline /*Fix IE floating margin bug*/; float:left; width:200px; overflow:visible !important /*Firefox*/; overflow:hidden /*IE6*/;}
.main-content {display:inline; /*Fix IE floating margin bug*/; float:left; width:640px; margin:0 0 0 30px; overflow:visible !important /*Firefox*/; overflow:hidden /*IE6*/;}
.footer {clear:both; width:900px; padding:1.0em 0 1.0em 0; background:rgb(225,225,225) url(/images/layout/bg_foot.jpg) no-repeat; font-size:0.9em; overflow:visible !important /*Firefox*/; overflow:hidden /*IE6*/;}
/* --- For alternative headers START PASTE here --- */
/* HEADER */
.header {width:900px; font-family:"trebuchet ms",arial,sans-serif;}
.header-top {width:900px; height:80px; background:rgb(240,240,240) url(/images/layout/bg_head_top.jpg); overflow:visible !important /*Firefox*/; overflow:hidden /*IE6*/;}
.header-middle {width:900px; height:150px; background:#00ee00 url(/images/layout/banner-prefs.png); overflow:visible !important /*Firefox*/; overflow:hidden /*IE6*/;}
.header-bottom {width:900px; height:40px; background:rgb(255,255,255) url(/images/layout/bg_head_breadcrumbs.jpg) repeat-y;}
.header-breadcrumbs {clear:both; width:900px; padding:1.0em 0 1.5em 0; background:rgb(255,255,255) url(/images/layout/bg_head_breadcrumbs.jpg) repeat-y;}
/********************/
/* HEADER SECTION */
/********************/
.sitelogo {width:60px; height:40px; position:absolute; z-index:1; margin:22px 0 0 20px; background:url(/images/layout/bg_head_top_logo.jpg); }
.sitename {width:600px; height:45px; position:absolute; z-index:1; margin:20px 0 0 160px; overflow:visible !important /*Firefox*/; overflow:hidden /*IE6*/;}
.sitename h1 {font-size:220%;}
.sitename h2 {margin:0px 0 0 0; color:white; font-size:110%;}
vhost/vhosts.conf view on Meta::CPAN
### DEVELOPMENT SITE
<VirtualHost 127.0.0.1>
ServerName cpanprefs
ServerAlias prefs.cpantesters.org
ServerAdmin barbie@missbarbell.co.uk
DocumentRoot /var/www/cpanprefs/html
RewriteEngine on
RewriteRule ^.*(php)$ /cgi-bin/pages.cgi?act=error-badcmd [PT]
RewriteRule ^/?$ /cgi-bin/pages.cgi [PT]
ScriptAlias /cgi-bin/ /var/www/cpanprefs/cgi-bin/
Options +ExecCGI
ErrorLog /var/www/logs/cpanprefs-error.log
CustomLog /var/www/logs/cpanprefs-access.log common
</VirtualHost>
### REAL SITE
<VirtualHost 127.0.0.1:80>
ServerName prefs.cpantesters.org
ServerAdmin barbie@missbarbell.co.uk
RedirectMatch permanent .* https://prefs.cpantesters.org
ErrorLog /var/www/logs/cpanprefs-error.log
CustomLog /var/www/logs/cpanprefs-access.log combined
</VirtualHost>
<VirtualHost 127.0.0.1:443>
ServerName prefs.cpantesters.org
ServerAdmin barbie@missbarbell.co.uk
DocumentRoot /var/www/cpanprefs/html
SSLEngine on
SSLCertificateFile /path.to/cpantesters.crt
SSLCertificateKeyFile /path.to/cpantesters.key
SSLCertificateChainFile /path.to/cpantesters.ca-bundle
RewriteEngine on
RewriteRule ^.*(php)$ /cgi-bin/pages.cgi?act=error-badcmd [PT]
RewriteRule ^/?$ /cgi-bin/pages.cgi [PT]
ScriptAlias /cgi-bin/ /var/www/cpanprefs/cgi-bin/
Options +ExecCGI
ErrorLog /var/www/logs/cpanprefs-error.log
CustomLog /var/www/logs/cpanprefs-access.log combined
</VirtualHost>