Einbinden einer ISAPI-Extenson im Apache Webserver

XAMPP Distribution

Um beim Apache-WebserverISAPI-Applications zu aktivieren sind einige Einstellungen nötig, vor allen Dingen muss das Modul mod_isapi.so eingebunden also geladen werden, ich habe gleich für meine Testumgebung auch das Modul mod_cgi.so hinzugefügt. Es sind natürlich auch Berechtigungen für die Bereiche in denen die Module aktiv sein sollen zu setzen.

Im Folgenden habe ich, am Beispiel einer XAMPP für Windows Installation, einmal aufgeführt welche Punkte beachtet werden müssen, damit in einem neu angelegten Verzeichnis isapi-root unter xampp\ eine ISAPI-Application ausgeführt und mit isapi.localhost im Browser aufgerufen werden kann:

http.conf:

LoadModule isapi_module modules/mod_isapi.so
LoadModule cgi_module modules/mod_cgi.so

<IfModule mime_module>
# AddHandler allows you to start ISAPI extensions
AddHandler isapi-handler .dll
#ISAPICacheFile C:/xampp/isapi-root/isapi_.dll
</IfModule>

<IfModule mod_alias.c>
# This allows ISAPI dll's and CGI exe's (both are required for regular aliases)
AddHandler isapi-handler .dll
AddHandler cgi-script .exe

Alias /isapi "C:/xampp/isapi-root"

<Directory "C:/xampp/isapi-root">
Options ExecCGI
</Directory>
</IfModule>

httpd-vhosts.conf:

<VirtualHost *:80>
ServerName isapi.localhost
DocumentRoot "C:/xampp/isapi-root"
ErrorLog "logs/isapi.localhost-error.log"
CustomLog "logs/isapi.localhost-access.log" combined

<Directory "C:/xampp/isapi-root">
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

 hosts (unter Windows 7 C:\Windows\System32\drivers\etc):

127.0.0.1         isapi.localhost

Kontakt

Udo Schmal
Udo Schmal

Udo Schmal
Softwareentwickler
Ellerndiek 26
24837 Schleswig
Schleswig-Holstein
Germany




+49 4621 9785538
+49 1575 0663676
+49 4621 9785539
SMS
WhatsApp

Google Maps Profile
Instagram Profile
vCard 2.1, vCard 3.0, vCard 4.0

Service Infos

CMS Info

Product Name:
UDOs Webserver
Version:
0.5.1.68
Description:
All in one Webserver
Copyright:
Udo Schmal
Compilation:
Sat, 9. Mar 2024 07:54:53

Development Info

Compiler:
Free Pascal FPC 3.3.1
compiled for:
OS:Linux, CPU:x86_64

System Info

OS:
Ubuntu 22.04.4 LTS (Jammy Jellyfish)

Hardware Info

Model:
Hewlett-Packard HP Pavilion dm4 Notebook PC
CPU Name:
Intel(R) Core(TM) i5-2430M CPU @ 2.40GHz
CPU Type:
x86_64, 1 physical CPU(s), 2 Core(s), 4 logical CPU(s),  MHz