반응형

<VirtualHost *:80>
ProxyPreserveHost On

# Servers to proxy the connection, or;
# List of application servers:
# Usage:
# ProxyPass / http://[IP Addr.]:[port]/
# ProxyPassReverse / http://[IP Addr.]:[port]/
# Example: 
ProxyPass / http://192.168.0.101:80/
ProxyPassReverse / http://192.168.0.101:80/
ServerName nas.coo.gg    

</VirtualHost>
<VirtualHost *:80>
ProxyPreserveHost On

# Servers to proxy the connection, or;
# List of application servers:
# Usage:
# ProxyPass / http://[IP Addr.]:[port]/
# ProxyPassReverse / http://[IP Addr.]:[port]/
# Example: 
ProxyPass / http://192.168.0.102:80/
ProxyPassReverse / http://192.168.0.102:80/
ServerName file.coo.gg    

</VirtualHost>

 

응용 하면 www1.abc.com => 192.168.0.101 , www2.abc.com => 192.168.0.102 형태로 사용이 가능합니다.

반응형
폰박사