Configuración de Apache para JSP

Añada las siguientes declaraciones al final del archivo httpd.conf.

ScriptAlias /Autodesk Infrastructure Web Server Extension 2017/mapagent/mapagent.fcgi 
    "C:/Program Files/Autodesk/Autodesk Infrastructure Web Server Extension 2017/
    www/mapagent/MapAgent.fcgi"
AliasMatch ^/Autodesk Infrastructure Web Server Extension 2017/mapviewerajax/([^\?])(.*)$ 
    "C:/Program Files/Autodesk/Autodesk Infrastructure Web Server Extension 2017/
    www/mapviewerjava/$1$2"
Alias /Autodesk Infrastructure Web Server Extension 2017/mapviewerajax 
    "C:/Program Files/Autodesk/Autodesk Infrastructure Web Server Extension 2017/
    www/mapviewerjava/ajaxviewer.jsp"
    "C:/Program Files/Autodesk/Autodesk Infrastructure Web Server Extension 2017/
    www/mapviewerjava/$1$2"
    "C:/Program Files/Autodesk/Autodesk Infrastructure Web Server Extension 2017/
Alias /mapserver2017 
    "C:/Program Files/Autodesk/Autodesk Infrastructure Web Server Extension 2017/www/"
<Directory 
   "C:/Program Files/Autodesk/Autodesk Infrastructure Web Server Extension 2017/www/">
  AllowOverride All
  Options All
  Order allow,deny
  Allow from all
  AddHandler mgmapagent_handler .fcgi
  RewriteEngine on
  RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization},L]
</Directory>
ScriptAlias /Autodesk Infrastructure Web Server Extension 2017/mapagent/mapagent.fcgi 
    "C:/Program Files/Autodesk/Autodesk Infrastructure Web Server Extension 2017/www/mapagent/MapAgent.exe"
AliasMatch ^/Autodesk Infrastructure Web Server Extension 2017/mapviewerajax/([^\?])(.*)$ 
    "C:/Program Files/Autodesk/Autodesk Infrastructure Web Server Extension 2017/www/mapviewerjava/$1$2"
Alias /Autodesk Infrastructure Web Server Extension 2017/mapviewerajax 
    "C:/Program Files/Autodesk/Autodesk Infrastructure Web Server Extension 2017/www/mapviewerjava/ajaxviewer.jsp"
    "C:/Program Files/Autodesk/Autodesk Infrastructure Web Server Extension 2017/www/mapviewerjava/$1$2"
    "C:/Program Files/Autodesk/Autodesk Infrastructure Map Server 2017/
 
Alias /Autodesk Infrastructure Web Server Extension 2017 
    "C:/Program Files/Autodesk/Autodesk Infrastructure Web Server Extension 2017/www/"
<Directory 
   "C:/Program Files/Autodesk/Autodesk Infrastructure Web Server Extension 2017/www/">
  AllowOverride All
  Options All
  Order allow,deny
  Allow from all
  AddHandler mgmapagent_handler .fcgi
  RewriteEngine on
  RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization},L]
</Directory>

Sustituya <WebDir> con la ruta real.

Añada la siguiente información al archivo de configuración. Estas declaraciones son necesarias para el conector de Tomcat. Sustituya <HostName>:<Port> por el nombre de host y el puerto correctos. localhost no funcionará para la redirección.

LoadModule    jk_module  modules/mod_jk.so
 
JkWorkersFile 
    "C:/Program Files/Autodesk Infrastructure Web Server Extensions 2017//Apache2/conf/workers.properties"
 
# Where to put jk logs
JkLogFile 
    "C:/Program Files/Autodesk Infrastructure Web Server Extensions 2017/Apache2/logs/mod_jk.log"
# Set the jk log level [debug/error/info]
JkLogLevel    info
# Select the log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
# JkOptions indicate to send SSL KEY SIZE,
JkOptions     +ForwardKeySize +ForwardURICompat -ForwardDirectories
# JkRequestLogFormat set the request format
JkRequestLogFormat     "%w %V %T"
# Send everything for context /examples to worker named 
# worker1 (ajp13)
JkMount /Autodesk/Autodesk Infrastructure Map Server 2017/mapviewerjava/* worker1
 
Redirect /Autodesk/Autodesk Infrastructure Map Server 2017/mapviewerajax/ 
    http://<Hostname>:<Port>/Autodesk/Autodesk Infrastructure Map Server 2017/mapviewerjava/ajaxviewer.jsp
LoadModule    jk_module  modules/mod_jk.so
 
JkWorkersFile 
    "C:/Program Files/Autodesk Infrastructure Web Server Extensions 2017/
    Apache2/conf/workers.properties"
 
# Where to put jk logs
JkLogFile 
    "C:/Program Files/Autodesk Infrastructure Web Server Extensions 2017/
    Apache2/logs/mod_jk.log"
# Set the jk log level [debug/error/info]
JkLogLevel    info
# Select the log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
# JkOptions indicate to send SSL KEY SIZE,
JkOptions     +ForwardKeySize +ForwardURICompat -ForwardDirectories
# JkRequestLogFormat set the request format
JkRequestLogFormat     "%w %V %T"
# Send everything for context /examples to worker named 
# worker1 (ajp13)
JkMount /Autodesk/Autodesk Infrastructure Map Server 2017/mapviewerjava/* worker1
 
Redirect /Autodesk/Autodesk Infrastructure Map Server 2017/mapviewerajax/ 
    http://<Hostname>:<Port>/Autodesk/Autodesk Infrastructure Map Server 2017/mapviewerjava/ajaxviewer.jsp

Sustituya <ApacheHome> con la carpeta raíz de Apache.

LoadModule    jk_module  modules/mod_jk.so
 
JkWorkersFile "<ApacheHome>/conf/workers.properties"
 
# Where to put jk logs
JkLogFile     "<ApacheHome>/logs/mod_jk.log"
# Set the jk log level [debug/error/info]
JkLogLevel    info
# Select the log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
# JkOptions indicate to send SSL KEY SIZE,
JkOptions     +ForwardKeySize +ForwardURICompat -ForwardDirectories
# JkRequestLogFormat set the request format
JkRequestLogFormat     "%w %V %T"
# Send everything for context /examples to worker 
# named worker1 (ajp13)
JkMount /Autodesk/Autodesk Infrastructure Map Server 2017/mapviewerjava/* worker1
 
Redirect /Autodesk/Autodesk Infrastructure Map Server 2017/mapviewerajax/ 
    http://<Hostname>:<Port>/Autodesk/Autodesk Infrastructure Map Server 2017/mapviewerjava/ajaxviewer.jsp