Apache CGI Problem

Debian macht sich hervorragend als Web- und Mailserver. Schau auch in den " Tipps und Tricks"-Bereich.
Antworten
Benutzeravatar
sirius01
Beiträge: 170
Registriert: 04.05.2009 11:00:01

Apache CGI Problem

Beitrag von sirius01 » 26.04.2018 07:30:56

Hallo @all,

ich habe mich hier irgendwo im Apache fest gebissen :wink:

Die HTML Seiten werden angezeigt. Doch die cgi s möchte Browser runter laden statt zu öffnen.
Meine /etc/apache2/sites-available

Code: Alles auswählen

<VirtualHost *:80>
	# The ServerName directive sets the request scheme, hostname and port that
	# the server uses to identify itself. This is used when creating
	# redirection URLs. In the context of virtual hosts, the ServerName
	# specifies what hostname must appear in the request's Host: header to
	# match this virtual host. For the default virtual host (this file) this
	# value is not decisive as it is used as a last resort host regardless.
	# However, you must set it for any further virtual host explicitly.
	#ServerName www.example.com

	ServerAdmin webmaster@localhost
	# DocumentRoot /var/www/html
  DocumentRoot   /usr/share/nut/www/
  
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
	<Directory "/usr/lib/cgi-bin">
		AllowOverride None
		Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
		Require all granted
	</Directory>
  

  
	# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
	# error, crit, alert, emerg.
	# It is also possible to configure the loglevel for particular
	# modules, e.g.
	#LogLevel info ssl:warn

	ErrorLog ${APACHE_LOG_DIR}/error.log
	CustomLog ${APACHE_LOG_DIR}/access.log combined

	# For most configuration files from conf-available/, which are
	# enabled or disabled at a global level, it is possible to
	# include a line for only one particular virtual host. For example the
	# following line enables the CGI configuration for this host only
	# after it has been globally disabled with "a2disconf".
	#Include conf-available/serve-cgi-bin.conf
</VirtualHost>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet


Irgendwo muss es noch aktiviert werden. Nur habe ich den Faden verloren.

Ich wäre über einen Tipp dankbar :THX:

gruß sirius01 :) 8) :)

pferdefreund
Beiträge: 3791
Registriert: 26.02.2009 14:35:56

Re: Apache CGI Problem

Beitrag von pferdefreund » 26.04.2018 08:14:06

war das nicht a2ena cgi oder sowas in der Art ? Da hat sich bei apache doch was seit jessie geändert.
sollte mit a2enmod cgid als root aktivierbar sein.

uname
Beiträge: 12046
Registriert: 03.06.2008 09:33:02

Re: Apache CGI Problem

Beitrag von uname » 26.04.2018 11:20:21

Wahrscheinlich

Code: Alles auswählen

a2enmod cgi
Restart des Apache2 nicht vergesssen.

Wer nutzt denn noch CGI?

Benutzeravatar
sirius01
Beiträge: 170
Registriert: 04.05.2009 11:00:01

Re: Apache CGI Problem

Beitrag von sirius01 » 26.04.2018 12:18:06

Danke ihr beiden für die Antworten :THX:

ich werde mich mal durchwuseln :wink:
Wer nutzt denn noch CGI?
Meine USV (NUT) :mrgreen:

gruß sirius01 :) 8) :)

Nachtrag: a2enmod cgi war es :THX: . Es geht Bingo :D

Antworten