116480
Goto Top

Apache Webseite meldet Die Website hat die Anzeige dieser Webseite abgelehnt

Hallo,

wenn die Webseiten auf einem Apache nicht aufgerufen werden können. Weil kommt Die Website hat die Anzeige dieser Webseite abgelehnt
Im Internet Explorer kommt dann 403. Wo kann ich das im Apache berechtigen ?

Gruss
Ralf

Content-Key: 297941

Url: https://administrator.de/contentid/297941

Printed on: April 20, 2024 at 02:04 o'clock

Member: michi1983
michi1983 Mar 02, 2016 at 13:38:49 (UTC)
Goto Top
Hallo,

wenn die Webseiten auf einem Apache nicht aufgerufen werden können
Ähm.. wie bitte?

Weil kommt Die Website hat die Anzeige dieser Webseite abgelehnt
Wie bitte?

Im Internet Explorer kommt dann 403
Okay

Wo kann ich das im Apache berechtigen ?
Was willst du berechtigen?

Könntest du uns bitte allen einen Gefallen tun und deine Frage nochmal in einem verständlichen Deutsch überarbeiten?
Lieben Dank.

Gruß
Mitglied: 116480
116480 Mar 02, 2016 at 13:45:53 (UTC)
Goto Top
Hallo,

steht doch da . Webseiten können nicht aufgerufen werden.
Seit SSL Install
Es kommt wenn man eine Webseite aufruft im Internet Explorer "Die Website hat die Anzeige dieser Webseite abgelehnt "
mit Fehler 403 .
Eine Berechtigung verbietet einem das Browsen der Webseiten


Die Website hat die Anzeige dieser Webseite abgelehnt (HTTP 403)


Internet Explorer kann eine Verbindung mit der Website herstellen, Internet Explorer hat jedoch nicht das Recht zum Anzeigen der Webseite. Dies kann eine Reihe von Ursachen haben. Im Folgenden erhalten Sie eine Auflistung der häufigsten Ursachen:

•Der Administrator der Website muss Ihnen das Recht zum Anzeigen der Seite einräumen, oder der Webserver akzeptiert keine Anforderungen zur Anzeige öffentlicher Webseiten. Wenn es sich um eine Website handelt, auf die Sie Zugriff haben sollten, wenden Sie sich an den Administrator der Website.


•Die Webseite, die Sie anzeigen möchten, wird von einem Programm wie einer Warenkorbanwendung oder einer Suchmaschine erzeugt, und der jeweilige Programmordner auf dem Server wurde vom Administrator der Website nicht ordnungsgemäß konfiguriert.


• Sie haben eine allgemeine Webadresse (beispielsweise www.example.com) eingegeben, die Website weist jedoch keine standardmäßige Webseite (wie index.htm oder default.html) auf. Außerdem erlaubt die Website nicht das Anzeigen von Verzeichnisinhalten, womit die Dateien in einem Webordner angezeigt werden können.


In unserem Fall macht der Apache die Verbindung dicht !


Gruss
Ralf
Member: michi1983
michi1983 Mar 02, 2016 updated at 13:51:19 (UTC)
Goto Top
Hallo,

das mit dem SSL hast du aber erst jetzt geschrieben face-wink

    • Okay, und wir reden hier von einem Aufruf einer Seite bei euch im lokalen Netz?
    • Was genau ist der Webserver?
    • Welche Apache Version?
    • Rufst du eine https Seite auf?
    • Funktionieren normale http Seiten?
    • Wie sieht die Apache config aus?

Gruß
Mitglied: 116480
116480 Mar 02, 2016 updated at 13:53:41 (UTC)
Goto Top
Hallo,

ja bvisher ist das nur im lokalen Netz integriert.
Cent OS 7 mit Apache . Version müsste relativ die neueste sein. Da erst installiert. Vermutlich 2.4 wie om Conf zu sehen ist
Fehler kommt bei http und https
Anbei die conf

#
# This is the main Apache HTTP server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
# In particular, see 
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure  
# consult the online docs. You have been warned.  
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the  
# server will use that explicit path.  If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so 'log/access_log'  
# with ServerRoot set to '/www' will be interpreted by the  
# server as '/www/log/access_log', where as '/log/access_log' will be  
# interpreted as '/log/access_log'.  

#
# 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 "/etc/httpd"  

#
# 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
Listen 80

