[Eisfair] Apache für Zugriff vom www konfigurieren

Andreas Schmied Andreas.Schmied at t-online.de
Do Mär 9 12:37:48 CET 2017


Hallo zusammen,

Dies ist im Prinzip die Fortführung des Threads 'Portfreigabe', wo das
Problem anscheinend gar nicht liegt.

Auf einem Rechner im Heimnetz läuft Apache (VHOSTs=0).
Auf dem Webserver ist wordpress installiert.
Die Website ist über die interne IP aufrufbar.

Auf der FritzBox 7270 ist eine Portfreigabe (80)auf diesen Rechner
eingerichtet.

Gibt man nun aus dem WWW meine öffentliche IP ein, ändert sich die
Adresszeile auf die interne IP Adresse und die Seite wird nicht gefunden.

Unten meine http.conf.

Nebenbei habe ich den Umstand, dass ich nur über meinen eigenen
Internetzugang ins www gelange (Mobilfunk geht nicht).
Wenn ich meine eigene öffentliche IP eingebe, geht nämlich alles.
Gibt es eine (einfache) Möglichkeit das anders zu testen?
Bislang muss ich immer jemanden anrufen um zu testen.

#-------------------------------------------------------------------------------
# Apache configuration file generated by /var/install/config.d/apache2.sh
#
# Do not edit this file, edit /etc/config.d/apache2 or
/var/install/config.d/apache2.sh
# Creation date: 2017-03-09 13:02:04
#-------------------------------------------------------------------------------

LoadModule mpm_prefork_module /usr/local/apache2/modules/mod_mpm_prefork.so
ServerRoot "/usr/local/apache2"
PidFile /run/httpd.pid
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
StartServers 5
ServerLimit 250
MaxRequestWorkers 250
MaxConnectionsPerChild 10000
# Include module configuration:
Include /etc/apache2/mods-enabled/*.load
Include /etc/apache2/mods-enabled/*.conf
User wwwrun
Group nogroup
ServerAdmin andreas at home.lan
ServerName server1.home.lan:80
DocumentRoot "/var/www/htdocs/server1/htdocs"
EnableSendfile Off
Listen 80
<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>
<Directory /var/www/htdocs/server1/htdocs>
    Options FollowSymLinks MultiViews
    AllowOverride All
    Require all granted
</Directory>
<Directory /home/*/public_html>
    Options FollowSymLinks MultiViews
    AllowOverride All
    Require all granted
</Directory>
Alias /icons/ /usr/local/apache2/icons/
<Directory /usr/local/apache2/icons/>
    Options FollowSymLinks MultiViews
    Require all granted
    AllowOverride All
</Directory>
UserDir public_html
DirectoryIndex index.html index.htm
AccessFileName .htaccess
<Files ~ "^\.ht">
    Require all denied
</Files>

UseCanonicalName Off
TypesConfig /usr/local/apache2/conf/mime.types
MIMEMagicFile /usr/local/apache2/conf/magic
HostnameLookups Off
ErrorLog /var/www/log/error_log
LogLevel warn
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"
%I %O" combined
SetEnvIf Remote_Addr "127\.0\.0\.1" dontlog
CustomLog /var/www/log/access_log combined env=!dontlog
ServerTokens Minor
ServerSignature Off
ScriptAlias /cgi-bin/ /var/www/cgi-bin/
<Directory /var/www/cgi-bin/>
    AllowOverride All
    Options None
</Directory>
Include conf/AddIcons.inc
Include conf/AddLanguages.inc
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0
BrowserMatch "Microsoft Data Access Internet Publishing Provider"
redirect-carefully
BrowserMatch "MS FrontPage" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
BrowserMatch "^gnome-vfs/1.0" redirect-carefully
BrowserMatch "^XML Spy" redirect-carefully
BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully
Include conf/AddParams.conf



-- 
Gruß
Andreas


Mehr Informationen über die Mailingliste Eisfair