Einzelnen Beitrag anzeigen
Alt 07.05.2006, 15:15   #1
Nestrus
Elite
 
Registriert seit: 01.07.2000
Alter: 41
Beiträge: 1.400


Nestrus eine Nachricht über ICQ schicken
Standard apache2: vhosts config-Problem

Hallo,

ich habe unter Debian Apache 2.0.54 laufen. Unter /var/www hab ich mehrere Ordner, zB der für die Homepage und der für phpmyadmin.
Ich will gerne über sites-enabled phpmyadmin schnell zugänglich machen, da ich nur eine Domain habe unter phpmyadmin.domain.at oder www.domain.at/phpmyadmin.

Ich hab das so probiert:
sites-available/default:
Code:
NameVirtualHost *
<VirtualHost *>
        ServerAdmin webmaster@localhost
        ServerName www.domain.at
        ServerAlias domain.at
        DocumentRoot /var/www/homepage
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/homepage>
                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
                # RedirectMatch ^/$ /apache2-default/
        </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 /var/log/apache2/error.log

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

        CustomLog /var/log/apache2/access.log 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>
sites-available/phpmyadmin:
Code:
<VirtualHost *>
        ServerAdmin webmaster@localhost
        ServerName phpmyadmin.domain.at
        DocumentRoot /var/www/homepage
        <Directory /var/www/homepage>
                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
                # RedirectMatch ^/$ /apache2-default/
        </Directory>

</VirtualHost>
Kann mir jemand sagen, wie es funktionieren sollte?

Danke schon mal
Nestrus
____________________________________
"reden 2 unsinn im wcm forum, meint der dritte is eh offtopic"
(Gifty am 14. Apr 2002 um 22:47 in " WCM Rat & Tat Forum > Meinung > Guru, e-Zitate & Off Topic > Kommt ein Mann zum Arzt...")
Nestrus ist offline   Mit Zitat antworten