Skip to content

Instantly share code, notes, and snippets.

@twinge
Created April 13, 2009 15:02
Show Gist options
  • Save twinge/94485 to your computer and use it in GitHub Desktop.
Save twinge/94485 to your computer and use it in GitHub Desktop.
PerlSetVar databaseHost "localhost"
PerlSetVar systemUser "root"
PerlSetVar systemPassword "root"
PerlSetVar serverName "dev.mygcx.org"
PerlSetVar cacheFile 1
#debugging/programming options
PerlSetVar internalAuthAdmin "Y"
PerlSetVar mailServer "smtp1.ccci.org"
PerlSetVar authzServer "http://dev.mygcx.org/authz/"
PerlSetVar authzAdminServer "http://dev.mygcx.org/authz-admin/"
PerlSetVar mailmanAdminServer "http://dev.mygcx.org/mailmanadmin"
PerlModule Apache2::Reload
PerlInitHandler Apache2::Reload
PerlSetEnv PERL5LIB /Users/josh/htdocs/gcx/digidoh/lib
<VirtualHost *:80>
LogLevel debug
PerlOptions +Parent
PerlSwitches -I/Users/josh/htdocs/gcx/digidoh/lib
#Load our perl modules.
PerlLoadModule GCX::Runtime::SystemParams
PerlModule GCX::Runtime::Handler
PerlModule GCX::Runtime::Maintenance
PerlModule GCX::Runtime::Modules
PerlModule GCX::Runtime::System::Reports
PerlChildInitHandler GCX::Runtime::Maintenance::child_init
PerlPostConfigHandler GCX::Runtime::Maintenance::apache_init
PerlCleanupHandler GCX::Runtime::Maintenance::request_cleanup
#####GCX Configuration parameters
###Required settings: systemUser, systemPassword, serverName
###
###Optional settings: databaseHost, cacheServer, cacheXSL, cacheXSLDuration,
### cacheFile, cacheFileSize, cacheFileDuration, errorCommunity, errorScreen,
### internalAuthAdmin
###
#main database settings
#serverName, may be removed in the future and automatically discovered based on requests
#external services GCX uses
GCXcasServer https://signin.mygcx.org/cas/
GCXcasPGTCallback http://stageapp.mygcx.org:8081/system/cas/pgt
GCXcasLogoutCallback http://stageapp.mygcx.org:8081/system/cas/logout
ServerName *
DocumentRoot /Users/josh/htdocs/gcx/toolbox
#base modules required for digi-doh
# LoadModule apreq_module /usr/lib/httpd/modules/mod_apreq2.so
#error documents
GCXerrorScreen 401 Public error
GCXerrorScreen 403 Public error
GCXerrorScreen 404 Public error
<Directory "/var/www/html">
Options None
AllowOverride None
</Directory>
<Location "/">
SetHandler modperl
PerlResponseHandler GCX::Runtime::Handler
</Location>
GCXsubRequestExclusion ^/static/
<Location "/static">
SetHandler default-handler
</Location>
GCXsubRequestExclusion ^/favicon\.ico$
<Location "/favicon.ico">
SetHandler default-handler
</Location>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment