• Jetzt anmelden. Es dauert nur 2 Minuten und ist kostenlos!

VirtualServer anlegen für Domain

DeCode

Neues Mitglied
Hallo,

ich habe schon viel gegoogelt aber nichts gefunden was funktioniert. Ich möchte gerne wissen wie ich für meine Domain "mytitan.org" den Apache 2 Virtual Host richtig anlegen kann. Sowie für "www.mytitan.org"...
 
Werbung:
... Wenn ich es so mache wie es dort steht, dann erhalte ich nach einem restart diese Meldung:

Code:
 invoke-rc.d apache2 restartRestarting web server: apache2apache2: Could not reliably determine the server's fully qualified domain name, using 88.198.95.226 for ServerName
[Thu Feb 23 16:02:22 2012] [warn] NameVirtualHost 88.198.95.226:0 has no VirtualHosts
[Thu Feb 23 16:02:22 2012] [warn] NameVirtualHost *:80 has no VirtualHosts
 ... waiting .apache2: Could not reliably determine the server's fully qualified domain name, using 88.198.95.226 for ServerName
[Thu Feb 23 16:02:25 2012] [warn] NameVirtualHost 88.198.95.226:0 has no VirtualHosts
[Thu Feb 23 16:02:25 2012] [warn] NameVirtualHost *:80 has no VirtualHosts
(98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:443
no listening sockets available, shutting down
Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
 failed!
invoke-rc.d: initscript apache2, action "restart" failed.

Code:
Listen 80

NameVirtualHost 88.198.95.226


<VirtualHost 88.198.95.226>
DocumentRoot /var/www/mytitan.org
ServerName www.mytitan.org
</VirtualHost>
 
Werbung:
versuch mal bitte das: (und sag was passiert!)

NameVirtualHost *:80
<VirtualHost *:80>
Serveradmin [email protected]
ServerName
www.mytitan.org
DocumentRoot
/var/www/mytitan.org
ServerAlias
mytitan.org
</VirtualHost>
 
Zuletzt bearbeitet:
Code:
invoke-rc.d apache2 restartRestarting web server: apache2apache2: Could not reliably determine the server's fully qualified domain name, using 88.198.95.226 for ServerName
[Thu Feb 23 18:01:53 2012] [warn] NameVirtualHost *:80 has no VirtualHosts
[Thu Feb 23 18:01:53 2012] [warn] NameVirtualHost *:80 has no VirtualHosts
 ... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 88.198.95.226 for ServerName
[Thu Feb 23 18:01:54 2012] [warn] NameVirtualHost *:80 has no VirtualHosts
[Thu Feb 23 18:01:54 2012] [warn] NameVirtualHost *:80 has no VirtualHosts
.
 
Werbung:
Code:
/etc/init.d/apache2 restart
Restarting web server: apache2[Fri Feb 24 22:01:49 2012] [warn] NameVirtualHost *:80 has no VirtualHosts
 ... waiting [Fri Feb 24 22:01:50 2012] [warn] NameVirtualHost *:80 has no VirtualHosts
.
 
Werbung:
Was mir dazu einfällt:

- Ist der DNS-Server (normaler Weise BIND) so konfiguriert, dass er zumindest eine URL auflösen kann, bevor du zusätzliche als Virtual Hosts definierst?
- Hast du mal die Zonendateien kontrolliert?
- Was steht in den error logs?

Notfalls halt den Apache nochmal komplett neu einrichten, oder diese Aufgabe jemandem übertragen, der sich damit auskennt.
 
Komplett neu einrichten ist imho nicht nötig. Man müsste lediglich die zentrale Konfigurationsdatei (meist httpd.conf) und die vhost-Konfigurationsdateien genauer anschauen. Evtl. mal vieles was die vhosts betrifft auskommentieren und dann wieder einkommentieren bis es Probleme gibt.
 
DNS:

Code:
$TTL 86400@   IN SOA ns1.first-ns.de. postmaster.robot.first-ns.de. (
    2012022403   ; serial
    14400        ; refresh
    1800         ; retry
    604800       ; expire
    86400 )      ; minimum
 
@                        IN NS      robotns3.second-ns.com.
@                        IN NS      robotns2.second-ns.de.
@                        IN NS      ns1.first-ns.de.
 
@                        IN A       88.198.95.226
localhost                IN A       127.0.0.1
www                      IN A       88.198.95.226
docs                     IN CNAME   ghs.google.com
ftp                      IN CNAME   www
imap                     IN CNAME   www
loopback                 IN CNAME   localhost
mail                     IN CNAME   ghs.google.com
pop                      IN CNAME   www
relay                    IN CNAME   www
smtp                     IN CNAME   www
@                        IN MX 1    ASPMX.L.GOOGLE.COM.
@                        IN MX 5    ALT1.ASPMX.L.GOOGLE.COM.
@                        IN MX 5    ALT2.ASPMX.L.GOOGLE.COM.
@                        IN MX 10   ASPMX3.GOOGLEMAIL.COM.
@                        IN MX 10   ASPMX2.GOOGLEMAIL.COM.
 
Werbung:
Zurück
Oben