Project

General

Profile

« Previous | Next » 

Revision 9386

update documentation to reference Tomcat 7, Java 7 and newer apache config file name conventions. https://projects.ecoinformatics.org/ecoinfo/issues/6855

View differences:

src/scripts/debian/metacat-site
1
NameVirtualHost *:80
2
<VirtualHost *:80>
3
        DocumentRoot /var/lib/tomcat6/webapps/metacat
4
        ServerName <your_hostname_here>
5

  
6
        ScriptAlias /metacat/cgi-bin/ /var/lib/tomcat6/webapps/metacat/cgi-bin/
7
        <Directory "/var/lib/tomcat6/webapps/metacat/cgi-bin/">
8
                AllowOverride All
9
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
10
                Order allow,deny
11
                Allow from all
12
        </Directory>
13

  
14
        <IfModule mod_jk.c>
15
                JkMount /metacat ajp13
16
                JkMount /metacat/* ajp13
17
                JkMount /metacat/metacat ajp13
18
                JkMount /*.jsp ajp13
19
                JkUnMount /metacat/cgi-bin/* ajp13
20
                
21
        		JkOptions +ForwardURICompatUnparsed
22
        </IfModule>
23
        
24
       	AllowEncodedSlashes On
25
		AcceptPathInfo      On
26
        
27
</VirtualHost>
28

  
src/scripts/debian/metacat-site-ssl
1
<IfModule mod_ssl.c>
2
NameVirtualHost *:443
3
<VirtualHost *:443>
4
        DocumentRoot /var/lib/tomcat6/webapps/metacat
5

  
6
        ScriptAlias /metacat/cgi-bin/ /var/lib/tomcat6/webapps/metacat/cgi-bin/
7
        <Directory "/var/lib/tomcat6/webapps/metacat/cgi-bin/">
8
                AllowOverride All
9
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
10
                Order allow,deny
11
                Allow from all
12
        </Directory>
13

  
14
        <IfModule mod_jk.c>
15
                JkMount /metacat ajp13
16
                JkMount /metacat/* ajp13
17
                JkMount /metacat/metacat ajp13
18
                JkMount /*.jsp ajp13
19
                JkUnMount /metacat/cgi-bin/* ajp13
20

  
21
                JkOptions +ForwardURICompatUnparsed
22
        </IfModule>
23

  
24
        AllowEncodedSlashes On
25
        AcceptPathInfo      On
26
        
27
        #   SSL Engine Switch:
28
        #   Enable/Disable SSL for this virtual host.
29
        SSLEngine on
30
        SSLOptions +StrictRequire +StdEnvVars +ExportCertData
31
        
32
        #   A self-signed (snakeoil) certificate can be created by installing
33
        #   the ssl-cert package. See
34
        #   /usr/share/doc/apache2.2-common/README.Debian.gz for more info.
35
        #   If both key and certificate are stored in the same file, only the
36
        #   SSLCertificateFile directive is needed.
37
        SSLCertificateFile /etc/ssl/certs/<your_cert_name>.crt
38
        SSLCertificateKeyFile /etc/ssl/private/<your_cert_name>.key
39
        SSLCertificateChainFile /etc/ssl/certs/<CA chain file>.crt
40
        
41
        #   Certificate Authority (CA):
42
        #   Set the CA certificate verification path where to find CA
43
        #   certificates for client authentication or alternatively one
44
        #   huge file containing all of them (file must be PEM encoded)
45
        #   Note: Inside SSLCACertificatePath you need hash symlinks
46
        #         to point to the certificate files. Use the provided
47
        #         Makefile to update the hash symlinks after changes.
48
        # Use the correct DataONE chain for validating client certificates
49
        # see: https://repository.dataone.org/software/tools/trunk/ca
50
        SSLCACertificatePath /etc/ssl/certs/
51
        #SSLCACertificateFile /etc/ssl/certs/DataONECAChain.crt
52
        SSLVerifyClient optional
53
        SSLVerifyDepth  10
54
        
55
        #   Client Authentication (Type):
56
        #   Client certificate verification type and depth.  Types are
57
        #   none, optional, require and optional_no_ca.  Depth is a
58
        #   number which specifies how deeply to verify the certificate
59
        #   issuer chain before deciding the certificate is not valid.
60
        <Location /metacat/servlet/replication>
61
                SSLVerifyClient require
62
                SSLVerifyDepth  10
63
        </Location>
64

  
65
		# disable SSL v2 and v3
66
		# intermediate configuration from https://mozilla.github.io/server-side-tls/ssl-config-generator/
67
		SSLProtocol             all -SSLv2 -SSLv3
68
		SSLCipherSuite          ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA
69
		SSLHonorCipherOrder     on
70
    
71
</VirtualHost>
72
</IfModule>
73
        
docs/user/metacat/source/configuration.rst
447 447
  <CONTEXT_DIR>/WEB_INF/metacat.properties
448 448

  
449 449
Where ``<CONTEXT_DIR>`` is the directory in which the Metacat application code 
450
lives (e.g., ``/var/lib/tomcat6/webapps/metacat``). The path is a combination 
451
of the Web application directory (e.g., ``/var/lib/tomcat6/webapps/``) and 
450
lives (e.g., ``/var/lib/tomcat7/webapps/metacat``). The path is a combination 
451
of the Web application directory (e.g., ``/var/lib/tomcat7/webapps/``) and 
452 452
the Metacat context directory (e.g., ``metacat``). Both values depend upon how your 
453 453
system was set up during installation.
454 454

  
docs/user/metacat/source/install.rst
18 18

  
19 19
  * In order to use the Metacat Registry (and for a more robust Web-serving environment in general), the Apache Web server should be installed with Tomcat and the two should be integrated. See the installing Apache for more information.
20 20

  
21
* `Java 6`_ (Note: Java 5 is deprecated)
21
* `Java 7`_ (Note: Java 6 is deprecated)
22 22

  
23 23
.. _PostgreSQL: http://www.postgresql.org/
24 24

  
......
30 30

  
31 31
.. _Apache HTTPD Server: http://httpd.apache.org/
32 32

  
33
.. _Java 6: http://www.oracle.com/technetwork/java/javaee/overview/index.html
33
.. _Java 7: http://www.oracle.com/technetwork/java/javase/downloads/jre7-downloads-1880261.html
34 34

  
35 35
System requirements for running Metacat:
36 36

  
......
59 59
4. Download Metacat from the `Metacat Download Page`_ and extract the archive
60 60
5. ``sudo mkdir /var/metacat; sudo chown -R <tomcat_user> /var/metacat``
61 61
6. ``sudo cp <metacat_package_dir>/metacat.war <tomcat_app_dir>``
62
7. ``sudo /etc/init.d/tomcat6 restart``
62
7. ``sudo /etc/init.d/tomcat7 restart``
63 63
8. Configure Metacat through the Web interface
64 64

  
65 65
.. _Metacat Download Page: http://knb.ecoinformatics.org/software/metacat/
......
99 99
File               Description
100 100
================== =====================================================================
101 101
metacat.war        The Metacat Web archive file (WAR) 
102
metacat-site       Sample Web definition file used by Apache on Ubuntu/Debian 
102
metacat-site.conf       Sample Web definition file used by Apache on Ubuntu/Debian 
103 103
                   Linux systems. 
104
metacat-site-ssl   Sample SSL definition file used by Apache on Ubuntu/Debian 
104
metacat-site-ssl.conf   Sample SSL definition file used by Apache on Ubuntu/Debian 
105 105
                   Linux systems.
106 106
jk.conf            Sample JkMount configuration file used by Apache on 
107 107
                   Ubuntu/Debian Linux systems. 
......
179 179
also highly recommend that you install Apache Web server, as it provides a more
180 180
robust Web-serving environment and is required by some Metacat functionality. 
181 181

  
182
* `Java 6`_
182
* `Java 7`_
183 183
* `Apache Tomcat`_ 
184 184
* `Apache HTTPD Server`_ (Highly Recommended)
185 185
* PostgreSQL_ Database (or Oracle_)
186 186
* `Apache Ant`_ (if building from Source)
187 187

  
188
Java 6
188
Java 7
189 189
......
190
To run Metacat, you should use Java 6 (Java 5 is deprecated and will not be
191
supported after Metacat version 1.9.2). Make sure that the JAVA_HOME
190
To run Metacat, you should use Java 7. Make sure that the JAVA_HOME
192 191
environment variable is properly set and that both ``java`` and ``javac`` 
193 192
are on your PATH. 
194 193

  
195
To install Java if you are running Ubuntu_/Debian, you can download the appropriate self-extracting installer:: 
194
To install Java if you are running Ubuntu_/Debian, you can install using apt-get:: 
196 195

  
197
  wget http://download.oracle.com/otn-pub/java/jdk/6u30-b12/jdk-6u30-linux-x64.bin
198
  
199
and follow these commands to install::
200
  
201
  sudo mkdir -p /opt/java/64
202
  sudo mv jdk-6u30-linux-x64.bin /opt/java/64
203
  cd /opt/java/64
204
  sudo chmod +x jdk-6u30-linux-x64.bin
205
  sudo ./jdk-6u30-linux-x64.bin
206
  sudo update-alternatives --install "/usr/bin/java" "java" "/opt/java/64/jdk1.6.0_30/bin/java" 1
196
  sudo apt-get install openjdk-7-jdk
207 197

  
208
You must accept the license agreement during the install process.
209

  
210 198
If you are not using Ubuntu_/Debian, you can get Java from the Oracle_ website and install using the RPM or other installer (Windows).
211 199

  
212 200
.. _Ubuntu: http://www.ubuntu.com/
213 201

  
214 202
Apache Tomcat
215 203
.............
216
We recommend that you install Tomcat 6 into the directory of your choice.
204
We recommend that you install Tomcat 6 or 7 into the directory of your choice.
217 205
Included with the Metacat download is a Tomcat-friendly start-up script that
218 206
should be installed as well.
219 207

  
......
222 210

  
223 211
If you are running Ubuntu_/Debian, get Tomcat by typing::
224 212

  
225
  sudo apt-get install tomcat6
213
  sudo apt-get install tomcat7
226 214

  
227 215
Otherwise, get Tomcat from the `Apache Tomcat`_ page.
228 216

  
......
238 226
  
239 227
For DataONE deployments edit::  
240 228

  
241
	/etc/tomcat6/catalina.properties
229
	/etc/tomcat7/catalina.properties
242 230
	
243 231
to include::
244 232

  
......
354 342
  sudo a2dismod jk
355 343
  sudo a2enmod jk
356 344

  
357
4. Apache needs to know about the Metacat site. The helper file named "metacat-site" has rules that tell Apache which traffic to route to Metacat. Set up Metacat site by dropping the metacat-site file into the sites-available directory and running a2ensite to enable the site:
345
4. Apache needs to know about the Metacat site. The helper file named "metacat-site.conf" has rules that tell Apache which traffic to route to Metacat. Set up Metacat site by dropping the metacat-site file into the sites-available directory and running a2ensite to enable the site:
358 346

  
359 347
::
360 348

  
361
  sudo cp <metacat_helper_dir>/metacat-site <apache_install_dir>/sites-available
362
  sudo a2ensite metacat-site
349
  sudo cp <metacat_helper_dir>/metacat-site.conf <apache_install_dir>/sites-available
350
  sudo a2ensite metacat-site.conf
363 351
  
364 352
5. Disable the default Apache site configuration:
365 353

  
......
537 525
    sudo chown -R <tomcat_user> /var/metacat
538 526

  
539 527

  
540
3.  Install the Metacat WAR in the Tomcat web-application directory. For instructions on downloading the Metacat WAR, please see Downloading Metacat.  Typically, Tomcat will look for its application files (WAR files) in the <tomcat_home>/webapps directory (e.g., /usr/share/tomcat6/webapps). Your instance of Tomcat may be configured to look in a different directory. We will refer to the Tomcat application directory as <tomcat_app_dir>.  NOTE: The name of the WAR file (e.g., metacat.war) provides the application context, which appears in the URL of the Metacat (e.g., http://yourserver.com/metacat/). To change the context, simply change the name of the WAR file to the desired name before copying it.  To install the Metacat WAR:
528
3.  Install the Metacat WAR in the Tomcat web-application directory. For instructions on downloading the Metacat WAR, please see Downloading Metacat.  Typically, Tomcat will look for its application files (WAR files) in the <tomcat_home>/webapps directory (e.g., /usr/share/tomcat7/webapps). Your instance of Tomcat may be configured to look in a different directory. We will refer to the Tomcat application directory as <tomcat_app_dir>.  NOTE: The name of the WAR file (e.g., metacat.war) provides the application context, which appears in the URL of the Metacat (e.g., http://yourserver.com/metacat/). To change the context, simply change the name of the WAR file to the desired name before copying it.  To install the Metacat WAR:
541 529

  
542 530
  ::
543 531

  
......
548 536

  
549 537
  ::
550 538

  
551
    sudo /etc/init.d/tomcat6 restart
539
    sudo /etc/init.d/tomcat7 restart
552 540

  
553 541
Congratulations! You have now installed Metacat. If everything is installed
554 542
correctly, you should see the Authentication Configuration screen (Figure 2.1)
......
574 562

  
575 563
  ::
576 564

  
577
    /etc/init.d/tomcat6 stop
565
    /etc/init.d/tomcat7 stop
578 566

  
579 567
3. Back up the existing Metacat installation. Although not required, we highly recommend that you back up your existing Metacat to a backup directory (<backup_dir>) before installing a new one. You can do so by typing:
580 568

  
......
606 594

  
607 595
  ::
608 596

  
609
    /etc/init.d/tomcat6 restart
597
    /etc/init.d/tomcat7 restart
610 598

  
611 599

  
612 600
7. Run your new Metacat servlet. Go to a Web browser and visit your installed
......
732 720

  
733 721
  ::
734 722

  
735
    sudo cp <metacat_package_directory>/authority.war /usr/share/tomcat6/webapps
723
    sudo cp <metacat_package_directory>/authority.war /usr/share/tomcat7/webapps
736 724
 
737 725
2. Set up the LSID server by dropping the authority file into Apache's
738 726
   sites-available directory and running a2ensite to enable the site:
......
787 775

  
788 776
  ::
789 777

  
790
    /etc/init.d/tomcat6 restart
778
    /etc/init.d/tomcat7 restart
791 779

  
792 780
5. If you are running Tomcat behind the Apache server (the recommended
793 781
   configuration), set up and enable the authority service site configurations by
......
866 854
Before you can install and run Metacat, you must ensure that a recent Java SDK,
867 855
PostgreSQL and Tomcat are installed, configured, and running correctly. 
868 856

  
869
* `Java 6`_
857
* `Java 7`_
870 858
* `Apache Tomcat`_
871 859
* PostgreSQL_ Database
872 860

  
873
Java 6
861
Java 7
874 862
......
875
To run Metacat, you must have Java 6. (Java 5 is deprecated). Make sure that
863
To run Metacat, you must have Java 7. Make sure that
876 864
the JAVA_HOME environment variable is properly set and that both java and javac
877 865
are on your PATH.
878 866

  
879 867
To download and install Java:
880 868

  
881
1. Browse to: http://java.sun.com/javase/downloads/widget/jdk6.jsp and follow
882
   the instructions to download JDK 6.
869
1. Browse to: http://www.oracle.com/technetwork/java/javase/downloads/jre7-downloads-1880261.html and follow
870
   the instructions to download JDK 7.
883 871

  
884 872
2. Run the downloaded installer to install Java.
885 873

  
......
888 876

  
889 877
  ::
890 878

  
891
    System Variable: JAVA_HOME C:\Program Files\Java\jdk1.6.0_18 
879
    System Variable: JAVA_HOME C:\Program Files\Java\jdk1.7.0_79 
892 880
    (or whichever version you downloaded)
893 881

  
894 882
Apache Tomcat
895 883
.............
896
We recommend that you install Tomcat version 6.  To download and install Tomcat:
884
We recommend that you install Tomcat version 7.  To download and install Tomcat:
897 885

  
898 886
1. Browse to: http://tomcat.apache.org/
899 887
2. Download the Tomcat core zip file 
docs/user/metacat/source/replication.rst
167 167
     sudo cp <hostname>-apache.key /etc/ssl/private 
168 168

  
169 169
4. Apache needs to be configured to request a client certificate when the 
170
   replication API is utilized. The helper file named "metacat-site-ssl" has default 
170
   replication API is utilized. The helper file named "metacat-site-ssl.conf" has default 
171 171
   rules that configure Apache for SSL and client certificate authentication. 
172
   Set up these SSL settings by copying the metacat-site-ssl file into the ``sites-available`` 
172
   Set up these SSL settings by copying the metacat-site-ssl.conf file into the ``sites-available`` 
173 173
   directory, editing pertinent values to match your system and running 
174
   ``a2ensite`` to enable the site. (Note: some settings in metacat-site-ssl need to be 
174
   ``a2ensite`` to enable the site. (Note: some settings in metacat-site-ssl.conf need to be 
175 175
   changed to match the specifics of your system and Metacat deployment.) 
176 176

  
177 177
   ::
178 178
   
179
     sudo cp <metacat_helper_dir>/metacat-site-ssl <apache_install_dir>/sites-available
180
     sudo a2ensite metacat-site-ssl
179
     sudo cp <metacat_helper_dir>/metacat-site-ssl.conf <apache_install_dir>/sites-available
180
     sudo a2ensite metacat-site-ssl.conf
181 181

  
182 182
5. Enable the ssl module: 
183 183

  
......
232 232

  
233 233
   ::
234 234
   
235
     sudo /etc/init.d/tomcat6 restart
235
     sudo /etc/init.d/tomcat7 restart
236 236

  
237 237

  
238 238
   where the ``<remotehostfilename>`` is the name of the certificate file 
docs/user/metacat/source/submitting.rst
185 185
wish to appear in the registry.
186 186

  
187 187
Once you have saved your changes, you must restart Tomcat for them to come 
188
into effect. To restart Tomcat, type: ``sudo /etc/init.d/tomcat6 restart`` or an 
188
into effect. To restart Tomcat, type: ``sudo /etc/init.d/tomcat7 restart`` or an 
189 189
equivalent command appropriate to your operating system. 
190 190

  
191 191
.. figure:: images/screenshots/image037.jpg
docs/user/metacat/source/themes.rst
234 234

  
235 235
  ::
236 236
  
237
    /etc/init.d/tomcat6 restart
237
    /etc/init.d/tomcat7 restart
238 238

  
239 239
Navigate to Metacat's Configuration utility  and select the Configure Skins 
240 240
option. Your custom skin should appear as a choice in the skins list. Change 
src/scripts/debian/metacat-site-ssl.conf
1
<IfModule mod_ssl.c>
2
NameVirtualHost *:443
3
<VirtualHost *:443>
4
        DocumentRoot /var/lib/tomcat6/webapps/metacat
5

  
6
        ScriptAlias /metacat/cgi-bin/ /var/lib/tomcat6/webapps/metacat/cgi-bin/
7
        <Directory "/var/lib/tomcat6/webapps/metacat/cgi-bin/">
8
                AllowOverride All
9
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
10
                Order allow,deny
11
                Allow from all
12
        </Directory>
13

  
14
        <IfModule mod_jk.c>
15
                JkMount /metacat ajp13
16
                JkMount /metacat/* ajp13
17
                JkMount /metacat/metacat ajp13
18
                JkMount /*.jsp ajp13
19
                JkUnMount /metacat/cgi-bin/* ajp13
20

  
21
                JkOptions +ForwardURICompatUnparsed
22
        </IfModule>
23

  
24
        AllowEncodedSlashes On
25
        AcceptPathInfo      On
26
        
27
        #   SSL Engine Switch:
28
        #   Enable/Disable SSL for this virtual host.
29
        SSLEngine on
30
        SSLOptions +StrictRequire +StdEnvVars +ExportCertData
31
        
32
        #   A self-signed (snakeoil) certificate can be created by installing
33
        #   the ssl-cert package. See
34
        #   /usr/share/doc/apache2.2-common/README.Debian.gz for more info.
35
        #   If both key and certificate are stored in the same file, only the
36
        #   SSLCertificateFile directive is needed.
37
        SSLCertificateFile /etc/ssl/certs/<your_cert_name>.crt
38
        SSLCertificateKeyFile /etc/ssl/private/<your_cert_name>.key
39
        SSLCertificateChainFile /etc/ssl/certs/<CA chain file>.crt
40
        
41
        #   Certificate Authority (CA):
42
        #   Set the CA certificate verification path where to find CA
43
        #   certificates for client authentication or alternatively one
44
        #   huge file containing all of them (file must be PEM encoded)
45
        #   Note: Inside SSLCACertificatePath you need hash symlinks
46
        #         to point to the certificate files. Use the provided
47
        #         Makefile to update the hash symlinks after changes.
48
        # Use the correct DataONE chain for validating client certificates
49
        # see: https://repository.dataone.org/software/tools/trunk/ca
50
        SSLCACertificatePath /etc/ssl/certs/
51
        #SSLCACertificateFile /etc/ssl/certs/DataONECAChain.crt
52
        SSLVerifyClient optional
53
        SSLVerifyDepth  10
54
        
55
        #   Client Authentication (Type):
56
        #   Client certificate verification type and depth.  Types are
57
        #   none, optional, require and optional_no_ca.  Depth is a
58
        #   number which specifies how deeply to verify the certificate
59
        #   issuer chain before deciding the certificate is not valid.
60
        <Location /metacat/servlet/replication>
61
                SSLVerifyClient require
62
                SSLVerifyDepth  10
63
        </Location>
64

  
65
		# disable SSL v2 and v3
66
		# intermediate configuration from https://mozilla.github.io/server-side-tls/ssl-config-generator/
67
		SSLProtocol             all -SSLv2 -SSLv3
68
		SSLCipherSuite          ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA
69
		SSLHonorCipherOrder     on
70
    
71
</VirtualHost>
72
</IfModule>
73
        
src/scripts/debian/metacat-site.conf
1
NameVirtualHost *:80
2
<VirtualHost *:80>
3
        DocumentRoot /var/lib/tomcat6/webapps/metacat
4
        ServerName <your_hostname_here>
5

  
6
        ScriptAlias /metacat/cgi-bin/ /var/lib/tomcat6/webapps/metacat/cgi-bin/
7
        <Directory "/var/lib/tomcat6/webapps/metacat/cgi-bin/">
8
                AllowOverride All
9
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
10
                Order allow,deny
11
                Allow from all
12
        </Directory>
13

  
14
        <IfModule mod_jk.c>
15
                JkMount /metacat ajp13
16
                JkMount /metacat/* ajp13
17
                JkMount /metacat/metacat ajp13
18
                JkMount /*.jsp ajp13
19
                JkUnMount /metacat/cgi-bin/* ajp13
20
                
21
        		JkOptions +ForwardURICompatUnparsed
22
        </IfModule>
23
        
24
       	AllowEncodedSlashes On
25
		AcceptPathInfo      On
26
        
27
</VirtualHost>
28

  
src/scripts/debian/workers.properties
1
workers.tomcat_home=/usr/share/tomcat6
2
workers.java_home=/usr/lib/jvm/java-1.6.0-sun
1
workers.tomcat_home=/usr/share/tomcat7
2
workers.java_home=/usr/lib/jvm/java-7-openjdk-amd64
3 3

  
4 4
worker.list=ajp13
5 5
worker.ajp13.port=8009

Also available in: Unified diff