tflidd
December 23, 2016, 8:31pm
21
Für das Snappy-Image haben sie PHP-FPM so konfiguriert:
# Setup the proxy to PHP-FPM
ProxyTimeout 3600
<FilesMatch \.php$>
SetHandler "proxy:unix:${SNAP_DATA}/php/php-fpm.sock|fcgi://localhost/"
</FilesMatch>
<Proxy "fcgi://localhost/">
</Proxy>
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# Do not add a slash at the end of the directory path. If you point
# ServerRoot at a non-local disk, be sure to specify a local disk on the
# Mutex directive, if file-based mutexes are used. If you wish to share the
# same ServerRoot for multiple httpd daemons, you will need to change at
# least PidFile.
#
ServerRoot "${SNAP}"
#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
This file has been truncated. show original
Kannst du es damit probieren?
Chelrid
December 24, 2016, 6:38am
22
Für welche Konfigdatei ist das?!
Chelrid
December 26, 2016, 11:18am
24
muss das in die http.conf der subdomain oder die conf-datei vom apache?
tflidd
December 27, 2016, 10:13am
25
Bin mir nicht sicher, aber vermutlich kann man das verschieden konfigurieren, wobei ich es eher in den virtual-host von deiner Sub-Domain vermuten würde.
Chelrid
December 27, 2016, 10:28am
26
so sieht die http.conf der Subdomain derzeit aus, an welche stelle muss dann der von dir gepostete Text rein?
#ATTENTION!
#
#DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY,
#SO ALL YOUR CHANGES WILL BE LOST THE NEXT TIME THE FILE IS GENERATED.
#IF YOU REQUIRE TO APPLY CUSTOM MODIFICATIONS, PERFORM THEM IN THE FOLLOWING FILES:
#/var/www/vhosts/system/cloud.chelrid.de/conf/vhost.conf
#/var/www/vhosts/system/cloud.chelrid.de/conf/vhost_ssl.conf
<IfModule mod_ssl.c>
<VirtualHost 212.227.20.145:7081 >
ServerName "cloud.chelrid.de:443"
ServerAlias "www.cloud.chelrid.de"
ServerAlias "ipv4.cloud.chelrid.de"
ServerAdmin "thomas.gothe@b-c-service.de"
UseCanonicalName Off
DocumentRoot "/var/www/vhosts/chelrid.de/cloud.chelrid.de"
CustomLog /var/www/vhosts/system/cloud.chelrid.de/logs/access_ssl_log plesklog
ErrorLog "/var/www/vhosts/system/cloud.chelrid.de/logs/error_log"
<IfModule mod_suexec.c>
SuexecUserGroup "cdw_hp" "psacln"
</IfModule>
<IfModule mod_userdir.c>
UserDir "/var/www/vhosts/chelrid.de/web_users/*"
</IfModule>
<IfModule mod_sysenv.c>
SetSysEnv PP_VHOST_ID "4982ed5b-8e8f-4398-ad86-0f19e31aafb4"
</IfModule>
ScriptAlias "/cgi-bin/" "/var/www/vhosts/chelrid.de/cloud.chelrid.de/cgi-bin/"
SSLEngine on
SSLVerifyClient none
SSLCertificateFile /opt/psa/var/certificates/cert-yh3KRQ
SSLCACertificateFile /opt/psa/var/certificates/cert-p9OLBJ
<Directory /var/www/vhosts/chelrid.de/cloud.chelrid.de>
<IfModule mod_perl.c>
<Files ~ (\.pl$)>
SetHandler perl-script
PerlHandler ModPerl::Registry
Options +ExecCGI
allow from all
PerlSendHeader On
</Files>
</IfModule>
<IfModule mod_python.c>
<Files ~ (\.py$)>
SetHandler python-program
PythonHandler mod_python.cgihandler
</Files>
</IfModule>
<IfModule mod_fcgid.c>
<Files ~ (\.fcgi$)>
SetHandler fcgid-script
Options +ExecCGI
</Files>
</IfModule>
<IfModule mod_proxy_fcgi.c>
<Files ~ (\.php$)>
SetHandler proxy:unix:///var/www/vhosts/system/cloud.chelrid.de/php-fpm.sock|fcgi://127.0.0.1:9000
</Files>
</IfModule>
SSLRequireSSL
Options -Includes +ExecCGI
</Directory>
<Directory /var/www/vhosts/chelrid.de/web_users>
<IfModule mod_php4.c>
php_admin_flag engine off
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine off
</IfModule>
<IfModule mod_php7.c>
php_admin_flag engine off
</IfModule>
</Directory>
<Directory /var/www/vhosts/chelrid.de>
Options +FollowSymLinks
</Directory>
<Directory "/var/www/vhosts/system/cloud.chelrid.de/statistics">
AuthType Basic
AuthName "Domain statistics"
AuthUserFile "/var/www/vhosts/system/cloud.chelrid.de/pd/d..httpdocs@plesk-stat"
require valid-user
</Directory>
Alias /error_docs /var/www/vhosts/chelrid.de/error_docs
ErrorDocument 400 /error_docs/bad_request.html
ErrorDocument 401 /error_docs/unauthorized.html
ErrorDocument 403 /error_docs/forbidden.html
ErrorDocument 404 /error_docs/not_found.html
ErrorDocument 500 /error_docs/internal_server_error.html
ErrorDocument 405 /error_docs/method_not_allowed.html
ErrorDocument 406 /error_docs/not_acceptable.html
ErrorDocument 407 /error_docs/proxy_authentication_required.html
ErrorDocument 412 /error_docs/precondition_failed.html
ErrorDocument 414 /error_docs/request_uri_too_long.html
ErrorDocument 415 /error_docs/unsupported_media_type.html
ErrorDocument 501 /error_docs/not_implemented.html
ErrorDocument 502 /error_docs/bad_gateway.html
ErrorDocument 503 /error_docs/maintenance.html
</VirtualHost>
</IfModule>
<IfModule mod_ssl.c>
<VirtualHost [2001:8d8:968:7e00::6e:8888]:7081 127.0.0.1:7081>
ServerName "cloud.chelrid.de:443"
ServerAlias "www.cloud.chelrid.de"
ServerAlias "ipv6.cloud.chelrid.de"
ServerAdmin "thomas.gothe@b-c-service.de"
UseCanonicalName Off
DocumentRoot "/var/www/vhosts/chelrid.de/cloud.chelrid.de"
CustomLog /var/www/vhosts/system/cloud.chelrid.de/logs/access_ssl_log plesklog
ErrorLog "/var/www/vhosts/system/cloud.chelrid.de/logs/error_log"
<IfModule mod_suexec.c>
SuexecUserGroup "cdw_hp" "psacln"
</IfModule>
<IfModule mod_userdir.c>
UserDir "/var/www/vhosts/chelrid.de/web_users/*"
</IfModule>
<IfModule mod_sysenv.c>
SetSysEnv PP_VHOST_ID "4982ed5b-8e8f-4398-ad86-0f19e31aafb4"
</IfModule>
ScriptAlias "/cgi-bin/" "/var/www/vhosts/chelrid.de/cloud.chelrid.de/cgi-bin/"
SSLEngine on
SSLVerifyClient none
SSLCertificateFile /opt/psa/var/certificates/cert-yh3KRQ
SSLCACertificateFile /opt/psa/var/certificates/cert-p9OLBJ
<Directory /var/www/vhosts/chelrid.de/cloud.chelrid.de>
<IfModule mod_perl.c>
<Files ~ (\.pl$)>
SetHandler perl-script
PerlHandler ModPerl::Registry
Options +ExecCGI
allow from all
PerlSendHeader On
</Files>
</IfModule>
<IfModule mod_python.c>
<Files ~ (\.py$)>
SetHandler python-program
PythonHandler mod_python.cgihandler
</Files>
</IfModule>
<IfModule mod_fcgid.c>
<Files ~ (\.fcgi$)>
SetHandler fcgid-script
Options +ExecCGI
</Files>
</IfModule>
<IfModule mod_proxy_fcgi.c>
<Files ~ (\.php$)>
SetHandler proxy:unix:///var/www/vhosts/system/cloud.chelrid.de/php-fpm.sock|fcgi://127.0.0.1:9000
</Files>
</IfModule>
SSLRequireSSL
Options -Includes +ExecCGI
</Directory>
<Directory /var/www/vhosts/chelrid.de/web_users>
<IfModule mod_php4.c>
php_admin_flag engine off
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine off
</IfModule>
<IfModule mod_php7.c>
php_admin_flag engine off
</IfModule>
</Directory>
<Directory /var/www/vhosts/chelrid.de>
Options +FollowSymLinks
</Directory>
<Directory "/var/www/vhosts/system/cloud.chelrid.de/statistics">
AuthType Basic
AuthName "Domain statistics"
AuthUserFile "/var/www/vhosts/system/cloud.chelrid.de/pd/d..httpdocs@plesk-stat"
require valid-user
</Directory>
Alias /error_docs /var/www/vhosts/chelrid.de/error_docs
ErrorDocument 400 /error_docs/bad_request.html
ErrorDocument 401 /error_docs/unauthorized.html
ErrorDocument 403 /error_docs/forbidden.html
ErrorDocument 404 /error_docs/not_found.html
ErrorDocument 500 /error_docs/internal_server_error.html
ErrorDocument 405 /error_docs/method_not_allowed.html
ErrorDocument 406 /error_docs/not_acceptable.html
ErrorDocument 407 /error_docs/proxy_authentication_required.html
ErrorDocument 412 /error_docs/precondition_failed.html
ErrorDocument 414 /error_docs/request_uri_too_long.html
ErrorDocument 415 /error_docs/unsupported_media_type.html
ErrorDocument 501 /error_docs/not_implemented.html
ErrorDocument 502 /error_docs/bad_gateway.html
ErrorDocument 503 /error_docs/maintenance.html
</VirtualHost>
</IfModule>
<VirtualHost 212.227.20.145:7080 >
ServerName "cloud.chelrid.de:80"
ServerAlias "www.cloud.chelrid.de"
ServerAlias "ipv4.cloud.chelrid.de"
ServerAdmin "thomas.gothe@b-c-service.de"
UseCanonicalName Off
DocumentRoot "/var/www/vhosts/chelrid.de/cloud.chelrid.de"
CustomLog /var/www/vhosts/system/cloud.chelrid.de/logs/access_log plesklog
ErrorLog "/var/www/vhosts/system/cloud.chelrid.de/logs/error_log"
<IfModule mod_suexec.c>
SuexecUserGroup "cdw_hp" "psacln"
</IfModule>
<IfModule mod_userdir.c>
UserDir "/var/www/vhosts/chelrid.de/web_users/*"
</IfModule>
<IfModule mod_sysenv.c>
SetSysEnv PP_VHOST_ID "4982ed5b-8e8f-4398-ad86-0f19e31aafb4"
</IfModule>
ScriptAlias "/cgi-bin/" "/var/www/vhosts/chelrid.de/cloud.chelrid.de/cgi-bin/"
<IfModule mod_ssl.c>
SSLEngine off
</IfModule>
<Directory /var/www/vhosts/chelrid.de/cloud.chelrid.de>
<IfModule mod_perl.c>
<Files ~ (\.pl$)>
SetHandler perl-script
PerlHandler ModPerl::Registry
Options +ExecCGI
allow from all
PerlSendHeader On
</Files>
</IfModule>
<IfModule mod_python.c>
<Files ~ (\.py$)>
SetHandler python-program
PythonHandler mod_python.cgihandler
</Files>
</IfModule>
<IfModule mod_fcgid.c>
<Files ~ (\.fcgi$)>
SetHandler fcgid-script
Options +ExecCGI
</Files>
</IfModule>
<IfModule mod_proxy_fcgi.c>
<Files ~ (\.php$)>
SetHandler proxy:unix:///var/www/vhosts/system/cloud.chelrid.de/php-fpm.sock|fcgi://127.0.0.1:9000
</Files>
</IfModule>
Options -Includes +ExecCGI
</Directory>
<Directory /var/www/vhosts/chelrid.de/web_users>
<IfModule mod_php4.c>
php_admin_flag engine off
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine off
</IfModule>
<IfModule mod_php7.c>
php_admin_flag engine off
</IfModule>
</Directory>
<Directory /var/www/vhosts/chelrid.de>
Options +FollowSymLinks
</Directory>
<Directory "/var/www/vhosts/system/cloud.chelrid.de/statistics">
AuthType Basic
AuthName "Domain statistics"
AuthUserFile "/var/www/vhosts/system/cloud.chelrid.de/pd/d..httpdocs@plesk-stat"
require valid-user
</Directory>
Alias /error_docs /var/www/vhosts/chelrid.de/error_docs
ErrorDocument 400 /error_docs/bad_request.html
ErrorDocument 401 /error_docs/unauthorized.html
ErrorDocument 403 /error_docs/forbidden.html
ErrorDocument 404 /error_docs/not_found.html
ErrorDocument 500 /error_docs/internal_server_error.html
ErrorDocument 405 /error_docs/method_not_allowed.html
ErrorDocument 406 /error_docs/not_acceptable.html
ErrorDocument 407 /error_docs/proxy_authentication_required.html
ErrorDocument 412 /error_docs/precondition_failed.html
ErrorDocument 414 /error_docs/request_uri_too_long.html
ErrorDocument 415 /error_docs/unsupported_media_type.html
ErrorDocument 501 /error_docs/not_implemented.html
ErrorDocument 502 /error_docs/bad_gateway.html
ErrorDocument 503 /error_docs/maintenance.html
</VirtualHost>
<VirtualHost [2001:8d8:968:7e00::6e:8888]:7080 127.0.0.1:7080>
ServerName "cloud.chelrid.de:80"
ServerAlias "www.cloud.chelrid.de"
ServerAlias "ipv6.cloud.chelrid.de"
ServerAdmin "thomas.gothe@b-c-service.de"
UseCanonicalName Off
DocumentRoot "/var/www/vhosts/chelrid.de/cloud.chelrid.de"
CustomLog /var/www/vhosts/system/cloud.chelrid.de/logs/access_log plesklog
ErrorLog "/var/www/vhosts/system/cloud.chelrid.de/logs/error_log"
<IfModule mod_suexec.c>
SuexecUserGroup "cdw_hp" "psacln"
</IfModule>
<IfModule mod_userdir.c>
UserDir "/var/www/vhosts/chelrid.de/web_users/*"
</IfModule>
<IfModule mod_sysenv.c>
SetSysEnv PP_VHOST_ID "4982ed5b-8e8f-4398-ad86-0f19e31aafb4"
</IfModule>
ScriptAlias "/cgi-bin/" "/var/www/vhosts/chelrid.de/cloud.chelrid.de/cgi-bin/"
<IfModule mod_ssl.c>
SSLEngine off
</IfModule>
<Directory /var/www/vhosts/chelrid.de/cloud.chelrid.de>
<IfModule mod_perl.c>
<Files ~ (\.pl$)>
SetHandler perl-script
PerlHandler ModPerl::Registry
Options +ExecCGI
allow from all
PerlSendHeader On
</Files>
</IfModule>
<IfModule mod_python.c>
<Files ~ (\.py$)>
SetHandler python-program
PythonHandler mod_python.cgihandler
</Files>
</IfModule>
<IfModule mod_fcgid.c>
<Files ~ (\.fcgi$)>
SetHandler fcgid-script
Options +ExecCGI
</Files>
</IfModule>
<IfModule mod_proxy_fcgi.c>
<Files ~ (\.php$)>
SetHandler proxy:unix:///var/www/vhosts/system/cloud.chelrid.de/php-fpm.sock|fcgi://127.0.0.1:9000
</Files>
</IfModule>
Options -Includes +ExecCGI
</Directory>
<Directory /var/www/vhosts/chelrid.de/web_users>
<IfModule mod_php4.c>
php_admin_flag engine off
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine off
</IfModule>
<IfModule mod_php7.c>
php_admin_flag engine off
</IfModule>
</Directory>
<Directory /var/www/vhosts/chelrid.de>
Options +FollowSymLinks
</Directory>
<Directory "/var/www/vhosts/system/cloud.chelrid.de/statistics">
AuthType Basic
AuthName "Domain statistics"
AuthUserFile "/var/www/vhosts/system/cloud.chelrid.de/pd/d..httpdocs@plesk-stat"
require valid-user
</Directory>
Alias /error_docs /var/www/vhosts/chelrid.de/error_docs
ErrorDocument 400 /error_docs/bad_request.html
ErrorDocument 401 /error_docs/unauthorized.html
ErrorDocument 403 /error_docs/forbidden.html
ErrorDocument 404 /error_docs/not_found.html
ErrorDocument 500 /error_docs/internal_server_error.html
ErrorDocument 405 /error_docs/method_not_allowed.html
ErrorDocument 406 /error_docs/not_acceptable.html
ErrorDocument 407 /error_docs/proxy_authentication_required.html
ErrorDocument 412 /error_docs/precondition_failed.html
ErrorDocument 414 /error_docs/request_uri_too_long.html
ErrorDocument 415 /error_docs/unsupported_media_type.html
ErrorDocument 501 /error_docs/not_implemented.html
ErrorDocument 502 /error_docs/bad_gateway.html
ErrorDocument 503 /error_docs/maintenance.html
</VirtualHost>
tflidd
December 27, 2016, 10:56am
27
Das steht im Prinzip schon drin. Einzig das
<Proxy "fcgi://localhost/">
</Proxy>
fehlt. Aber leider kann ich dir auch nicht sagen, ob es das fehlende Puzzleteil ist. Wenn ich das testen würde, ginge ich von einer funktionierenden Konfiguration aus und würde sie dann langsam so modifizieren, dass man deinem Beispiel näher kommt.
Gibt es einen Grund dass du auch Perl, Python und den ganzen Kram drin hast? Ich würde prinzipiell alles auf die Funktionen reduzieren, die du wirklich brauchst, alles andere kostet nur Resourcen und ist ein potentielles Sicherheitsrisiko.
Chelrid
December 27, 2016, 11:02am
28
Die Cloud läuft als Subdomain unter einer Domain, die auf einen 1&1 RootServer mit installiertem Plesk Onyx liegt. Die Konfiguration kommt ansich komplett von dem 1&1 Image, einzig die Domains sind von mir angelegt. Ansonsten habe ich an der Konfig nichts geändert. Daher waren die Module alle von vornherein aktiv. Und da ich bisher auch keine Performance Probleme bemerke bzw. gemeldet bekomme stört es auch nicht weiter.
Ich kann das ganze auch derzeit nicht testen, da ich über die Feiertage Urlaub habe und nicht auf Arbeit bin.
Und von zuhause aus funktioniert die gesamte Cloud ja im Browser ohne Probleme. Die Ordner-Zugriffs-Probleme habe ich ja nur von Arbeit aus.
tflidd
January 7, 2017, 1:44pm
29
I’m back to the environment with the unknown proxy configuration. I can’t reproduce this problem on my current NC 11 setup.
So in your case, you could run a litmus test against your webdav setup. If it works on the demo-server, there must be a difference.
Könnte es ggf. damit zu tun haben, dass der Proxy von Arbeit das https Zertifikat “aufbricht” und es deswegen nicht geht? Allerdings kann ich den Ordner freigeben (mit öffentlichem Uploaden erlaubt) und kann dann ganz normal in den Ordnern arbeiten. Allerdings ist das nun nicht gerade eine sichere Umgehung des Problems…
tflidd
March 7, 2017, 9:06pm
31
Falls das gemacht ist, würde ich keinerlei vertraulichen Infos (Passwörter etc.) über diese Verbindung nutzen. 1. kann der Arbeitgeber alle mitlesen, 2. sind diese Lösungen oft schlecht implementiert und reißen zusätzliche Sicherheitslücken auf.
Und wenn der Proxy schon die SSL-Verschlüsselung aushebelt, verändert er möglicherweise auch andere inhalte (blockieren von bestimmten javascripts etc.).
DE:
Das Thema ist zwar schon in die Jahre gekommen aber auch ich habe das Problem das mir nichts erlaubt wird.
Eins vorne weg, es befndet sich kein Proxy dazwischen.
Aktuell habe ich Nextcloud auf meinem vServer installiert, CentOS, PHP 7.3, und bekomme dort auch diese Meldung und kann gar nichts ändern oder löschen. <-- per Hand und Softaculous installiert.
Auf einem gemieteten WebSpace funktioniert Nextcloud ohne Probleme.
Hat da wer eine Idee?
Gruß
Chris
EN:
The topic is already getting old but I also have the problem that I’m not allowed anything.
One ahead, there is no proxy in between.
Currently I have Nextcloud installed on my vServer, CentOS, PHP 7.3, and get there also this message and can not change or delete anything. <- installed by hand and Softaculous.
On a rented WebSpace Nextcloud works without problems.
Does anyone have an idea?
greeting
Chris
dear @Chris007 ,
as this thread got started some 3 years ago with last posting to it 2 years ago i generally doubt that your setting is even far comparable to the original issue.
so please remove your posting here and open a new one with some more infos about your server/settings/environment…
thanks