Hi All
I have 2 virtualHost; 1) for my website and 2) my Ruby on Rails project
For example, my URL is example.com. When I get a request like
http://example.com/ror
I want to proxy it to the Ruby on rails virtualhost (ror.local). I tried the following:
<VirtualHost *:80>
ServerName example.com
....
ProxyPreserveHost On
#ProxyPass /ror http://ror.local
ProxyPassReverse /ror http://ror.local
...
</VirtualHost>
<VirtualHost *:80>
ServerName ror.local
DocumentRoot /srv/backend/public
ErrorLog logs/backend.local-error_log
CustomLog logs/backend.local-access_log common
#RailsEnv production
RailsEnv development
RailsAllowModRewrite off
<directory "/srv/backend/public">
Order allow,deny
Allow from all
</directory>
</VirtualHost>
I've added ror.local to /etc/hosts. So I can access both virtual hosts, but the proxy stuff doesn't work
Any suggestions ?
thnx
LuCa