Personal tools
You are here: Home Framework Documentation Administrators Guide Administering an Apache Web Service

4      Administering an Apache Web Service

4.1    Configuring an Apache Web Server

For the Apache Web, add the following line to the .mime.types configuration file:

  • application/x-java-jnlp-file JNLP
  • text/plain properties

4.2    Web Server

Make sure there is a web server running on the server.  Create an Alias “<app name>” to point to the project directory.

 

Edit httpd.conf:

 

Alias /<app name> "/opt/apps/<app name>"

 

<Directory "/opt/apps/<app name>">

    AllowOverride None

    Options None

    Order allow,deny

    Allow from all

</Directory>

Check that mime types are created for jnlp and jar:

 

Edit httpd.conf

 

AddType application/x-java-jnlp-file .jnlp

AddType application/x-java-archive .jar

AddType application/x-java-archive-diff .jardiff

 

Set the apache timeout to 10 seconds to fix the bug with downloading jar files using Java Webstart.

 

Edit httpd.conf

 

Timeout 10

4.3    Verify Webserver

Make sure http://<servername>:<port>/<app name>/ returns the launch page.

Where:

  • Servername is the name of the web server
  • Port is the port on which the web server runs, usually 80