From 8792250974ce791964ae3d93fc2c13bf80edeb67 Mon Sep 17 00:00:00 2001 From: Daniel Tiefnig Date: Thu, 25 Feb 2010 16:09:39 +0000 Subject: [PATCH] added example apache configuration for SOAP, XML-RPC and web-admin --- etc/apache.site | 52 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 etc/apache.site diff --git a/etc/apache.site b/etc/apache.site new file mode 100644 index 0000000..513eabb --- /dev/null +++ b/etc/apache.site @@ -0,0 +1,52 @@ +# should be automatically set in ports.conf +# Listen 443 +# NameVirtualHost *:443 + +PerlSwitches -I/usr/local/admin/lib + + + ServerAdmin support@sipwise.com + ServerName YOUR.SERVER + SSLEngine on + SSLCertificateFile /etc/apache2/ssl/YOUR.SERVER.crt + SSLCertificateKeyFile /etc/apache2/ssl/YOUR.SERVER.pem + + PerlModule Apache2::RequestUtil admin + + # always keep "Location /" at the top! + # it will be overridden by later more specific locations + + SetHandler modperl + PerlResponseHandler admin + + + + AuthName "Sipwise NGCP Provisioning" + AuthType Basic + AuthUserFile /usr/local/etc/provisioning.htpasswd + Require valid-user + + SetHandler perl-script + PerlHandler Sipwise::Provisioning::SOAP + + + + AuthName "Sipwise NGCP Provisioning" + AuthType Basic + AuthUserFile /usr/local/etc/provisioning.htpasswd + Require valid-user + + SetHandler perl-script + PerlHandler Apache::XMLRPC::Lite + PerlSetVar dispatch_to '/usr/local/lib/site_perl/Sipwise/Provisioning/backends' + + + # requires module dumpio + # LogLevel debug + # DumpIOInput Off + # DumpIOOutput Off + + LogLevel info + ErrorLog syslog + CustomLog "|/usr/bin/logger -p daemon.info -t oss" combined +