So I have 2 Virtual hosts on my server 192.168.1.90 Configured as follows :
<VirtualHost *:80>
DocumentRoot /home/webmaster/www/PP
ServerName www.pinpin123.com
ServerAlias pinpin123.com
# Other directives here
</VirtualHost>
<VirtualHost *:80>
ProxyPreserveHost On
ProxyRequests Off
ServerName discuss.pinpin123.com
ProxyPass / http://localhost:8001/
ProxyPassReverse / http://localhost:8001/
</VirtualHost>
*Are in separate files in /ete/apache2/sites-available linked to in sites-enabled
The problem is when a client visits pinpin123.com they get redirected to discuss.pinpin123.com
DocumentRoot
directives for the two virtual hosts pointing to the two (different) locations where the files for the two (different) sites are stored.