sslug-teknik team mailing list archive
-
sslug-teknik team
-
Mailing list archive
-
Message #34499
Re: SV: subdomains i Apache
On Tue, 13 Mar 2001, Kjeld Vang Larsen wrote:
>Nu har jeg lavet følgende:
>
>NameVirtualHost 212.237.77.111
><VirtualHost www.kjeld.domain.dk>
> DocumentRoot /home/kjeld/www
> ServerName www.kjeld.domain.dk
></VirtualHost>
Kan du slå www.kjeld.domain.dk op? Kan din apache også?
Måske du skal have lidt mere med i din virtualhost definition?
Her er et snip fra SSLUG's alpha-maskine, der jo blandt andet kører www.linux.dk:
(paths changed to protect the innocent :)
NameVirtualHost 130.225.226.90
<VirtualHost 130.225.226.90>
Servername www.linux.dk
DocumentRoot /some/where/www.linux.dk/htdocs/
DirectoryIndex index.shtml index.html index.htm index.php index.epl
CustomLog /logdir/httpd/www.linux.dk-access.log common
ErrorLog /logdir/httpd/www.linux.dk-error.log
ErrorDocument 404 /cgi-bin/404.cgi
<Directory "/some/where/www.linux.dk/htdocs/">
Options Indexes FollowSymLinks Includes MultiViews
AllowOverride None
Order allow,deny
Allow from all
XBitHack on
</Directory>
ScriptAlias /cgi-bin/ "/some/where/www.linux.dk/cgi-bin/"
<Directory "/some/where/www.linux.dk/cgi-bin/">
AllowOverride None
Options ExecCGI Includes
Order allow,deny
Allow from all
</Directory>
</Virtualhost>
/kristian
--
Kristian Vilmann
Skåne Sjælland Linux User Group http://www.sslug.dk
Der er ikke noget galt med provinsen. Beliggenheden er bare ad helvede til.
- ukendt
Follow ups
References