Webserver - Endung 'aspx' als CGI ausführen....

Irgendwelche Probleme mit XAMPP für Windows? Dann ist hier genau der richtige Ort um nachzufragen.

Webserver - Endung 'aspx' als CGI ausführen....

Postby Pascal1 » 10. April 2006 19:24

Hallo,

Der Webserver muss so eingestellt werden, das er die Endung .aspx als CGI ausfuehrt bzw mit perl ausfuehrt. Wie bekomme ich das hin :?:

Pascal
Pascal1
 
Posts: 37
Joined: 10. April 2006 19:17

Postby Wiedmann » 10. April 2006 19:39

Apache-Manual --> AddType usw.

Mit was ein CGI-Script ausgeführt wird steht normal im Shebang in diesem Script.

aspx und perl hört sich nach Apache::ASP an? Die haben aber IMHO eine Config/INstall-Anleitung auf ihrer Webseite. IMHO wird das dort nicht über CGI sondern über einen Handler gemacht.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby Pascal1 » 10. April 2006 22:40

weiß jemand, wo ich mir das apache-manual herunterladen kann? Ich hab nur Xampp heruntergeladen(ist umsonst) und habe deshalb das Apache-manual nicht.

Pascal
Pascal1
 
Posts: 37
Joined: 10. April 2006 19:17

Postby Pascal1 » 10. April 2006 22:46

Pascal1
 
Posts: 37
Joined: 10. April 2006 19:17

Postby Pascal1 » 10. April 2006 23:00

Hier - so könnte es funktionieren:

"AddType Directive
Description: Maps the given filename extensions onto the specified content type
Syntax: AddType MIME-type extension [extension] ...
Context: server config, virtual host, directory, .htaccess
Override: FileInfo
Status: Base
Module: mod_mime

The AddType directive maps the given filename extensions onto the specified content type. MIME-type is the MIME type to use for filenames containing extension. This mapping is added to any already in force, overriding any mappings that already exist for the same extension. This directive can be used to add mappings not listed in the MIME types file (see the TypesConfig directive).

Example
AddType image/gif .gif

It is recommended that new MIME types be added using the AddType directive rather than changing the TypesConfig file. "


-->
-->
Also so: 'AddType asp/cgi .aspx' ???

Wenn ja, wo muß ich´s eintippen?

Pascal
Pascal1
 
Posts: 37
Joined: 10. April 2006 19:17

Postby Pascal1 » 13. April 2006 09:10

O.k., habs herausgefunden, man muß es in der "httpd.conf" eingeben bwz. abändern, wenn man die voreingestelle erst einmal benutzen will.

Die Datei befindet sich bei mir hier: "D:\Xampp\xampp\apache\conf"

Xampp habe ich in "D:\Xampp" installiert. Den Unterordner "xampp" erstelle Xampp bei der Installation selbständig.

Ist das denn so korrekt dann eingegeben von mir (Ziel: Der Webserver muss so eingestellt werden, das er die Endung .aspx als CGI ausfuehrt bzw mit perl ausfuehrt.):

--> Also so: 'AddType asp/cgi .aspx' ???



Pascal
Pascal1
 
Posts: 37
Joined: 10. April 2006 19:17

Postby Pascal1 » 13. April 2006 15:48

Also Addtype ist falsch, aber so müsste es gehen:

Ausschnitt aus meiner httpc.conf:
<Directory "D:/Xampp/xampp/ASP">
# AllowOverride None
Options +ExecCGI
AddHandler cgi-script .aspx
# Order allow,deny
# Allow from all
</Directory>
ScriptAlias /ASP/ "D:/Xampp/xampp/ASP/"

->die drei Rautefunktionen habe rausgenommen, weil ich nicht weiß, was die machen. Die entscheidenden Code-Zeilen sind:

Options +ExecCGI
AddHandler cgi-script .aspx


Pascal
Pascal1
 
Posts: 37
Joined: 10. April 2006 19:17


Return to XAMPP für Windows

Who is online

Users browsing this forum: No registered users and 39 guests