I have Rails installed for
example.com, however, I want to use WordPress for my blog as well. So I want
example.com/blog to be WordPress. The problem is, I want to have WordPress in a separate directory from the Rails, such as
/srv/www/example-wp and have Rails in
/srv/www/example-ruby. How can I separate this? I think it has something to do with virtual hosts, but I am unsure how this is supposed to work.
<VirtualHost ip:80> ServerAdmin firstname.lastname@example.org ServerName example.com ServerAlias www.example.com DocumentRoot /srv/www/example-ruby/public/ Alias /blog /srv/www/example-wp/public/ <Directory /srv/www/example-wp/public/> AllowOverride all Order allow,deny Allow from all </Directory> <Directory /srv/www/example-ruby/public/> # This relaxes Apache security settings. AllowOverride all # MultiViews must be turned off. Options -MultiViews </Directory> </VirtualHost>