Configuring Apache HTTP Server

The installation procedure installs the Apache HTTP Server and supporting files. By default, the files are installed in

/opt/Autodesk/autodeskinfrastructuremapserver2015/webserverextensions/apache2

If you used the --prefix Prefix option with the build_apt.sh command, the files are installed in

Prefix /webserverextensions/apache2

The installation script also creates mapserver.conf in the apache2/conf directory. The mapserver.conf file contains the necessary configuration directives, and is included by httpd.conf.

The installation script also creates mapserver.conf and mapserver-tomcat.conf in the apache2/conf directory. This mapserver.conf file contains the necessary configuration directives to configure Infrastructure Map Server. The mapserver-tomcat.conf file contains the necessary configuration directives to configure the Apache-Tomcat connector.

The Web Extensions directory structure makes use of aliases to simplify client-side URLs. To test whether the installation was successful and the aliases are set up properly, start the Infrastructure Map Server and the Apache HTTP Server.

To test the installation and aliases

  1. Change to the following directory:

    /opt/Autodesk/autodeskinfrastructuremapserver2015/server/bin

  2. Start the Infrastructure Map Server by entering the following at the command prompt:

    ./mgserver.sh

  3. To start the Apache HTTP Server, change to the following directory:

    /opt/Autodesk/autodeskinfrastructuremapserver2015/webserverextensions/apache2/bin

  4. From the command prompt, type

    ./apachectl start

  5. Using a Web browser, test the following URLs:

    http://localhost:8088

    This URL should display the standard Apache welcome page.

    http://localhost:8088/mapserver2015/index.html

    This is a simple HTML page. If it displays correctly then the aliases set up in mapguide.conf are working correctly.

    http://localhost:8088/mapserver2015/mapagent/mapagent.fcgi? OPERATION=ENUMERATERESOURCES&VERSION=1.0.0&RESOURCEID=Library://

    This URL should return an XML document listing the contents of the Infrastructure Map Server repository. Enter Administrator for the user id and admin for the password.

    http://localhost:8088/mapserver2015/mapagent/index.html

    This URL is a set of test forms for the map agent. The .html and .js files should be removed from the mapagent directory in a production environment.