Guten Abend,
ich möchte gern einen virtual host einrichten auf meinem ApacheServer. Ich habe - PHP Version 7.0.30-0ubuntu0.16.04.1 - Apache/2.4.18 (Ubuntu) - Ubuntu 16.04.4 LTS
Wenn ich http://typo3.server.domain.local aufrufe, kommt leider "Seite wurde nicht gefunden".
Folgende Infos kann ich euch geben:
root@srv10Apache:/# cat /etc/hosts 127.0.0.1 localhost srv10apache 127.0.1.1 server.domain.local typo3.server.domain.local srv10apache
000-default.conf
root@srv10Apache:/# cat 000-default.conf <VirtualHost *:80> ServerName server.domain.local ServerAdmin webmaster@localhost DocumentRoot /var/www/html ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined # RewriteEngine On # RewriteCond %{HTTPS} off # RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} </VirtualHost>
typ3.conf
root@srv10Apache:/# cat typo3.conf <VirtualHost typo3.server.domain.local:443> ServerName typo3.server.domain.local DocumentRoot /var/www/html/typo3 # <Directory /var/www/html/typo3> # Options Indexes FollowSymLinks MultiViews # AllowOverride All # Require all granted # </Directory> # ErrorLog /var/log/apache2/errortypo3.log # LogLevel warn # CustomLog /var/log/apache2/accesstypo3.log combined # ServerSignature On </VirtualHost>
apachectl -S
root@srv10Apache:/# apachectl -S AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message VirtualHost configuration: 127.0.1.1:443 typo3.server.domain.local (/etc/apache2/sites-enabled/typo3.conf:1) *:80 server.domain.local (/etc/apache2/sites-enabled/000-default.conf:1) ServerRoot: "/etc/apache2" Main DocumentRoot: "/var/www/html" Main ErrorLog: "/var/log/apache2/error.log" Mutex rewrite-map: using_defaults Mutex ssl-stapling-refresh: using_defaults Mutex ssl-stapling: using_defaults Mutex ssl-cache: using_defaults Mutex default: dir="/var/lock/apache2" mechanism=fcntl Mutex mpm-accept: using_defaults Mutex watchdog-callback: using_defaults PidFile: "/var/run/apache2/apache2.pid" Define: DUMP_VHOSTS Define: DUMP_RUN_CFG User: name="www-data" id=33 Group: name="www-data" id=33
Könnt ihr mir helfen? Warum erreiche ich den Host nicht? Braucht ihr noch Infos?
VG Philipp