#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the  
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need  
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
Include conf.modules.d/*.conf

#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.  
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
#
User apache
Group apache

# 'Main' server configuration  
#
# The directives in this section set up the values used by the 'main'  
# server, which responds to any requests that aren't handled by a  
# <VirtualHost> definition.  These values also provide defaults for
# any <VirtualHost> containers you may define later in the file.
#
# All of these directives may appear inside <VirtualHost> containers,
# in which case these default settings will be overridden for the
# virtual host being defined.
#

#
# ServerAdmin: Your address, where problems with the server should be
# e-mailed.  This address appears on some server-generated pages, such
# as error documents.  e.g. admin@your-domain.com
#
ServerAdmin root@localhost

#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.  
#
#ServerName www.example.com:80

#
# Deny access to the entirety of your server's filesystem. You must  
# explicitly permit access to web content directories in other 
# <Directory> blocks below.
#
<Directory />
    AllowOverride none
    Require all denied
</Directory>

#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as  
# you might expect, make sure that you have specifically enabled it
# below.
#

#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/var/www/html"  

#
# Relax access to content within /var/www.
#
<Directory "/var/www">  
    AllowOverride None
    # Allow open access:
    Require all granted
</Directory>

# Further relax access to the default document root:
<Directory "/var/www/html">  
    #
    # Possible values for the Options directive are "None", "All",  
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"  
    # doesn't give it to you.  
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.4/mod/core.html#options
    # for more information.
    #
    Options FollowSymLinks

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:  
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride None

    #
    # Controls who can get stuff from this server.
    #
    Require all granted
</Directory>

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
    DirectoryIndex index.php
</IfModule>

#
# The following lines prevent .htaccess and .htpasswd files from being 
# viewed by Web clients. 
#
<Files ".ht*">  
    Require all denied
</Files>

#
# 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 "logs/error_log"  

#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn

<IfModule log_config_module>
    #
    # The following directives define some format nicknames for use with
    # a CustomLog directive (see below).
    #
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined  
    LogFormat "%h %l %u %t \"%r\" %>s %b" common  

    <IfModule logio_module>
      # You need to enable mod_logio.c to use %I and %O
      LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio  
    </IfModule>

    #
    # The location and format of the access logfile (Common Logfile Format).
    # If you do not define any access logfiles within a <VirtualHost>
    # container, they will be logged here.  Contrariwise, if you *do*
    # define per-<VirtualHost> access logfiles, transactions will be
    # logged therein and *not* in this file.
    #
    #CustomLog "logs/access_log" common  

    #
    # If you prefer a logfile with access, agent, and referer information
    # (Combined Logfile Format) you can use the following directive.
    #
    CustomLog "logs/access_log" combined  
</IfModule>

<IfModule alias_module>
    #
    # Redirect: Allows you to tell clients about documents that used to 
    # exist in your server's namespace, but do not anymore. The client   
    # will make a new request for the document at its new location.
    # Example:
    # Redirect permanent /foo http://www.example.com/bar

    #
    # Alias: Maps web paths into filesystem paths and is used to
    # access content that does not live under the DocumentRoot.
    # Example:
    # Alias /webpath /full/filesystem/path
    #
    # If you include a trailing / on /webpath then the server will
    # require it to be present in the URL.  You will also likely
    # need to provide a <Directory> section to allow access to
    # the filesystem path.

    #
    # ScriptAlias: This controls which directories contain server scripts. 
    # ScriptAliases are essentially the same as Aliases, except that
    # documents in the target directory are treated as applications and
    # run by the server when requested rather than as documents sent to the
    # client.  The same rules about trailing "/" apply to ScriptAlias  
    # directives as to Alias.
    #
    ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"  

</IfModule>

#
# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased  
# CGI directory exists, if you have that configured.
#
<Directory "/var/www/cgi-bin">  
    AllowOverride None
    Options None
    Require all granted
</Directory>

<IfModule mime_module>
    #
    # TypesConfig points to the file containing the list of mappings from
    # filename extension to MIME-type.
    #
    TypesConfig /etc/mime.types

    #
    # AddType allows you to add to or override the MIME configuration
    # file specified in TypesConfig for specific file types.
    #
    #AddType application/x-gzip .tgz
    #
    # AddEncoding allows you to have certain browsers uncompress
    # information on the fly. Note: Not all browsers support this.
    #
    #AddEncoding x-compress .Z
    #AddEncoding x-gzip .gz .tgz
    #
    # If the AddEncoding directives above are commented-out, then you
    # probably should define those extensions to indicate media types:
    #
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz

    #
    # AddHandler allows you to map certain file extensions to "handlers":  
    # actions unrelated to filetype. These can be either built into the server
    # or added with the Action directive (see below)
    #
    # To use CGI scripts outside of ScriptAliased directories:
    # (You will also need to add "ExecCGI" to the "Options" directive.)  
    #
    #AddHandler cgi-script .cgi

    # For type maps (negotiated resources):
    #AddHandler type-map var

    #
    # Filters allow you to process content before it is sent to the client.
    #
    # To parse .shtml files for server-side includes (SSI):
    # (You will also need to add "Includes" to the "Options" directive.)  
    #
    AddType text/html .shtml
    AddOutputFilter INCLUDES .shtml
</IfModule>

#
# Specify a default charset for all content served; this enables
# interpretation of all content as UTF-8 by default.  To use the 
# default browser choice (ISO-8859-1), or to allow the META tags
# in HTML content to override this choice, comment out this
# directive:
#
AddDefaultCharset UTF-8

<IfModule mime_magic_module>
    #
    # The mod_mime_magic module allows the server to use various hints from the
    # contents of the file itself to determine its type.  The MIMEMagicFile
    # directive tells the module where the hint definitions are located.
    #
    MIMEMagicFile conf/magic
</IfModule>

#
# Customizable error responses come in three flavors:
# 1) plain text 2) local redirects 3) external redirects
#
# Some examples:
#ErrorDocument 500 "The server made a boo boo."  
#ErrorDocument 404 /missing.html
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"  
#ErrorDocument 402 http://www.example.com/subscription_info.html
#

#
# EnableMMAP and EnableSendfile: On systems that support it, 
# memory-mapping or the sendfile syscall may be used to deliver
# files.  This usually improves server performance, but must
# be turned off when serving from networked-mounted 
# filesystems or if support for these functions is otherwise
# broken on your system.
# Defaults if commented: EnableMMAP On, EnableSendfile Off
#
#EnableMMAP off
EnableSendfile on
LoadModule php5_module modules/libphp5.so
# Supplemental configuration
#
# Load config files in the "/etc/httpd/conf.d" directory, if any.  
IncludeOptional conf.d/*.conf
Member: wiesi200
wiesi200 Mar 02, 2016 at 13:53:50 (UTC)
Goto Top
Zitat von @michi1983:

Hallo,

das mit dem SSL hast du aber erst jetzt geschrieben face-wink

    • Okay, und wir reden hier von einem Aufruf einer Seite bei euch im lokalen Netz?
    • Was genau ist der Webserver?
    • Welche Apache Version?
    • Rufst du eine https Seite auf?
    • Funktionieren normale http Seiten?
    • Wie sieht die Apache config aus?

Gruß

Mit Fakten hat's der Kollege nicht so. Schon mal die Vorgeschichte.
Nach Installation MOD SSL geht gar kein Web mehr auf CentOS

Ich selber wollt dann nicht mehr lange nachfragen müssen.
Member: michi1983
michi1983 Mar 02, 2016 updated at 13:59:15 (UTC)
Goto Top
Und die Website von dir liegt in
/var/www/html
?
Alternativ setze mal das Loglevel auf debug und check die Logs was der Apache meint.
SSL ist definitiv nicht definiert in dieser config aber jetzt schauen wir erst mal das normales http funktioniert.
Was passiert denn, wenn du die IP des Apache Servers im Browser eingibst?
Läuft der Apache?

Gruß
Member: michi1983
michi1983 Mar 02, 2016 at 13:59:43 (UTC)
Goto Top
Zitat von @wiesi200:
Mit Fakten hat's der Kollege nicht so. Schon mal die Vorgeschichte.
Nach Installation MOD SSL geht gar kein Web mehr auf CentOS

Ich selber wollt dann nicht mehr lange nachfragen müssen.
Ouch face-smile Naja, ich versuch mein Glück mal.
Mitglied: 116480
116480 Mar 02, 2016 at 14:00:35 (UTC)
Goto Top
die Standardwebseite liegt auf /var/www/html
Diese wird nun aber nicht mehr benutzt. Wir haben nun VHosts unter /Var/Vhost !

Gruss
Ralf
Member: michi1983
michi1983 Mar 02, 2016 updated at 14:05:54 (UTC)
Goto Top
Zitat von @116480:

die Standardwebseite liegt auf /var/www/html
Wenn der Apache nicht mal aus diesem Verzeichnis die index.php oder index.html lädt, dann bist du von vhosts noch weit weg.
Ich persönlich würde dir empfehlen von 0 anzufangen.
Deinstalliere den Apache nochmal und gehe Schritt für Schritt diese Anleitung durch.
Und wenn das geklappt hat, dann befolge diese Anleitung Schritt für Schritt.
Damit solltest du das relativ schnell zum Fliegen kriegen.

Gruß

P.S.:
Wir haben nun VHosts unter /Var/Vhost !
Das wird aber nicht klappen, das das ja nicht dein DocumentRoot ist!
Mitglied: 116480
116480 Mar 02, 2016 at 14:08:54 (UTC)
Goto Top
Hallo,

die Vhosts Web liefen ja einwandfrei ! Apache ist Einwandfrei installiert.
Das Problem ist nun einfach, das er das Web nicht anzeigt !Und irgendwo muss er das ja eingeschränkt haben.
Da nützt es recht wenig bei 0 anzufangen. Man muss das so lösen.

Gruss
Ralf
Mitglied: 116480
116480 Mar 02, 2016 updated at 14:11:47 (UTC)
Goto Top
NAch aktivieren dieses Moduls , haben die Seiten nun keine Berechtigung die Seite dem Client anzuzeigen, daher ja 403

https://wiki.centos.org/HowTos/Https

Gruss
Ralf
Member: SlainteMhath
SlainteMhath Mar 02, 2016 at 14:12:58 (UTC)
Goto Top
Moin,

deine Apache conf enthällt keinerlei SSL Konfiguration (auch keine Vhosts)
Seid kA wieviel Versionen ist die Apache Conf getrennt. Ggfs. liegen die Vhosts-Config wo andere (/etc/apache2/sites-enabled wäre ein guter Ort zum suchen)

Seit SSL Install
Was genau wurde denn Installiert? Und Konfiguriert?

lg,
Slainte
Member: michi1983
michi1983 Mar 02, 2016 updated at 14:15:47 (UTC)
Goto Top
Zitat von @116480:

Hallo,

die Vhosts Web liefen ja einwandfrei ! Apache ist Einwandfrei installiert.
Das Problem ist nun einfach, das er das Web nicht anzeigt !Und irgendwo muss er das ja eingeschränkt haben.
Da nützt es recht wenig bei 0 anzufangen. Man muss das so lösen.
Es nützt insofern etwas, da es meist schneller ist es nochmal neu zu machen, als nach der Nadel im Heuhaufen zu suchen.

Wie schauen deine vhosts denn aus in
/etc/httpd/conf.d
?
Mitglied: 116480
116480 Mar 02, 2016 updated at 14:17:23 (UTC)
Goto Top
Doch klar.
Das ieine ist ja die conf unter Verzeichnis conf. Im Conf.d werden alle für Vhost abgelegt
<VirtualHost *:80>
    ServerAdmin support@xxx.ch
    DocumentRoot /var/vhost/upload/html
    ServerName upload2.xxx.ch
    ErrorLog /var/vhost/upload/logs/error_log
    CustomLog /var/vhost/upload/logs/access_log common
    ScriptAlias /cgi-bin/ "/var/vhost/upload/cgi-bin/"  
    <Directory "/var/vhost/upload/html">  
        AllowOverride All
    </Directory>
</VirtualHost>

<VirtualHost 192.168.47.237:443>
    ServerAdmin support@xxx.ch
    DocumentRoot /var/vhost/upload/html
    ServerName upload2.xxx.ch
    ErrorLog /var/vhost/upload/logs/ssl_error_log
    CustomLog /var/vhost/upload/logs/ssl_access_log common
    ScriptAlias /cgi-bin/ "/var/vhost/upload/cgi-bin/"  
    <Directory "/var/vhost/upload/html">  
        AllowOverride All
    </Directory>

    SSLEngine on
    SSLProtocol all -SSLv2
    SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW
    SSLCertificateFile /etc/pki/tls/certs/wild_obt_ch_2016_12_11.nokey.pem
    SSLCertificateKeyFile /etc/pki/tls/certs/wild_obt_ch_2016_12_11.key
    SSLCACertificateFile /etc/pki/tls/certs/Thawte_SSL_CA_Bundle2.pem
</VirtualHost>


Es wurde genau Punkt nach Punkt vorgegangen mit dem SSL

Gruss
Member: michi1983
michi1983 Mar 02, 2016 at 14:18:36 (UTC)
Goto Top
Zitat von @michi1983:
Alternativ setze mal das Loglevel auf debug und check die Logs was der Apache meint.
Hast du das schon umgesetzt?
Member: SlainteMhath
SlainteMhath Mar 02, 2016 at 14:25:24 (UTC)
Goto Top
Falls du keine .htaccess benutzt, fehlt dir zwischen den Zeilen 8, 10 und 20, 22 ein
  Allow from all
Mitglied: 116480
116480 Mar 02, 2016 updated at 14:45:21 (UTC)
Goto Top
Hallo,

ich habe nun zwischen die Zeilen das Allow from all eingetragen

<VirtualHost *:80>
    ServerAdmin support@domain.tld
    DocumentRoot /var/vhost/upload/html
    ServerName upload2.domain.tld
    ErrorLog /var/vhost/upload/logs/error_log
    CustomLog /var/vhost/upload/logs/access_log common
    ScriptAlias /cgi-bin/ "/var/vhost/upload/cgi-bin/"  
    <Directory "/var/vhost/upload/html">  
	Allow from all
        AllowOverride All
	Allow from all
    </Directory>
</VirtualHost>

<VirtualHost 192.168.47.237:443>
    ServerAdmin support@domain.tld
    DocumentRoot /var/vhost/upload/html
    ServerName upload2.domain.tld
    ErrorLog /var/vhost/upload/logs/ssl_error_log
    CustomLog /var/vhost/upload/logs/ssl_access_log common
    ScriptAlias /cgi-bin/ "/var/vhost/upload/cgi-bin/"  
    <Directory "/var/vhost/upload/html">  
	Allow from all
        AllowOverride All
	Allow from all
    </Directory>

    SSLEngine on
    SSLProtocol all -SSLv2
    SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW
    SSLCertificateFile /etc/pki/tls/certs/wild_domain_tld_2016_12_11.nokey.pem
    SSLCertificateKeyFile /etc/pki/tls/certs/wild_domain_tld_2016_12_11.key
    SSLCACertificateFile /etc/pki/tls/certs/Thawte_SSL_CA_Bundle2.pem
</VirtualHost>

Wie aktiviert man eigentlich einen Loglevel auf Debug ?

Gruss
ralf
Member: michi1983
michi1983 Mar 02, 2016 updated at 14:44:16 (UTC)
Goto Top
Zitat von @116480:
Wie aktiviert man eigentlich einen Loglevel auf Debug ?
Hast du dir die Apache config überhaupt einmal durchgelesen? Da ist ja eh alles kommentiert.
Falls nicht, tu es face-wink
Member: SlainteMhath
SlainteMhath Mar 02, 2016 at 14:48:49 (UTC)
Goto Top
Wie aktiviert man eigentlich einen Loglevel auf Debug ?
Also ich weis nicht, ob du tatsächlich (produktive) Apache Server administrieren solltest face-smile

...und ein "Allow from all" pro "Directory" Direktive ist ausreich face-smile
Mitglied: 116480
116480 Mar 02, 2016 at 14:50:33 (UTC)
Goto Top
Hallo,

ja bin nicht scharf auf das Administrieren. Klar. Aber im Moment besteht eben genau dieser eine Fehler.

Gruss
Ralf
Mitglied: 116480
116480 Mar 02, 2016 at 15:02:50 (UTC)
Goto Top
Wenn man so einen fehler im IIS hat, dann ist da Ruckzuck ein REcht gesetzt und es lauft. Im IIS Fehler sind das Fehler wie NT Authentication etc..
Hier wurde über das SSL ein REcht wo gesetzt. Es kann nur in der Konfig , irgendwo ein "Allow" er bei Linux ein Basiswissen, so wie bei IIS.
Da es hier niemand kennt mache ich nun einen Restore vom Server gestern Abend. Der ist noch im Aufbau, und mache zuvor beim nächsten SSL Install einen Snapshot, dann kommt ich wieder zurück.


Gruss
Ralf¨
Member: SlainteMhath
SlainteMhath Mar 02, 2016 at 15:36:16 (UTC)
Goto Top
Hier wurde über das SSL ein REcht wo gesetzt
Sorry aber das ist vollkommener Bullshit.
Wie wurde denn "das SSL installiert"? Per Hand? Per Script? Stimmen denn die Rechte auf jedem einzelnen Verchoniss im Pfad"/var/vhost/upload/html" ?

Oder gibt's vielleicht doch eine .htaccess?

... mache ich nun einen Restore ...
Ja, ok mach das face-smile
Mitglied: 116480
116480 Mar 02, 2016 at 16:07:41 (UTC)
Goto Top
Hallo,

ein HT Access ist mir unbekannt.
Rechte hatte ich auch auf das web geprüft. 755 Jeweils .
Ich mache erstmal Restore und schaue weiter. Mit Snapshot kann ich dann da besser testen.

Gruss
Ralf
Mitglied: 116480
116480 Mar 04, 2016 at 08:33:40 (UTC)
Goto Top
Restore ist durch .
Passe nun VHost an. Dann geht das alles wieder.
Da frage ich mich nur , ist es das richtige MOD OPENSSL , oder ist es besser ein anderes MOD zu installieren ?

Gruss
Ralf
Member: SlainteMhath
SlainteMhath Mar 04, 2016 at 08:54:37 (UTC)
Goto Top
Nimm einfach das mod_ssl das deine Distro gepackaged hat.
Mitglied: 116480
116480 Mar 04, 2016 at 09:04:52 (UTC)
Goto Top
ok danke.

Gruss
Ralf
Mitglied: 116480
116480 Mar 15, 2016 updated at 08:47:41 (UTC)
Goto Top
Hallo,

ich habe mal das Web im Standard Verzeichnis zum laufen gebracht.
Dann habe ich nochmals neu ein Vhost Config File erstell:

Listen 80
Listen 443

<VirtualHost 192.168.47.237:80>
  ServerAdmin support@domain.tld
  DocumentRoot /var/vhost/upload/html
  ServerName upload2.domain.tld
  ErrorLog /var/vhost/upload/logs/error_log
  CustomLog /var/vhost/upload/logs/access_log common
  ScriptAlias /cgi-bin/ "/var/vhost/upload/cgi-bin/"  
  <Directory "/var/vhost/upload/html">  
        AllowOverride All
</Directory>

<VirtualHost 192.168.47.237:443>
  ServerAdmin support@domain.tld
  DocumentRoot /var/vhost/upload/html
  ServerName upload2.domain.tld
  ErrorLog /var/vhost/upload/logs/error_log
  CustomLog /var/vhost/upload/logs/access_log common
  ScriptAlias /cgi-bin/ "/var/vhost/upload/cgi-bin/"  
  <Directory "/var/vhost/upload/html">  
        AllowOverride All
</Directory>

</VirtualHost>

Im SSL Error Log habe ich nun:

(13)Permission denied: AH00091: httpd: could not open error log file /var/vhost/upload/logs/ssl_error_log.
AH00015: Unable to open logs
[Tue Mar 15 08:51:41.560141 2016] [core:notice] [pid 10007] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Tue Mar 15 08:51:41.572835 2016] [suexec:notice] [pid 10007] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Mar 15 08:51:41.649758 2016] [so:warn] [pid 10007] AH01574: module php5_module is already loaded, skipping
[Tue Mar 15 08:51:41.659203 2016] [auth_digest:notice] [pid 10007] AH01757: generating secret for digest authentication ...
[Tue Mar 15 08:51:41.659933 2016] [lbmethod_heartbeat:notice] [pid 10007] AH02282: No slotmem from mod_heartmonitor
[Tue Mar 15 08:51:42.413484 2016] [mpm_prefork:notice] [pid 10007] AH00163: Apache/2.4.6 (CentOS) PHP/5.4.16 configured -- resuming normal operations
[Tue Mar 15 08:51:42.413526 2016] [core:notice] [pid 10007] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'  
[Tue Mar 15 08:52:00.856076 2016] [:error] [pid 11169] [client 172.23.20.224:58328] PHP Notice:  A session had already been started - ignoring session_start() in /var/www/html/security.php on line 15
[Tue Mar 15 08:52:00.856108 2016] [:error] [pid 11169] [client 172.23.20.224:58328] PHP Notice:  A session had already been started - ignoring session_start() in /var/www/html/index.php on line 22
[Tue Mar 15 08:52:00.856115 2016] [:error] [pid 11169] [client 172.23.20.224:58328] PHP Notice:  Use of undefined constant login - assumed 'login' in /var/www/html/index.php on line 25  
[Tue Mar 15 08:52:00.856120 2016] [:error] [pid 11169] [client 172.23.20.224:58328] PHP Notice:  Undefined index: login in /var/www/html/index.php on line 25
[Tue Mar 15 08:52:00.856369 2016] [:error] [pid 11169] [client 172.23.20.224:58328] PHP Notice:  Use of undefined constant module - assumed 'module' in /var/www/html/index.php on line 27  
[Tue Mar 15 08:52:00.856376 2016] [:error] [pid 11169] [client 172.23.20.224:58328] PHP Notice:  Use of undefined constant module - assumed 'module' in /var/www/html/index.php on line 27  
[Tue Mar 15 08:52:00.856380 2016] [:error] [pid 11169] [client 172.23.20.224:58328] PHP Notice:  Undefined index: module in /var/www/html/index.php on line 27
[Tue Mar 15 08:52:00.856387 2016] [:error] [pid 11169] [client 172.23.20.224:58328] PHP Notice:  Use of undefined constant module - assumed 'module' in /var/www/html/index.php on line 31  
[Tue Mar 15 08:52:00.856400 2016] [:error] [pid 11169] [client 172.23.20.224:58328] PHP Notice:  Use of undefined constant module - assumed 'module' in /var/www/html/index.php on line 33  
[Tue Mar 15 08:52:00.856405 2016] [:error] [pid 11169] [client 172.23.20.224:58328] PHP Notice:  Use of undefined constant show - assumed 'show' in /var/www/html/index.php on line 34  
[Tue Mar 15 08:52:00.857698 2016] [:error] [pid 11169] [client 172.23.20.224:58328] PHP Notice:  Use of undefined constant login - assumed 'login' in /var/www/html/design.php on line 35  
[Tue Mar 15 08:52:00.857709 2016] [:error] [pid 11169] [client 172.23.20.224:58328] PHP Notice:  Undefined index: login in /var/www/html/design.php on line 35
[Tue Mar 15 08:52:00.857714 2016] [:error] [pid 11169] [client 172.23.20.224:58328] PHP Notice:  Use of undefined constant login - assumed 'login' in /var/www/html/design.php on line 36  
[Tue Mar 15 08:52:00.857717 2016] [:error] [pid 11169] [client 172.23.20.224:58328] PHP Notice:  Undefined index: login in /var/www/html/design.php on line 36
[Tue Mar 15 08:52:00.858427 2016] [:error] [pid 11169] [client 172.23.20.224:58328] PHP Notice:  Use of undefined constant show - assumed 'show' in /var/www/html/modules/nav_modules/loginmodules.php on line 18  
[Tue Mar 15 08:52:00.858440 2016] [:error] [pid 11169] [client 172.23.20.224:58328] PHP Notice:  Use of undefined constant show - assumed 'show' in /var/www/html/modules/nav_modules/loginmodules.php on line 19  
[Tue Mar 15 08:52:00.858445 2016] [:error] [pid 11169] [client 172.23.20.224:58328] PHP Notice:  Use of undefined constant show - assumed 'show' in /var/www/html/modules/nav_modules/loginmodules.php on line 20  
[Tue Mar 15 08:52:00.858458 2016] [:error] [pid 11169] [client 172.23.20.224:58328] PHP Notice:  Use of undefined constant login - assumed 'login' in /var/www/html/design.php on line 40  
[Tue Mar 15 08:52:00.858462 2016] [:error] [pid 11169] [client 172.23.20.224:58328] PHP Notice:  Undefined index: login in /var/www/html/design.php on line 40
[Tue Mar 15 08:52:00.858466 2016] [:error] [pid 11169] [client 172.23.20.224:58328] PHP Notice:  Use of undefined constant module - assumed 'module' in /var/www/html/index.php on line 44  
[Tue Mar 15 08:52:00.871454 2016] [:error] [pid 11169] [client 172.23.20.224:58328] PHP Notice:  A session had already been started - ignoring session_start() in /var/www/html/modules/loginsites/start.php on line 15
[Tue Mar 15 08:53:15.150048 2016] [:error] [pid 11208] [client 172.23.20.224:58365] PHP Notice:  A session had already been started - ignoring session_start() in /var/www/html/security.php on line 15
[Tue Mar 15 08:53:15.150085 2016] [:error] [pid 11208] [client 172.23.20.224:58365] PHP Notice:  A session had already been started - ignoring session_start() in /var/www/html/index.php on line 22
[Tue Mar 15 08:53:15.150092 2016] [:error] [pid 11208] [client 172.23.20.224:58365] PHP Notice:  Use of undefined constant login - assumed 'login' in /var/www/html/index.php on line 25  
[Tue Mar 15 08:53:15.150097 2016] [:error] [pid 11208] [client 172.23.20.224:58365] PHP Notice:  Undefined index: login in /var/www/html/index.php on line 25
[Tue Mar 15 08:53:15.150104 2016] [:error] [pid 11208] [client 172.23.20.224:58365] PHP Notice:  Use of undefined constant module - assumed 'module' in /var/www/html/index.php on line 27  
[Tue Mar 15 08:53:15.150108 2016] [:error] [pid 11208] [client 172.23.20.224:58365] PHP Notice:  Use of undefined constant module - assumed 'module' in /var/www/html/index.php on line 27  
[Tue Mar 15 08:53:15.150111 2016] [:error] [pid 11208] [client 172.23.20.224:58365] PHP Notice:  Undefined index: module in /var/www/html/index.php on line 27
[Tue Mar 15 08:53:15.150116 2016] [:error] [pid 11208] [client 172.23.20.224:58365] PHP Notice:  Use of undefined constant module - assumed 'module' in /var/www/html/index.php on line 31  
[Tue Mar 15 08:53:15.150124 2016] [:error] [pid 11208] [client 172.23.20.224:58365] PHP Notice:  Use of undefined constant module - assumed 'module' in /var/www/html/index.php on line 33  
[Tue Mar 15 08:53:15.150129 2016] [:error] [pid 11208] [client 172.23.20.224:58365] PHP Notice:  Use of undefined constant show - assumed 'show' in /var/www/html/index.php on line 34  
[Tue Mar 15 08:53:15.150215 2016] [:error] [pid 11208] [client 172.23.20.224:58365] PHP Notice:  Use of undefined constant login - assumed 'login' in /var/www/html/design.php on line 35  
[Tue Mar 15 08:53:15.150222 2016] [:error] [pid 11208] [client 172.23.20.224:58365] PHP Notice:  Undefined index: login in /var/www/html/design.php on line 35
[Tue Mar 15 08:53:15.150227 2016] [:error] [pid 11208] [client 172.23.20.224:58365] PHP Notice:  Use of undefined constant login - assumed 'login' in /var/www/html/design.php on line 36  
[Tue Mar 15 08:53:15.150230 2016] [:error] [pid 11208] [client 172.23.20.224:58365] PHP Notice:  Undefined index: login in /var/www/html/design.php on line 36
[Tue Mar 15 08:53:15.150295 2016] [:error] [pid 11208] [client 172.23.20.224:58365] PHP Notice:  Use of undefined constant show - assumed 'show' in /var/www/html/modules/nav_modules/loginmodules.php on line 18  
[Tue Mar 15 08:53:15.150303 2016] [:error] [pid 11208] [client 172.23.20.224:58365] PHP Notice:  Use of undefined constant show - assumed 'show' in /var/www/html/modules/nav_modules/loginmodules.php on line 19  
[Tue Mar 15 08:53:15.150307 2016] [:error] [pid 11208] [client 172.23.20.224:58365] PHP Notice:  Use of undefined constant show - assumed 'show' in /var/www/html/modules/nav_modules/loginmodules.php on line 20  
[Tue Mar 15 08:53:15.150312 2016] [:error] [pid 11208] [client 172.23.20.224:58365] PHP Notice:  Use of undefined constant login - assumed 'login' in /var/www/html/design.php on line 40  
[Tue Mar 15 08:53:15.150326 2016] [:error] [pid 11208] [client 172.23.20.224:58365] PHP Notice:  Undefined index: login in /var/www/html/design.php on line 40
[Tue Mar 15 08:53:15.150331 2016] [:error] [pid 11208] [client 172.23.20.224:58365] PHP Notice:  Use of undefined constant module - assumed 'module' in /var/www/html/index.php on line 44  
[Tue Mar 15 08:53:15.150379 2016] [:error] [pid 11208] [client 172.23.20.224:58365] PHP Notice:  A session had already been started - ignoring session_start() in /var/www/html/modules/loginsites/start.php on line 15
[Tue Mar 15 09:12:24.084385 2016] [mpm_prefork:notice] [pid 10007] AH00170: caught SIGWINCH, shutting down gracefully

DAs Problem ist, das er sich auf das Standardwebverzeichnis bezieht , aber nicht auf das VHOST Config File ???

Gruss
Ralf
Member: SlainteMhath
SlainteMhath Mar 15, 2016 at 08:38:56 (UTC)
Goto Top
Das Problem steht doch schon in der ersten Zeile! Richtige Rechte setzen und gut.
Der Rest kommt von der unsauber programmierten PHP Anwendung.
Mitglied: 114757
114757 Mar 15, 2016 updated at 08:48:55 (UTC)
Goto Top
Moin,
(13)Permission denied: AH00091: httpd: could not open error log file /var/vhost/upload/logs/ssl_error_log.
das habe ich ihm in seinem anderen Post schon so oft gepredigt. Er hat die SELinux-Policies für das andere VHOST Webroot einfach nicht angepasst....

Er will einfach nicht kapieren das er die an das neue WebRoot anpassen muss face-sad

CentOS hat einen zusätzlichen Security-Layer, nicht nur die Verzeichnisrechte !!!

Gruß jodel32
Mitglied: 116480
116480 Mar 15, 2016 at 10:19:23 (UTC)
Goto Top
Hallo,

die erste Zeile , habe ich Rechte angepasst ! Da war 755 , habe mal das auf 777 gesetzt.
Die SELinux-Policies habe ich installiert

yum install -y policycoreutils-python

Die unterne Kommandos sind mir nicht klar ! Wie dort beschrieben:
semanage fcontext -a -t http_sys_content_t "/webapps(/.*)?"

Mit Setenforce 0 lauft Web trotzdem nicht.

Gruss
Ralf