FastCgiServer /var/www/demo.asyd.net/roradius/public/dispatch.fcgi -processes 5 -initial-env RAILS_ENV=development -idle-timeout 120
<VirtualHost *:80> ServerName demo.asyd.net DocumentRoot /var/www/demo.asyd.net/roradius/public/ Alias /roradius/ /var/www/demo.asyd.net/roradius/public/ DocumentRoot /var/www/demo.asyd.net/htdocs <Location /roradius> AuthName roradius AuthType Basic AuthUserFile /etc/apache2/demo.htpasswd require valid-user </Location> </VirtualHost>
If you want use a different alias (in the apache configuration) than /roradius, you must edit the following directive :
# Example: # Alias /myrailsapp /path/to/myrailsapp/public # RewriteBase /myrailsapp RewriteBase /roradius
Note: A version 5 is actually required.
# mysql -u root -p mysql msyql> INSERT INTO user (user, host, password) VALUES ('freeradius', '127.0.0.1', PASSWORD('xxxx')); mysql> FLUSH PRIVILEGES; mysql> CREATE DATABASE freeradius; mysql> GRANT ALL PRIVILEGES TO freeradius.* ON freeradius@'127.0.0.1'; mysql> FLUSH PRIVILEGES; mysql> exit # mysql -u freeradius -p < db/mysql.sql
Edit the production entry for a RoRadius release, edit the development one if you checkout the trunk.
production: adapter: mysql database: freeradius_production username: root password: host: localhost