wie kann ich das CGI-Verzeichnis definieren?

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

wie kann ich das CGI-Verzeichnis definieren?

Postby Pascal1 » 10. April 2006 19:22

Hallo,

Beim Webserver will ich das CGI Verzeichnis definieren. Es muss liegen unter dem Pdad: /ASP/

wie kann ich das machen :?:


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

Postby Wiedmann » 10. April 2006 19:34

Apache-Manual --> ScriptAlias
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby Pascal1 » 10. April 2006 22:38

danke - weißt du wo ich mir das apache manual herunterladen kann? Ich habe Xampp, und das war umsonst, aber da ist kein manual dabei gewesen.

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 22:56

O.k., es scheint zu funktionieren:

"ScriptAlias Directive
Description: Maps a URL to a filesystem location and designates the target as a CGI script
Syntax: ScriptAlias URL-path file-path|directory-path
Context: server config, virtual host
Status: Base
Module: mod_alias

The ScriptAlias directive has the same behavior as the Alias directive, except that in addition it marks the target directory as containing CGI scripts that will be processed by mod_cgi's cgi-script handler. URLs with a (%-decoded) path beginning with URL-path will be mapped to scripts beginning with the second argument which is a full pathname in the local filesystem.

Example:
ScriptAlias /cgi-bin/ /web/cgi-bin/

A request for http://myserver/cgi-bin/foo would cause the server to run the script /web/cgi-bin/foo."

Aber wo in Xampp kann ich sowas hinschreiben? Es gibt dort ja keine Eingabeaufforderung oder ähnliches.

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

Postby deepsurfer » 12. April 2006 11:54

Aber wo in Xampp kann ich sowas hinschreiben? Es gibt dort ja keine Eingabeaufforderung oder ähnliches.

Mit einem Editor !
schau dir die httpd.conf des XAMPP-Apachen an, darin schonmal die Standard Definition eingetragen.
chirio Deep
Wie sagte einst der MCP aus Tron auf dem Bildschirm zu schreiben Pflegte
" ... end of communication ... "
User avatar
deepsurfer
AF Moderator
 
Posts: 6440
Joined: 23. November 2004 10:44
Location: Cologne
Operating System: Win-XP / Win7 / Linux -Debian

Postby Pascal1 » 13. April 2006 09:04

O.k. danke. Ich hab jetzt die Zeile in der httpd.conf im Apache-Ordner von:

ScriptAlias /cgi-bin/ "D:/Xampp/xampp/cgi-bin/"

auf:
ScriptAlias /ASP/ "D:/Xampp/xampp/asp/"

geändert.

Habe ich denn somit mein Ziel erreicht?

Ziel:
"Beim Webserver will ich das CGI Verzeichnis definieren. Es muss liegen unter dem Pdad: /ASP/ "


Ich find´s etwas komisch, da ja in der Zeile nirgendwo mehr CGI auftaucht. Woher soll der Webserver wissen, dass das CGI-Verzeichnis jetzt ASP heisst!?
Wäre da nicht "ScriptAlias /ASP/ "D:/Xampp/xampp/asp/"" logischer?


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 31 guests