I need to point domain.com/chat to chat.domain.com. So, when I access domain.com/chat I want to see the same thing as when I access chat.domain.com.
My virtualhost for this looks like below. As you can see I have tried doing it with proxypass, but I think I am doing something wrong.
ServerAdmin info@domain.com
DocumentRoot /var/www/domain.com
ServerName domain.com
ErrorLog /var/log/apache2/domain.com-error_log
CustomLog /var/log/apache2/domain.com-access_log combined
ProxyRequests Off
ProxyPreserveHost On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /chat http://chat.domain.com/chat
ProxyPassReverse /chat http://chat.domain.com/chat
<Location /chat>
Order allow,deny
Allow from all
</Location>
<Location />
Order allow,deny
Allow from all
</Location>
<Directory /var/www/domain.com>
Options FollowSymLinks
AllowOverride All
</Directory>
</VirtualHost>