Configure httpd.conf alias/subdirectory point to another server

Posted by azrim on Server Fault See other posts from Server Fault or by azrim
Published on 2010-03-10T01:57:29Z Indexed on 2010/04/14 5:03 UTC
Read the original article Hit count: 246

Filed under:
|

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,

© Server Fault or respective owner

Related posts about apache

Related posts about httpd.conf