NetVision-Technik

NetVision-Technik (http://www.netvision-technik.de/forum/index.php)
-   Webserver (http://www.netvision-technik.de/forum/forumdisplay.php?f=9)
-   -   vhost fehler (http://www.netvision-technik.de/forum/showthread.php?t=3202)

$iMpLy 17.04.2009 16:56

vhost fehler
 
Hallo Leute, ich habe ein grösseres Problem, das ich irgendwie ned in den griff kriege.. :(

meine 000-default sieht folgendermassen aus:
Code:

NameVirtualHost *

<Directory />
  Options FollowSymLinks
  AllowOverride None
 </Directory>
ServerTokens Prod
ServerSignature Off
ErrorLog /var/log/apache2/error.log
CustomLog /var/log/apache2/access.log combined
LogLevel warn

<VirtualHost *>
  ServerName http://****.homelinux.com
  ServerAlias ****.homelinux.com
  DocumentRoot /var/www/****/
</VirtualHost>

also und nun will ich ja den apache neustarten, da ich dies ja geändert habe. sollte ja auch logisch sein, aber dann kommt folgender fehler:
Code:

****@server:/etc/apache2# /etc/init.d/apache2 restart
 * Restarting web server apache2                                                                                                                                                                                apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Fri Apr 17 17:55:37 2009] [warn] NameVirtualHost *:80 has no VirtualHosts
 ... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Fri Apr 17 17:55:38 2009] [warn] NameVirtualHost *:80 has no VirtualHosts
                                                                                                                                                                                                          [ OK ]
****@server:/etc/apache2#

weiss einer für das Rat?!?


lg SiMpLy

Cerberus 17.04.2009 17:43

hast du das genau so drin stehen ???

dann ist es komplett falsch

Gandalf 17.04.2009 18:05

Ich habe es so drin
Code:

NameVirtualHost deineip:80
<VirtualHost deine.domain:80>
ServerName deine.domain
    ServerAdmin webmaster@localhost
   
    DocumentRoot /var/www/xxx/
    <Directory />
        Options FollowSymLinks
        AllowOverride None
    </Directory>
    <Directory /var/www/xxx/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        allow from all
        # This directive allows us to have apache2's default start page
                # in /apache2-default/, but still have / go to the right place
               
    </Directory>

    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
        AllowOverride None
        Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
        Order allow,deny
        Allow from all
    </Directory>

    ErrorLog /dev/null

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog /dev/null combined
    ServerSignature On

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

</VirtualHost>


$iMpLy 17.04.2009 18:14

Zitat:

Zitat von Cerberus (Beitrag 32382)
hast du das genau so drin stehen ???

dann ist es komplett falsch

ähm ja, aufem server isses auch so und dort rennt das tadellos.

Entity 17.04.2009 18:15

oder so würde es auch gehen

PHP-Code:

<VirtualHost deineurl.*.cx:80>
   
DocumentRoot /var/www/tracker/
   
ServerName deineurl.*
   
Options -Indexes FollowSymLinks MultiViews
ErrorDocument 403 http
://deineurl.*/404.php
</VirtualHost


$iMpLy 17.04.2009 18:18

Zitat:

Zitat von Entity™ (Beitrag 32398)
oder so würde es auch gehen

PHP-Code:

<VirtualHost deineurl.*.cx:80>
   
DocumentRoot /var/www/tracker/
   
ServerName deineurl.*.cx
   Options 
-Indexes FollowSymLinks MultiViews
ErrorDocument 403 http
://deineurl.*.cx/404.php
</VirtualHost


ich habe deines nun getestet, geht aber auch nicht:
Code:

*****@server:~# /etc/init.d/apache2 restart
 * Restarting web server apache2                                                                                                          apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Fri Apr 17 19:18:06 2009] [warn] NameVirtualHost *:80 has no VirtualHosts
 ... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Fri Apr 17 19:18:07 2009] [warn] NameVirtualHost *:80 has no VirtualHosts


Entity 17.04.2009 18:20

hmm sehr komisch

$iMpLy 17.04.2009 19:25

ja sag ich doch!!
das obere ist bei mir auf dem ROOT und dort rennt das 1a, nur auf dem HomeServer will das nicht so wie ich will..
ich denke nicht, dass das was mit Ubuntu zu tun hat oder?!? :-/



--======================================--
--==
Beitrag erstellt: 20:25 ==--
--== automatische Beitragszusammenführung ==--
--======================================--


SiMpLy schrieb nach 1 Stunde, 1 Minute und 42 Sekunden:

Zitat:

Zitat von Gandalf (Beitrag 32392)
Ich habe es so drin
Code:

NameVirtualHost deineip:80
<VirtualHost deine.domain:80>
ServerName deine.domain
    ServerAdmin webmaster@localhost
   
    DocumentRoot /var/www/xxx/
    <Directory />
        Options FollowSymLinks
        AllowOverride None
    </Directory>
    <Directory /var/www/xxx/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        allow from all
        # This directive allows us to have apache2's default start page
                # in /apache2-default/, but still have / go to the right place
               
    </Directory>

    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
        AllowOverride None
        Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
        Order allow,deny
        Allow from all
    </Directory>

    ErrorLog /dev/null

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog /dev/null combined
    ServerSignature On

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

</VirtualHost>


und bei deiner vers. kommen noch mehr fehler...

Gandalf 17.04.2009 21:09

keine ahnung habe es so auf dem server drauf und es läuft ohne Probleme

Cerberus 18.04.2009 00:02

schonmal hier gekuckt ???
Apache-Dokumentation zu virtuellen Hosts - Apache HTTP Server


Alle Zeitangaben in WEZ +1. Es ist jetzt 14:32 Uhr.

Powered by vBulletin® Version 3.8.9 (Deutsch)
Copyright ©2000 - 2025, vBulletin Solutions, Inc.