httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sascha Kersken">
Subject Re: [users@httpd] Virtual Host Issue
Date Sun, 07 Jan 2007 18:19:24 GMT
Virtual Host IssueHi,

the first virtual host doesn't have a ServerName.


----- Original Message ----- 
From: Karl-Heinz Schulz
Sent: Sunday, January 07, 2007 7:11 PM
Subject: [users@httpd] Virtual Host Issue

I try to enable virtual hosts but all my requests are forwarded to
What do I keep overlooking?
NameVirtualHost *:80
<VirtualHost *>
        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
                # Uncomment this directive is you want to see apache2's
                # default start page (in /apache2-default) when you go to /
                #RedirectMatch ^/$ /apache2-default/
        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        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 ::1/128

<VirtualHost wienernaschmarkt:80>
    DocumentRoot /var/www/naschmarkt
<VirtualHost kasimir-schulz:80>
    DocumentRoot /usr/share/gallery
<VirtualHost khschulz-lab:80>
    DocumentRoot /usr/share/gallery

Alias /squirrelmail /usr/share/squirrelmail
<Directory /usr/share/squirrelmail>
  php_flag register_globals off
  Options Indexes FollowSymLinks
  <IfModule mod_dir.c>
    DirectoryIndex index.php
 # access to configtest is limited by default to prevent information leak
  <Files configtest.php>
    order deny,allow
    deny from all
    allow from

DocumentRoot /etc/squirrelmail
#Alias /gallery /usr/share/gallery
<Directory /usr/share/gallery>
  Options FollowSymLinks
  AllowOverride Limit Options FileInfo
# some people prefer a simple URL like
  DocumentRoot /usr/share/gallery

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message