サーバが重いのでリバースプロクシで分散

トップオープンソースapache2でモジュールをロードする

apache2でモジュールをロードする

サーバが重いのでリバースプロクシで分散

1.現在apacheにロードされているモジュール一覧
debian:/etc/apache2/mods-enabled# apache2ctl -M
apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.3.3 for ServerName
Loaded Modules:
core_module (static)
log_config_module (static)
logio_module (static)

2.とりあえず使えるモジュール一覧を
debian:/etc/apache2/mods-enabled# a2enmod
Which module would you like to enable?
Your choices are: actions alias asis auth_basic auth_digest authn_alias authn_anon authn_dbd authn_dbm authn_default authn_file authnz_ldap authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cern_meta cgi cgid charset_lite dav dav_fs dav_lock dbd deflate dir disk_cache dump_io env expires ext_filter file_cache filter headers ident imagemap include info ldap log_forensic mem_cache mime mime_magic negotiation php5 proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http rewrite setenvif speling ssl status suexec unique_id userdir usertrack version vhost_alias
Module name?

 =>実際には、/etc/apache2/mods-available を見たらわかる。
   逆に、/etc/apache2/mods-enabled/を見れば、ロードモジュールがわかる。
     (mods-availableにsymlinkされています)

3.proxyを追加
debian:/etc/apache2/mods-enabled# a2enmod proxy
Module proxy installed; run /etc/init.d/apache2 force-reload to enable.

4.設定追加(apache2.conf)
DocumentRoot /Library/WebServer/Documents/admin
ServerName admin.cgi-support.com
ProxyPass /sako/ http://192.168.123.6/abc/
ProxyPassReverse /sako/ http://192.168.123.6/abc/






カテゴリ内の記事