Gentoo Archives: gentoo-web-user

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