Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

« Newer Snippets
Older Snippets »
Showing 1-2 of 2 total  RSS 

Run the Apache web server as an Asterisk user

To allow a Ruby script to copy a file into /var/spool/asterisk/outgoing it is helpful to run Apache with Asterisk permissions.

With Asterisk installed on Ubuntu, execute the following from the command line.

   1  
   2  sed -i 's!^export APACHE_RUN_USER=www-data!export APACHE_RUN_USER=asterisk!' /etc/apache2/envvars
   3  sed -i 's!^export APACHE_RUN_GROUP=www-data!export APACHE_RUN_GROUP=asterisk!' /etc/apache2/envvars


Source: TheGoldFish.net Blog » Blog Archive » Asterisk with FreePBX on Ubuntu 7.04 Desktop Tutorial [thegoldfish.net]

lighttpd (or anything else) through apache2 proxy

   1  
   2  <VirtualHost *:80>
   3    ServerAdmin        webmaster@inter.net
   4    ServerName         www.inter.net
   5    ProxyRequests      Off
   6    ProxyPreserveHost  On
   7    RewriteEngine      On
   8    RewriteRule        ^/(.*) http://127.0.0.1:3000/$1 [P,L]
   9    ProxyPassReverse   / http://127.0.0.1:3000/
  10  </VirtualHost>
« Newer Snippets
Older Snippets »
Showing 1-2 of 2 total  RSS