Configure httpd.conf alias/subdirectory point to another server
- by azrim
Hi,
I,m having a web server for testing purposes to host my domain http://www.domain.com which run perfectly.
Below is server specs:
OS Freebsd 7.2
MySQL 5.1.33
Apache 2.2.11
PHP 5.2.9
I can do alias directory in my httpd.conf so that my domain can have subdirectory hosting in the same server such as httpd://domain.com/subdomain1, httpd://domain.com/subdomain2 and so on. All my subdomain1 and subdomain2 directory folders reside on the same web server but only different location.
Below is my example from httpd.conf for the alias subdomain1 block:
Alias /subdomain1 "/usr/local/www/subdomain1"
<Directory "/usr/local/www/subdomain1">
Options +Indexes
AllowOverride None
allow from all
</Directory>
I,m looking a way in order my subdomain1 and subdomain2 directory is read from another server in my LAN but remain hosted as httpd://domain.com/subdomain1. Really appreciate anyone know how to do this.
Thanks,