複数サーバーを運営する際のルーター設定方法
複数サーバーを運営する際は「リバースプロキシ」を設定する必要がある。
■Dellegateを使う方法
■apacheモジュール(mod_proxy)を使う方法
【httpd.conf】
# Dynamic Shared Object (DSO) Support ## To be able to use the functionality of a module which was built as a DSO you # have to place corresponding `LoadModule' lines at this location so the # directives contained in it are actually available _before_ they are used. # Statically compiled modules (those listed by `httpd -l') do not need # to be loaded here. ## Example: # LoadModule foo_module modules/mod_foo.so #LoadModule status_module modules/mod_status.so LoadModule proxy_module /usr/lib64/httpd/modules/mod_proxy .so LoadModule proxy_http_module /usr/lib64/httpd/modules/mod_proxy_http .so <VirtualHost 192.168.101.201> ServerName installmaniax.aaa.bbb KeepAlive Off ProxyPass / http: //192 .168.101.201/ < /VirtualHost > |
Comment