Oct/090
Setup mod rewrite on apache
Three places need to change to do this.
sudo a2enmod rewrite
Add AllowOverride All to virtual host file
Add RewriteEngine On to .htaccess
May/090
Ubuntu apache2 virtualhost setup problems
If you are getting error messages when starting apache2 like
“Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName”
or
“[warn] _default_ VirtualHost overlap on port 80, the first has precedence”
you need to make sure a couple of lines are in your /etc/apache2/httpd.conf file.
ServerName localhost
NameVirtualHost *:80
Dec/080
Setup Ruby On Rails on Windows
http://wiki.rubyonrails.org/rails/pages/HowtoInstallOnWindows
This is where to get the fastcgi dll.
http://www.fastcgi.com/dist/
Sample Apache virtual host configuration
<VirtualHost *:80>
<Directory “C:/data/projects/testapp/public/”>
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all</Directory>
Options ExecCGI FollowSymLinks
AddHandler cgi-script .cgi
AddHandler fastcgi-script .fcgi
ServerAdmin webmaster@testapp.dev
DocumentRoot “C:/data/projects/testapp/public/”
ServerName testapp.dev
ServerAlias www.testapp.dev
ErrorLog “logs/testapp.dev-error.log”
CustomLog “logs/testapp.dev-access.log” common</VirtualHost>
Jan/070
Apache SSL IfDefine – Error
Just encountered a problem that was painful to deal with while configuring SSL on apache for linux. The httpd.conf had a tag,
$ service httpd -D SSL -k start
Also, I found that restart does not always take new changes to my conf files.
$ service httpd -D SSL -k restart
Instead, use the stop then the start command to be sure.
$service httpd -D SSL -k stop
$service httpd -D SSL -k start
That was a source of much pain while working on this particular server.