-
RSS Links
Categories
Archives
Blogroll
Tag Archives: VirtualHost
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 [...]
Install and Serve a Rails Application from PHP Subdirectory Using Apache, Phussion Passenger and Ruby Enterprise Edition