User Tools

Site Tools


en:user:urls

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
en:user:urls [2014/04/13 23:52] – external edit 127.0.0.1en:user:urls [2017/02/19 23:10] kjdon
Line 36: Line 36:
 |''<nowiki><library-name>/collection//search/TextQuery</nowiki>''|Cross-collection search page| |''<nowiki><library-name>/collection//search/TextQuery</nowiki>''|Cross-collection search page|
  
 +
 +==== Server URL ====
 +
 +The server URL consists of three parts: the tomcat base URL which is the machine IP name/address plus port, the ''context'' for Greenstone3, and the servlet name:
  
 ''<baseurl>/<context>/<servlet>'' ''<baseurl>/<context>/<servlet>''
  
-By default, The Greenstone3 server runs on ''<nowiki>http://localhost:8383</nowiki>'' and Greenstone is located at +By default, the Greenstone3 tomcat server runs on ''<nowiki>http://localhost:8383</nowiki>'' and the Greenstone3 servlets are located at 
-''<nowiki>http://localhost:8383/greenstone3</nowiki>''Every library (and any other servlets) are +''<nowiki>http://localhost:8383/greenstone3</nowiki>''Default servlets include ''library'' and ''oaiserver''.
  
- +The context part is 'technically' set by the name of the file in ''greenstone3/packages/tomcat/conf/Catlina/localhost'', which is, by default ''greenstone3.xml''. HOWEVER, every time you start the server, ''Greenstone3/build.xml'' 
-==== context ==== +
-context 'technically' set by the name of the file in ''Greenstone3/packages/tomcat/conf/Catlina/localhost'', which is, +
-by default ''greenstone3.xml''. HOWEVER, every time you start the server, ''Greenstone3/build.xml'' +
 copies this the file from ''Greenstone3/resources/tomcat'' into the correct folder.  copies this the file from ''Greenstone3/resources/tomcat'' into the correct folder. 
  
-<code> +To change the context, change the greenstone.context variable in ''Greenstone3/build.properties''
-    <!-- [line 1287] set up the greenstone3 context --> +
-    <copy file="${basedir}/resources/tomcat/greenstone3.xml" tofile="${packages.home}/tomcat/conf/Catalina/localhost/greenstone3.xml" overwrite="true"> +
-      <filterset> +
-        <filter token="gsdl3webhome" value="${web.home}"/> +
-        <filter token="gsdl3webwritablehome" value="${web.writablehome}"/> +
- <filter token="privilegedattribute" value ="${privileged.attribute}"/> +
-      </filterset> +
-    </copy> +
-</code> +
- +
-To change the context, change variable in ''Greenstone3/build.properties''+
  
  
 <code> <code>
- +# The context name of your GS3 digital library. By default this will be "greenstone3". Ensure this has a value. 
-# The context name of your GS3 digital library. By default this will be "greenstone3" +greenstone.context=greenstone3
-Ensure this has a value. If you change this multiple times, you need to remove the old versions +
-# of <custom.context>.xml from GS3/packages/tomcat/conf/Catalina/localhost +
-# does not contain previous  +
-custom.context=greenstone3+
 </code> </code>
  
 +When you restart the server, a new file will be created for the new context name, and copied into the Tomcat folder.
  
  
Line 91: Line 77:
  
 ===== Additional Resources ===== ===== Additional Resources =====
-  * [[en:query_links_tutorial|Notes for tutorial on creating links to query pages for terms]] +  * [[en:user:gs3_sample_format_statements#linking_metadata_to_a_search|Linking metadata values to a search for that metadata]]
 </TAB> </TAB>
 <!-- ############################################################################## <!-- ##############################################################################