New file for local development on Mac.
authorMike Taylor <mike@miketaylor.org.uk>
Fri, 16 Apr 2010 11:00:25 +0000 (12:00 +0100)
committerMike Taylor <mike@miketaylor.org.uk>
Fri, 16 Apr 2010 11:00:25 +0000 (12:00 +0100)
web/conf/apache2.0/cartney-dev.conf [new file with mode: 0644]

diff --git a/web/conf/apache2.0/cartney-dev.conf b/web/conf/apache2.0/cartney-dev.conf
new file mode 100644 (file)
index 0000000..37a4a55
--- /dev/null
@@ -0,0 +1,38 @@
+# This is the configuration that I (Mike) use on the development
+# machine cartney, which is a MacBook Pro
+#
+# See comments in mk2-config-cmc/apache/cmc-dev-mac.conf for details
+# on running HTML::Mason-based sites under the apache2 port for Macs.
+
+PerlSwitches -I/usr/local/src/git/irspy/lib
+
+<VirtualHost *:80>
+    ServerName x.irspy.indexdata.com
+    <Directory />
+        Allow from all
+    </Directory>
+
+    ErrorLog     /opt/local/apache2/logs/irspy-error.log
+    CustomLog    /opt/local/apache2/logs/irspy-access.log combined
+    DocumentRoot /usr/local/src/git/irspy/web/htdocs
+    <FilesMatch "\.(html|css)$">
+     SetHandler perl-script
+     PerlHandler HTML::Mason::ApacheHandler
+    </FilesMatch>
+
+    PerlSetVar MasonArgsMethod mod_perl
+
+    PerlAddVar MasonCompRoot "private => /usr/local/src/git/irspy/web/htdocs"
+    PerlSetVar MasonDataDir /tmp/irspy-mason
+    # IRSpyLibDir is used only to find source for online documentation
+    PerlSetVar IRSpyLibDir /usr/local/src/git/irspy/lib
+    PerlSetEnv PERL5LIB /usr/local/src/git/irspy/lib
+
+    <Location /admin>
+       AuthType Basic
+       AuthName "IRSpy Administration"
+       AuthUserFile /usr/local/src/git/irspy/web/conf/htpasswd
+       Require user admin
+    </Location>
+</VirtualHost>
+