Autodesk 15606-011408-9321 Installation Guide - Page 32

Configuring Apache to Use PHP, Configuring Apache to Use JSP

Page 32 highlights

Configuring Apache to Use PHP To use PHP as the development environment with the Apache HTTP Server, add the following declarations at the end of httpd.conf. ScriptAlias /mapguide/mapagent/mapagent.fcgi "C:/Program Files/MapGuideOpenSource/WebServerExtensions/ www/mapagent/MapAgent.exe" AliasMatch ^/mapguide/mapviewerajax C:/Program Files/MapGuideOpenSource/WebServerExtensions/ www/mapviewerphp/$1$2" Alias /mapguide/mapviewerajax "C:/Program Files/MapGuideOpenSource/WebServerExtensions/ www/mapviewerphp/ajaxviewer.php" AliasMatch ^/mapguide/mapviewerdwf C:/Program Files/MapGuideOpenSource/WebServerExtensions/ www/mapviewerphp/$1$2" Alias /mapguide/mapviewerdwf "C:/Program Files/MapGuideOpenSource/WebServerExtensions/ www/mapviewerphp/dwfviewer.php" Alias /mapguide "C:/Program Files/MapGuideOpenSource/WebServerExtensions/www/" AllowOverride All Options All Order allow,deny Allow from all AddHandler cgi-script .exe RewriteEngine on RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization},L] Save the changes and restart the Apache server. Configuring Apache to Use JSP To use JSP as the development environment with the Apache HTTP Server, you must install the following components: ■ Java JDK 1.5 28 | Chapter 2 Configuring MapGuide Web Server Extensions on Windows

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38

Configuring Apache to Use PHP
To use PHP as the development environment with the Apache HTTP Server,
add the following declarations at the end of httpd.conf.
ScriptAlias /mapguide/mapagent/mapagent.fcgi
"C:/Program Files/MapGuideOpenSource/WebServerExtensions/
www/mapagent/MapAgent.exe"
AliasMatch ^/mapguide/mapviewerajax/([^\?])(.*)$
"C:/Program Files/MapGuideOpenSource/WebServerExtensions/
www/mapviewerphp/$1$2"
Alias /mapguide/mapviewerajax
"C:/Program Files/MapGuideOpenSource/WebServerExtensions/
www/mapviewerphp/ajaxviewer.php"
AliasMatch ^/mapguide/mapviewerdwf/([^\?])(.*)$
"C:/Program Files/MapGuideOpenSource/WebServerExtensions/
www/mapviewerphp/$1$2"
Alias /mapguide/mapviewerdwf
"C:/Program Files/MapGuideOpenSource/WebServerExtensions/
www/mapviewerphp/dwfviewer.php"
Alias /mapguide
"C:/Program Files/MapGuideOpenSource/WebServerExtensions/www/"
<Directory
"C:/Program Files/MapGuideOpenSource/WebServerExtensions/www/">
AllowOverride All
Options All
Order allow,deny
Allow from all
AddHandler cgi-script .exe
RewriteEngine on
RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization},L]
</Directory>
Save the changes and restart the Apache server.
Configuring Apache to Use JSP
To use JSP as the development environment with the Apache HTTP Server,
you must install the following components:
Java JDK 1.5
28
| Chapter 2
Configuring MapGuide Web Server Extensions on Windows