34 lines
		
	
	
		
			4.4 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
		
		
			
		
	
	
			34 lines
		
	
	
		
			4.4 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
|  | <html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Chapter 1. Getting started</title><link href="corpstyle.css" type="text/css" rel="stylesheet"><meta content="DocBook XSL-NS Stylesheets V1.76.1" name="generator"><link rel="home" href="index.html" title="Brutex XServices Documentation"><link rel="up" href="index.html" title="Brutex XServices Documentation"><link rel="prev" href="index.html" title="Brutex XServices Documentation"><link rel="next" href="services.html" title="Chapter 2. Available Services"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table summary="Navigation header" width="100%"><tr><th align="center" colspan="3">Chapter 1. Getting started</th></tr><tr><td align="left" width="20%"><a accesskey="p" href="index.html">Prev</a> </td><th align="center" width="60%"> </th><td align="right" width="20%"> <a accesskey="n" href="services.html">Next</a></td></tr></table><hr></div><div class="breadcrumbs"><span class="breadcrumb-link"><a href="index.html">Brutex XServices Documentation</a></span> > <span class="breadcrumb-node">Getting started</span></div><div class="chapter" title="Chapter 1. Getting started"><div class="titlepage"><div><div><h2 class="title"><a name="installation"></a>Chapter 1. Getting started</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="section"><a href="installation.html#N10042"></a></span></dt><dd><dl><dt><span class="section"><a href="installation.html#N10048">Installation</a></span></dt></dl></dd></dl></div><p>This chapter describes the installation.</p><div class="section"><div class="titlepage"></div><div class="section" title="Installation"><div class="titlepage"><div><div><h3 class="title"><a name="N10048"></a>Installation</h3></div></div></div><p>tbd.</p><p>Sun Java SE 1.6.0</p><p>Apache Tomcat 7</p><p>tbd.</p><p>In short: Deploy .WAR file to Apache Tomcat</p><div class="section" title="Securing with Basic Authentication"><div class="titlepage"><div><div><h4 class="title"><a name="N10055"></a>Securing with Basic Authentication</h4></div></div></div><p>There is a quick guide explaining Basic Authentication for Tomcat here: <a class="link" href="http://oreilly.com/pub/a/java/archive/tomcat-tips.html?page=1" target="_top"> | ||
|  | 					http://oreilly.com/pub/a/java/archive/tomcat-tips.html?page=1</a> | ||
|  | 					</p><p> | ||
|  | 				 | ||
|  | 			</p></div><div class="section" title="Limit access to"><div class="titlepage"><div><div><h4 class="title"><a name="N10060"></a>Limit access to</h4></div></div></div><p>Sometimes you'll only want to restrict access to to | ||
|  | 				only | ||
|  | 				specified host names or IP addresses. This way, only | ||
|  | 				clients at | ||
|  | 				those specified addresses can use the web services. | ||
|  | 				Tomcat provides | ||
|  | 				two configuration values for that: | ||
|  | 				RemoteHostValve and | ||
|  | 				RemoteAddrValve.</p><p>These Valves allow you to filter requests by host name or | ||
|  | 				by IP | ||
|  | 				address, and to allow or deny hosts that match. The | ||
|  | 				example below | ||
|  | 				restricts access to the ArchiveService from any | ||
|  | 				machine that is not | ||
|  | 				the local host.</p><pre class="programlisting"><Context | ||
|  | 				path="/XService/ArchiveService" | ||
|  | 				...> <Valve | ||
|  | 				className="org.apache.catalina.valves.RemoteAddrValve" | ||
|  | 				allow="127.0.0.1" deny=""/> </Context> | ||
|  | 			</pre><p>If no allow pattern is given, then patterns that match | ||
|  | 				the deny | ||
|  | 				attribute patterns will be rejected, and all others | ||
|  | 				will be allowed. | ||
|  | 				Similarly, if no deny pattern is given, | ||
|  | 				patterns that match the | ||
|  | 				allow attribute will be allowed, and | ||
|  | 				all others will be denied. | ||
|  | 				</p><p>The <context> element must be placed into the | ||
|  | 				server.xml | ||
|  | 				file (into <engine><host>).</p></div></div></div></div><div class="navfooter"><hr><table summary="Navigation footer" width="100%"><tr><td align="left" width="40%"><a accesskey="p" href="index.html">Prev</a> </td><td align="center" width="20%"> </td><td align="right" width="40%"> <a accesskey="n" href="services.html">Next</a></td></tr><tr><td valign="top" align="left" width="40%">Brutex XServices Documentation </td><td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td><td valign="top" align="right" width="40%"> Chapter 2. Available Services</td></tr></table></div></body></html> |