[linux-l] Apache Virtual Hosts

Christian Boulanger c.boulanger at gmx.de
Di Nov 25 20:53:13 CET 2003


Hm. Die Nachricht hatte ich gesten schon losgeschickt, kam irgendwie nicht
durch. Sorry, wer sie zwei mal bekommt....

Hallo,

Versuche gerade, auf meinem vServer (RedHat 7.1) einen zusätzlichen Virtual
Host auf /root/demo einzurichten, um Bitflux-CMS (http://bitflux.ch) zu
installieren, und bekomme immer die Meldung

[Mon Nov 24 23:02:05 2003] [warn] NameVirtualHost 62.75.150.42:80 has no
VirtualHosts 

httpd configtest ergibt Syntax OK.

Hier ist mein httpd.conf:
-------------------------------------------------------

(viele, viele Zeilen) ...

## CONFIXX
<Directory "/var/www/confixx/html">
    AllowOverride all
</Directory>

NameVirtualHost 62.75.150.42:80
<VirtualHost 62.75.150.42:80>
    ServerName 150042.vserver.de
    #User confixx
    #Group users
    DocumentRoot /var/www/confixx/html
    #php_admin_value safe_mode_exec_dir /var/www/confixx/bin
    #php_admin_value upload_tmp_dir /var/www/confixx/tmp
    ScriptAlias /cgi-bin/ /var/www/confixx/html/cgi-bin/
    CustomLog /var/log/httpd/150042.vserver.de_access.log "%h %l %u %t
\"%r\" %s %b \"%{Referer}i\" \"%{User-agent}i\""
    ErrorLog /var/log/httpd/150042.vserver.de_error.log
</VirtualHost>

Include /etc/httpd/conf/confixx_vhost.conf
# ^- It is imperative that this entry remain at the end of the file ##
/CONFIXX
-----------------------------------------------------------

Und das confixx_vhost.conf:

------------------------------------------------------------
#### CONFIXX APACHE VHOST FILE ####
   ### created Thu Sep 25 15:54:05 2003 ###

NameVirtualHost 62.75.150.42:80
#php_admin_flag safe_mode Off
#php_admin_value safe_mode_exec_dir /var/www/empty

UseCanonicalName Off
LogFormat "%V:#:%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-agent}i\""
confixx LogFormat "%h %l %u %t \"%r\" %s %b \"%{Referer}i\"
\"%{User-agent}i\"" confixx2 CustomLog |/root/confixx//pipelog.pl confixx

<Directory "/var/www">
    <Files ~ "^\.ht">
        deny from all
    </Files>
    AllowOverride All
    #AllowOverride Indexes AuthConfig Limit FileInfo Options
    Options None
    Options +FollowSymLinks  +Includes
</Directory>

<VirtualHost 62.75.150.42:80>
    DocumentRoot /var/www/confixx/html/gesperrt
</VirtualHost>

<Directory "/var/www/web1/html">
    Options +Indexes +FollowSymlinks +ExecCGI
    IndexOptions +FancyIndexing
</Directory>
<VirtualHost 62.75.150.42:80>
    ServerName panya.de
    ServerAlias  www.panya.de web1.150042.vserver.de
    DocumentRoot /var/www/web1/html
    User web1
    Group ftponly
    ScriptAlias /cgi-bin/ /var/www/web1/html/cgi-bin/
    #php_admin_value open_basedir /var/www/web1/
    #php_admin_value upload_tmp_dir /var/www/web1/phptmp/ </VirtualHost>

----------- das ist dazugefügt, hier war ein ahnungsloser newbie am Werk
<Directory "/root/www">
        Options +Indexes +FollowSymlinks 
</Directory>
<VirtualHost 62.75.150.42:80>
    ServerName bf.panya.de
    DocumentRoot /root/demo/www
</VirtualHost>
----------------------------------------------------------------------------
-----

Ich lande immer beim confixx. Mit symlinks umleiten klappt auch nicht.
Apache ignoriert alle meine override - angaben, und meldet auch einen
Fehler, wenn ich die php_admin settings unkommentiere.

Weiß jemand Rat?

Gruß, Christian 





Mehr Informationen über die Mailingliste linux-l