Skip to content

Instantly share code, notes, and snippets.

@ishtaka
Created April 10, 2014 14:55
Show Gist options
  • Select an option

  • Save ishtaka/20413afee0210763559c to your computer and use it in GitHub Desktop.

Select an option

Save ishtaka/20413afee0210763559c to your computer and use it in GitHub Desktop.
[Tomcat]Apacheとの連携
sudo vi /etc/httpd/conf/httpd.conf
// AJPを有効
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
// ディレクトリを指定
<Location /path/>
ProxyPass ajp://localhost:8009/path/
</Location>
sudo vi tomcat/conf/Catalina/domain/path.xml
// コンテキスト
<?xml version="1.0" encoding="utf-8"?>
<Context docBase="/path/to/path" debug="0" reloadable="true" crossContext="true">
</Context>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment