Virtualhosts

Aloha
ich möchte ähnlich wie bei bplaced das alle meine seiten auch den host phpmyadmin.*:80 bekommen

sprich das jeder phpmyadmin request in meinen virtualhost ausführt

NameVirtualHost phpmyadmin.*:80
<VirtualHost phpmyadmin.*:80>

# Configure everything with /etc/phpmyadmin/htaccess file

<Directory /usr/share/phpmyadmin/>
    AllowOverride All
</Directory>

<Directory /var/www/phpmyadmin/>
    AllowOverride All
</Directory>


# Protect some directories

<Directory /var/lib/phpmyadmin/>
    Options -FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>

<Directory /usr/share/phpmyadmin/config/>
    Options -FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>

<Directory /var/www/phpmyadmin/config/>
    Options -FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>

</virtualhost>

so hat ich mir das gedacht, nur leider kommt das hie rbei raus:

 waiting [Tue Feb 17 20:13:32 2009] [error] (EAI 2)Name or service not known: Could not resolve host name phpmyadmin.* -- ignoring!
[Tue Feb 17 20:13:32 2009] [error] (EAI 2)Name or service not known: Could not resolve host name phpmyadmin.* -- ignoring!

weiß jmd wie es richtig aussehen muss?

Grüße Michi

Hey,
also ich würde es so machen:

<virtualhost *:80> ServerName phpmyadmin.domain.tld DocumentRoot /var/www/phpmyadmin/ </virtualhost>
Bin mir aber nicht sicher ob es funktioniert… :ps: :smiley:

lg :wink:

danke :wink:
habs aber inzwischen mit dem servealias hinbekommen =)