MaxiMalCore
Anmeldungsdatum: 28. Juli 2015
Beiträge: Zähle...
|
Guten Morgen zusammen, ich bin schon seit Wochen an diesem Problem dran und hab geschätzt jede Seite zu CGI unter Apache durchgelesen und ausprobiert. Folgende Situation: Ich habe einen Ubuntu 14.04 Server (komplett nackt) installiert. Darauf möchte ich das OpenSource Terminumfrage Tool Dudle https://dudle.inf.tu-dresden.de/?lang=dezum Laufen bringen.
Das Tool ist in Ruby programmiert und zur korrekten Ausführung müssen CGI-Scripte ausgeführt werden. Für den Ubuntu 14.04 Server habe ich mich entschieden da eine "Vorgabe" eine Linux-Distribution war und weil ich dazu eine, dachte ich, gute Anleitung https://www.bdjl.de/localhost/?p=4371 gefunden hatte. Aus irgendeinem Grund wird dennoch immer nur Code im Browser ausgegeben (Apache Test mit der Standard-Index.html funktioniert). Von demher bin ich mir fast 99% sicher, dass es an der Konfiguration des Apachen liegen "muss". Wie das aber so ist kann man, wenn man sich auf ein Problem festgefahren hat, das Ganze nicht mehr von weiter weg betrachten, vielleicht fehlt mir ja ein anderes Detail das ich mittlerweile nur komplett übersehe. Die Dateien für das Tool habe ich unter /var/www/dudle abgelegt, sprich in keinem vorkonfiguriertem cgi-fähigen Ordner.
Das ist ja meines Wissens nach halb so wild, man muss dann nur in den Apache Config-Dateien angeben, dass in diesem Ordner cgi-Skripte ausgeführt werden dürfen.
Das habe ich bisher probiert über die /etc/apache2/apache2.conf, /etc/apache2/sites-available/default-ssl.conf und 000-default.conf (letztere entspricht der /etc/apache2/sites-enabled/000-default.conf, die scheinen identisch zu sein / ändere ich die eine, ändert sich die andere auch). Eingetragen habe ich immer verschiedene Abwandlungen (was ich halt im Internet so an Tipps gefunden habe) von denen in der Anleitung genannten Config-Einstellungen:
Alias /dudle /var/www/dudle
<Directory /var/www/dudle>
Options +ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory> Es wird weiterhin nur der Code angezeigt.
Es ist ebenfalls auf /var/www/dudle der Vollzugriff für den User www-data eingerichtet (meines Wissens nach der Apache selbst, er braucht ja den Vollzugriff) sowie mit a2enmod cgid das entsprechende Modul frei. Noch zu erwähnen ist, das bei Dudle eine .htaccess Datei (siehe Anhang) standardmäßig enthalten ist in welcher ebenfalls unter Options schon ExecCGI und ein AddHandler cgi-script .cgi gesetzt sind.
Dies alleine aus der Grundkonfiguration heraus hat aber ebenfalls nix gebracht und es steht auch in der oben erwähnten Anleitung drinnen, dass man die Apache Konfiguration noch entsprechend anpassen muss. Die Error-Logs haben mich nie wirklich viel weiter geführt - sobald alles richtig konfiguriert ist und man im Browser nur den Code angezeigt bekommt wird auch nichts in die Error-Logs geschrieben - selbst beim höchsten Level wo jeder Schmarrn angezeigt wird. Wenn benötigt poste ich gerne noch den Inhalt der .conf-Dateien (gerne auch nur Teile), hab nur noch nicht rausgefunden wie ich die hier schön sauber einbinden kann - bin Neuling. 😉 Vielen Dank schonmal fürs Durchlesen und eventuelle Antworten. ☺ Grüße aus München - Max Ps.: Falls ich hier im falschen Forum bin einfach kurz Bescheid geben, dann verschiebe ich das Thema. War nur das einzige wo ich etwas mit WebServer gefunden hab.
- Bilder
|
sebix
Moderator, Webteam
Anmeldungsdatum: 14. April 2009
Beiträge: 5336
|
MaxiMalCore schrieb: Wenn benötigt poste ich gerne noch den Inhalt der .conf-Dateien (gerne auch nur Teile), hab nur noch nicht rausgefunden wie ich die hier schön sauber einbinden kann - bin Neuling. 😉
Im Editor drittes Symbol von recht. Drei geschwungene Klammern. Bitte das auch in deinem vorigen Post fuer den Code verwenden, damit man den gut lesen kann.
|
MaxiMalCore
(Themenstarter)
Anmeldungsdatum: 28. Juli 2015
Beiträge: 7
|
Hier noch einmal - habe keine Bearbeiten Funktion gefunden, ist vielleicht nur eine bestimmte Zeit nach dem Beitrag möglich. MaxiMalCore schrieb: Guten Morgen zusammen, ich bin schon seit Wochen an diesem Problem dran und hab geschätzt jede Seite zu CGI unter Apache durchgelesen und ausprobiert. Folgende Situation: Ich habe einen Ubuntu 14.04 Server (komplett nackt) installiert. Darauf möchte ich das OpenSource Terminumfrage Tool Dudle https://dudle.inf.tu-dresden.de/?lang=dezum Laufen bringen.
Das Tool ist in Ruby programmiert und zur korrekten Ausführung müssen CGI-Scripte ausgeführt werden. Für den Ubuntu 14.04 Server habe ich mich entschieden da eine "Vorgabe" eine Linux-Distribution war und weil ich dazu eine, dachte ich, gute Anleitung https://www.bdjl.de/localhost/?p=4371 gefunden hatte. Aus irgendeinem Grund wird dennoch immer nur Code im Browser ausgegeben (Apache Test mit der Standard-Index.html funktioniert). Von demher bin ich mir fast 99% sicher, dass es an der Konfiguration des Apachen liegen "muss". Wie das aber so ist kann man, wenn man sich auf ein Problem festgefahren hat, das Ganze nicht mehr von weiter weg betrachten, vielleicht fehlt mir ja ein anderes Detail das ich mittlerweile nur komplett übersehe. Die Dateien für das Tool habe ich unter /var/www/dudle abgelegt, sprich in keinem vorkonfiguriertem cgi-fähigen Ordner.
Das ist ja meines Wissens nach halb so wild, man muss dann nur in den Apache Config-Dateien angeben, dass in diesem Ordner cgi-Skripte ausgeführt werden dürfen.
Das habe ich bisher probiert über die /etc/apache2/apache2.conf, /etc/apache2/sites-available/default-ssl.conf und 000-default.conf (letztere entspricht der /etc/apache2/sites-enabled/000-default.conf, die scheinen identisch zu sein / ändere ich die eine, ändert sich die andere auch). Eingetragen habe ich immer verschiedene Abwandlungen (was ich halt im Internet so an Tipps gefunden habe) von denen in der Anleitung genannten Config-Einstellungen:
| Alias /dudle /var/www/dudle
<Directory /var/www/dudle>
Options +ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
|
Es wird weiterhin nur der Code angezeigt.
Es ist ebenfalls auf /var/www/dudle der Vollzugriff für den User www-data eingerichtet (meines Wissens nach der Apache selbst, er braucht ja den Vollzugriff) sowie mit a2enmod cgid das entsprechende Modul frei. Noch zu erwähnen ist, das bei Dudle eine .htaccess Datei (siehe Anhang) standardmäßig enthalten ist in welcher ebenfalls unter Options schon ExecCGI und ein AddHandler cgi-script .cgi gesetzt sind.
Dies alleine aus der Grundkonfiguration heraus hat aber ebenfalls nix gebracht und es steht auch in der oben erwähnten Anleitung drinnen, dass man die Apache Konfiguration noch entsprechend anpassen muss. Die Error-Logs haben mich nie wirklich viel weiter geführt - sobald alles richtig konfiguriert ist und man im Browser nur den Code angezeigt bekommt wird auch nichts in die Error-Logs geschrieben - selbst beim höchsten Level wo jeder Schmarrn angezeigt wird. Wenn benötigt poste ich gerne noch den Inhalt der .conf-Dateien (gerne auch nur Teile), hab nur noch nicht rausgefunden wie ich die hier schön sauber einbinden kann - bin Neuling. 😉 Vielen Dank schonmal fürs Durchlesen und eventuelle Antworten. ☺ Grüße aus München - Max Ps.: Falls ich hier im falschen Forum bin einfach kurz Bescheid geben, dann verschiebe ich das Thema. War nur das einzige wo ich etwas mit WebServer gefunden hab.
/etc/apache2/apache2.conf
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221 | # This is the main Apache server configuration file. It contains the
# configuration directives that give the server its instructions.
# See http://httpd.apache.org/docs/2.4/ for detailed information about
# the directives and /usr/share/doc/apache2/README.Debian about Debian specific
# hints.
#
#
# Summary of how the Apache 2 configuration works in Debian:
# The Apache 2 web server configuration in Debian is quite different to
# upstream's suggested way to configure the web server. This is because Debian's
# default Apache2 installation attempts to make adding and removing modules,
# virtual hosts, and extra configuration directives as flexible as possible, in
# order to make automating the changes and administering the server as easy as
# possible.
# It is split into several files forming the configuration hierarchy outlined
# below, all located in the /etc/apache2/ directory:
#
# /etc/apache2/
# |-- apache2.conf
# | `-- ports.conf
# |-- mods-enabled
# | |-- *.load
# | `-- *.conf
# |-- conf-enabled
# | `-- *.conf
# `-- sites-enabled
# `-- *.conf
#
#
# * apache2.conf is the main configuration file (this file). It puts the pieces
# together by including all remaining configuration files when starting up the
# web server.
#
# * ports.conf is always included from the main configuration file. It is
# supposed to determine listening ports for incoming connections which can be
# customized anytime.
#
# * Configuration files in the mods-enabled/, conf-enabled/ and sites-enabled/
# directories contain particular configuration snippets which manage modules,
# global configuration fragments, or virtual host configurations,
# respectively.
#
# They are activated by symlinking available configuration files from their
# respective *-available/ counterparts. These should be managed by using our
# helpers a2enmod/a2dismod, a2ensite/a2dissite and a2enconf/a2disconf. See
# their respective man pages for detailed information.
#
# * The binary is called apache2. Due to the use of environment variables, in
# the default configuration, apache2 needs to be started/stopped with
# /etc/init.d/apache2 or apache2ctl. Calling /usr/bin/apache2 directly will not
# work with the default configuration.
# Global configuration
#
#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# NOTE! If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the Mutex documentation (available
# at <URL:http://httpd.apache.org/docs/2.4/mod/core.html#mutex>);
# you will save yourself a lot of trouble.
#
# Do NOT add a slash at the end of the directory path.
#
#ServerRoot "/etc/apache2"
#
# The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
#
Mutex file:${APACHE_LOCK_DIR} default
#
# PidFile: The file in which the server should record its process
# identification number when it starts.
# This needs to be set in /etc/apache2/envvars
#
PidFile ${APACHE_PID_FILE}
#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 300
#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive On
#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 100
#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 5
# These need to be set in /etc/apache2/envvars
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}
#
# HostnameLookups: Log the names of clients or just their IP addresses
# e.g., www.apache.org (on) or 204.62.129.132 (off).
# The default is off because it'd be overall better for the net if people
# had to knowingly turn this feature on, since enabling it means that
# each client request will result in AT LEAST one lookup request to the
# nameserver.
#
HostnameLookups Off
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here. If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog ${APACHE_LOG_DIR}/error.log
#
# LogLevel: Control the severity of messages logged to the error_log.
# Available values: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the log level for particular modules, e.g.
# "LogLevel info ssl:warn"
#
LogLevel warn
# Include module configuration:
IncludeOptional mods-enabled/*.load
IncludeOptional mods-enabled/*.conf
# Include list of ports to listen on
Include ports.conf
# Sets the default security model of the Apache2 HTTPD server. It does
# not allow access to the root filesystem outside of /usr/share and /var/www.
# The former is used by web applications packaged in Debian,
# the latter may be used for local directories served by the web server. If
# your system is serving content from a sub-directory in /srv you must allow
# access here, or in any related virtual host.
<Directory />
Options FollowSymLinks
AllowOverride None
Require all denied
</Directory>
<Directory /usr/share>
AllowOverride None
Require all granted
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks
# AllowOverride None
Require all granted
</Directory>
#<Directory /srv/>
# Options Indexes FollowSymLinks
# AllowOverride None
# Require all granted
#</Directory>
# AccessFileName: The name of the file to look for in each directory
# for additional configuration directives. See also the AllowOverride
# directive.
#
AccessFileName .htaccess
#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<FilesMatch "^\.ht">
Require all denied
</FilesMatch>
#
# The following directives define some format nicknames for use with
# a CustomLog directive.
#
# These deviate from the Common Log Format definitions in that they use %O
# (the actual bytes sent including headers) instead of %b (the size of the
# requested file), because the latter makes it impossible to detect partial
# requests.
#
# Note that the use of %{X-Forwarded-For}i instead of %h is not recommended.
# Use mod_remoteip instead.
#
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %O" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
# Include of directories ignores editors' and dpkg's backup files,
# see README.Debian for details.
# Include generic snippets of statements
IncludeOptional conf-enabled/*.conf
# Include the virtual host configurations:
IncludeOptional sites-enabled/*.conf
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
|
/etc/apache2/sites-available/default-ssl.conf
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143 | <IfModule mod_ssl.c>
<VirtualHost _default_:443>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
# 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
# SSL Engine Switch:
# Enable/Disable SSL for this virtual host.
SSLEngine on
# A self-signed (snakeoil) certificate can be created by installing
# the ssl-cert package. See
# /usr/share/doc/apache2/README.Debian.gz for more info.
# If both key and certificate are stored in the same file, only the
# SSLCertificateFile directive is needed.
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
# Server Certificate Chain:
# Point SSLCertificateChainFile at a file containing the
# concatenation of PEM encoded CA certificates which form the
# certificate chain for the server certificate. Alternatively
# the referenced file can be the same as SSLCertificateFile
# when the CA certificates are directly appended to the server
# certificate for convinience.
#SSLCertificateChainFile /etc/apache2/ssl.crt/server-ca.crt
# Certificate Authority (CA):
# Set the CA certificate verification path where to find CA
# certificates for client authentication or alternatively one
# huge file containing all of them (file must be PEM encoded)
# Note: Inside SSLCACertificatePath you need hash symlinks
# to point to the certificate files. Use the provided
# Makefile to update the hash symlinks after changes.
#SSLCACertificatePath /etc/ssl/certs/
#SSLCACertificateFile /etc/apache2/ssl.crt/ca-bundle.crt
# Certificate Revocation Lists (CRL):
# Set the CA revocation path where to find CA CRLs for client
# authentication or alternatively one huge file containing all
# of them (file must be PEM encoded)
# Note: Inside SSLCARevocationPath you need hash symlinks
# to point to the certificate files. Use the provided
# Makefile to update the hash symlinks after changes.
#SSLCARevocationPath /etc/apache2/ssl.crl/
#SSLCARevocationFile /etc/apache2/ssl.crl/ca-bundle.crl
# Client Authentication (Type):
# Client certificate verification type and depth. Types are
# none, optional, require and optional_no_ca. Depth is a
# number which specifies how deeply to verify the certificate
# issuer chain before deciding the certificate is not valid.
#SSLVerifyClient require
#SSLVerifyDepth 10
# SSL Engine Options:
# Set various options for the SSL engine.
# o FakeBasicAuth:
# Translate the client X.509 into a Basic Authorisation. This means that
# the standard Auth/DBMAuth methods can be used for access control. The
# user name is the `one line' version of the client's X.509 certificate.
# Note that no password is obtained from the user. Every entry in the user
# file needs this password: `xxj31ZMTZzkVA'.
# o ExportCertData:
# This exports two additional environment variables: SSL_CLIENT_CERT and
# SSL_SERVER_CERT. These contain the PEM-encoded certificates of the
# server (always existing) and the client (only existing when client
# authentication is used). This can be used to import the certificates
# into CGI scripts.
# o StdEnvVars:
# This exports the standard SSL/TLS related `SSL_*' environment variables.
# Per default this exportation is switched off for performance reasons,
# because the extraction step is an expensive operation and is usually
# useless for serving static content. So one usually enables the
# exportation for CGI and SSI requests only.
# o OptRenegotiate:
# This enables optimized SSL connection renegotiation handling when SSL
# directives are used in per-directory context.
#SSLOptions +FakeBasicAuth +ExportCertData +StrictRequire
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>
Alias /dudle /var/www/dudle
<Directory /var/www/dudle>
Options +ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
# SSL Protocol Adjustments:
# The safe and default but still SSL/TLS standard compliant shutdown
# approach is that mod_ssl sends the close notify alert but doesn't wait for
# the close notify alert from client. When you need a different shutdown
# approach you can use one of the following variables:
# o ssl-unclean-shutdown:
# This forces an unclean shutdown when the connection is closed, i.e. no
# SSL close notify alert is send or allowed to received. This violates
# the SSL/TLS standard but is needed for some brain-dead browsers. Use
# this when you receive I/O errors because of the standard approach where
# mod_ssl sends the close notify alert.
# o ssl-accurate-shutdown:
# This forces an accurate shutdown when the connection is closed, i.e. a
# SSL close notify alert is send and mod_ssl waits for the close notify
# alert of the client. This is 100% SSL/TLS standard compliant, but in
# practice often causes hanging connections with brain-dead browsers. Use
# this only for browsers where you know that their SSL implementation
# works correctly.
# Notice: Most problems of broken clients are also related to the HTTP
# keep-alive facility, so you usually additionally want to disable
# keep-alive for those clients, too. Use variable "nokeepalive" for this.
# Similarly, one has to force some clients to use HTTP/1.0 to workaround
# their broken HTTP/1.1 implementation. Use variables "downgrade-1.0" and
# "force-response-1.0" for this.
BrowserMatch "MSIE [2-6]" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
# MSIE 7 and newer should be able to use keepalive
BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
</VirtualHost>
</IfModule>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
|
/etc/apache2/sites-available/000-default.conf 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 | <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
# 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
|
|
Dakuan
Anmeldungsdatum: 2. November 2004
Beiträge: 6345
Wohnort: Hamburg
|
Mit Apache habe ich schon lange nichts mehr gemacht. Ich nehme mal an, dass Du den Ruby Interpreter bereits installiert hast. Aber hast Du Apache auch beigebracht, wo er den findet oder das er ihn benutzen soll?
|
diesch
Anmeldungsdatum: 18. Februar 2009
Beiträge: 5072
Wohnort: Brandenburg an der Havel
|
Die Einstellungen für Dudle sind nur in default-ssl.conf, aber nicht in 000-default.conf. Daher kann http://localhost/dudle/ (oder welchen Hostnamen du sonst verwendest) nicht funktionieren, sondern nur https://localhost/dudle/ (falls du https richtig konfiguriert hast). Lies dir auch mal /usr/share/doc/apache2/README.Debian.gz durch, um das System hinter den Konfigurationsdateien zu verstehen.
|
diesch
Anmeldungsdatum: 18. Februar 2009
Beiträge: 5072
Wohnort: Brandenburg an der Havel
|
Dakuan schrieb: Mit Apache habe ich schon lange nichts mehr gemacht. Ich nehme mal an, dass Du den Ruby Interpreter bereits installiert hast. Aber hast Du Apache auch beigebracht, wo er den findet oder das er ihn benutzen soll?
Wenn Apache die CGI-Programme nicht ausführen kann, bekommst du eine Fehlermeldung, der Dateiinhalt wird aber nicht angezeigt.
|
MaxiMalCore
(Themenstarter)
Anmeldungsdatum: 28. Juli 2015
Beiträge: 7
|
diesch schrieb: Die Einstellungen für Dudle sind nur in default-ssl.conf, aber nicht in 000-default.conf. Daher kann http://localhost/dudle/ (oder welchen Hostnamen du sonst verwendest) nicht funktionieren, sondern nur https://localhost/dudle/ (falls du https richtig konfiguriert hast). Lies dir auch mal /usr/share/doc/apache2/README.Debian.gz durch, um das System hinter den Konfigurationsdateien zu verstehen.
Https habe ich wohl richtig konfiguriert, die Abfrage kam, ich hab es bestätigt aber es wird nach wie vor nur Text angezeigt. Werd ich mal schmökern! Danke. diesch schrieb: Dakuan schrieb: Mit Apache habe ich schon lange nichts mehr gemacht. Ich nehme mal an, dass Du den Ruby Interpreter bereits installiert hast. Aber hast Du Apache auch beigebracht, wo er den findet oder das er ihn benutzen soll?
Wenn Apache die CGI-Programme nicht ausführen kann, bekommst du eine Fehlermeldung, der Dateiinhalt wird aber nicht angezeigt.
Das bedeutet, dass der Ruby Interpreter installiert ist und funktioniert?
Ich bin wie gesagt rein nach der Anleitung vor gegangen. Zur Sicherheit, wie würde ich den denn installieren und dem Apache beibringen wo er den findet?
|
diesch
Anmeldungsdatum: 18. Februar 2009
Beiträge: 5072
Wohnort: Brandenburg an der Havel
|
Hast du das CGI-Modul aktiviert: sudo a2enmod cgi
|
MaxiMalCore
(Themenstarter)
Anmeldungsdatum: 28. Juli 2015
Beiträge: 7
|
Jep. Dabei aktiviert er mir das cgid Modul statt nur cgi. Hab aber schon lange in Erfahrung gebracht, dass es keinen Unterschied macht. (Hab es auch extra mit dem cgi Modul probiert indem ich das cgid manuell entfernt habe)
|