Gentoo Archives: gentoo-web-user

From: "Frederik 'Freso' S. Olesen" <×××××.com>
To: gentoo-web-user@l.g.o
Subject: Re: [gentoo-web-user] apache vhost issue...
Date: Mon, 10 Mar 2008 21:48:26
In Reply to: [gentoo-web-user] apache vhost issue... by Elyahou ITTAH
2008/3/9, Elyahou ITTAH <ittah.elyahou@×××××.com>:
>in /etc/conf.d/apache2: >APACHE2_OPTS="-D DEFAULT_VHOST -D SSL -D INFO -D LANGUAGE -D PHP5 -D USERDIR" > ># ls -l /var/www >total 8 >drwxr-xr-x 4 apache apache 4096 mar 9 02:20 >drwxr-xr-x 6 root root 4096 mar 8 22:12 localhost > ># cat /etc/apache2/vhosts.d/01_vhost1.conf ><VirtualHost *:80> >ServerName >ServerAlias >DocumentRoot "/var/www/" ><Directory "/var/www/"> > Options Indexes FollowSymLinks > AllowOverride All > Order allow,deny > Allow from all ></Directory> ></VirtualHost> > > >But when I type on my browser, i receive the >www/localhost pages and no the www/ pages...
Did you restart the server? What does Apache's error log(s) say? Also, if you want to access the domain with "www.", you should replace your ServerAlias with "ServerAlias". -- Frederik 'Freso' S. Olesen <> -- gentoo-web-user@l.g.o mailing list