Tag Archives: VirtualHost

Install and Serve a Rails Application from PHP Subdirectory Using Apache, Phussion Passenger and Ruby Enterprise Edition

Here is how to install a Rails application out of a subdirectory (rather than as a subdomain) with the Apache web server(Apache2). In this example I’m going to use my own blog which is a Wordpress installation and serve a Rails application from the subdirectory “reader”. Note, I’m not going to keep my Rails application [...]
Posted in Ruby on Rails | Also tagged , , , , , , , , , , , , , , , | 1 Comment

Wildcard VirtualHost with Apache2

Set your ServerAlias directive to *.domain.tld – Here is a quick example. <VirtualHost> ServerName example.com ServerAlias *.example.com DocumentRoot /var/www/path/to/site </VirtualHost> Now everything.example.com and anything.example.com, even though you didn’t explicitly set them, will map to the /var/www/path/to/site directory on the filesystem. The wildcard character “*” matches any string. You’ll also need to set up a wildcard DNS [...]
Posted in Programming | Also tagged | Leave a comment