Aggiungere le dichiarazioni seguenti alla fine del file httpd.conf.
ScriptAlias /Autodesk Infrastructure Web Server Extension 2016/mapagent/mapagent.fcgi "C:/Program Files/Autodesk/Autodesk Infrastructure Web Server Extension 2016/ www/mapagent/MapAgent.fcgi" AliasMatch ^/Autodesk Infrastructure Web Server Extension 2016/mapviewerajax/([^\?])(.*)$ "C:/Program Files/Autodesk/Autodesk Infrastructure Web Server Extension 2016/ www/mapviewerjava/$1$2" Alias /Autodesk Infrastructure Web Server Extension 2016/mapviewerajax "C:/Program Files/Autodesk/Autodesk Infrastructure Web Server Extension 2016/ www/mapviewerjava/ajaxviewer.jsp" "C:/Program Files/Autodesk/Autodesk Infrastructure Web Server Extension 2016/ www/mapviewerjava/$1$2" "C:/Program Files/Autodesk/Autodesk Infrastructure Web Server Extension 2016/ Alias /mapserver2016 "C:/Program Files/Autodesk/Autodesk Infrastructure Web Server Extension 2016/www/" <Directory "C:/Program Files/Autodesk/Autodesk Infrastructure Web Server Extension 2016/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 2016/mapagent/mapagent.fcgi "C:/Program Files/Autodesk/Autodesk Infrastructure Web Server Extension 2016/www/mapagent/MapAgent.exe" AliasMatch ^/Autodesk Infrastructure Web Server Extension 2016/mapviewerajax/([^\?])(.*)$ "C:/Program Files/Autodesk/Autodesk Infrastructure Web Server Extension 2016/www/mapviewerjava/$1$2" Alias /Autodesk Infrastructure Web Server Extension 2016/mapviewerajax "C:/Program Files/Autodesk/Autodesk Infrastructure Web Server Extension 2016/www/mapviewerjava/ajaxviewer.jsp" "C:/Program Files/Autodesk/Autodesk Infrastructure Web Server Extension 2016/www/mapviewerjava/$1$2" "C:/Program Files/Autodesk/Autodesk Infrastructure Map Server 2016/ Alias /Autodesk Infrastructure Web Server Extension 2016 "C:/Program Files/Autodesk/Autodesk Infrastructure Web Server Extension 2016/www/" <Directory "C:/Program Files/Autodesk/Autodesk Infrastructure Web Server Extension 2016/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>
Sostituire <DirWeb> con il percorso vero e proprio.
Aggiungere quanto segue al file di configurazione. Queste dichiarazioni sono necessarie per il connettore Tomcat. Sostituire <Nome_host>:<Porta> con il nome host e la porta corretti. localhost non funzionerà per il reindirizzamento.
LoadModule jk_module modules/mod_jk.so JkWorkersFile "C:/Program Files/Autodesk Infrastructure Web Server Extensions 2016//Apache2/conf/workers.properties" # Where to put jk logs JkLogFile "C:/Program Files/Autodesk Infrastructure Web Server Extensions 2016/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 2016/mapviewerjava/* worker1 Redirect /Autodesk/Autodesk Infrastructure Map Server 2016/mapviewerajax/ http://<Hostname>:<Port>/Autodesk/Autodesk Infrastructure Map Server 2016/mapviewerjava/ajaxviewer.jsp
LoadModule jk_module modules/mod_jk.so JkWorkersFile "C:/Program Files/Autodesk Infrastructure Web Server Extensions 2016/ Apache2/conf/workers.properties" # Where to put jk logs JkLogFile "C:/Program Files/Autodesk Infrastructure Web Server Extensions 2016/ 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 2016/mapviewerjava/* worker1 Redirect /Autodesk/Autodesk Infrastructure Map Server 2016/mapviewerajax/ http://<Hostname>:<Port>/Autodesk/Autodesk Infrastructure Map Server 2016/mapviewerjava/ajaxviewer.jsp
Sostituire <ApacheHome> con la cartella principale di 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 2016/mapviewerjava/* worker1 Redirect /Autodesk/Autodesk Infrastructure Map Server 2016/mapviewerajax/ http://<Hostname>:<Port>/Autodesk/Autodesk Infrastructure Map Server 2016/mapviewerjava/ajaxviewer.jsp