apache vhost issue...

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

apache vhost issue...

Elyahou ITTAH
Hello, I have dificulty to configure vhost in apache... Here some
files of my configuration

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 helpermaster.fr
drwxr-xr-x 6 root   root   4096 mar  8 22:12 localhost

# cat /etc/apache2/vhosts.d/01_vhost1.conf
<VirtualHost *:80>
ServerName helpermaster.fr
ServerAlias helpermaster.fr
DocumentRoot "/var/www/helpermaster.fr/htdocs"
<Directory "/var/www/helpermaster.fr/htdocs">
   Options Indexes FollowSymLinks
   AllowOverride All
   Order allow,deny
   Allow from all
</Directory>
</VirtualHost>


But when I type helpermaster.fr on my browser, i receive the
www/localhost pages and no the www/helpermaster.fr pages...
--
[hidden email] mailing list

Reply | Threaded
Open this post in threaded view
|

Fwd: apache vhost issue...

Elyahou ITTAH
---------- Forwarded message ----------
From: Elyahou ITTAH <[hidden email]>
Date: 9 mars 2008 13:39
Subject: apache vhost issue...
To: [hidden email]


Hello, I have dificulty to configure vhost in apache... Here some
 files of my configuration

 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 helpermaster.fr
 drwxr-xr-x 6 root   root   4096 mar  8 22:12 localhost

 # cat /etc/apache2/vhosts.d/01_vhost1.conf
 <VirtualHost *:80>
 ServerName helpermaster.fr
 ServerAlias helpermaster.fr
 DocumentRoot "/var/www/helpermaster.fr/htdocs"
 <Directory "/var/www/helpermaster.fr/htdocs">
   Options Indexes FollowSymLinks
   AllowOverride All
   Order allow,deny
   Allow from all
 </Directory>
 </VirtualHost>


 But when I type helpermaster.fr on my browser, i receive the
 www/localhost pages and no the www/helpermaster.fr pages...
--
[hidden email] mailing list

Reply | Threaded
Open this post in threaded view
|

Re: apache vhost issue...

Frederik 'Freso' S. Olesen
In reply to this post by Elyahou ITTAH
2008/3/9, Elyahou ITTAH <[hidden email]>:

>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 helpermaster.fr
>drwxr-xr-x 6 root   root   4096 mar  8 22:12 localhost
>
># cat /etc/apache2/vhosts.d/01_vhost1.conf
><VirtualHost *:80>
>ServerName helpermaster.fr
>ServerAlias helpermaster.fr
>DocumentRoot "/var/www/helpermaster.fr/htdocs"
><Directory "/var/www/helpermaster.fr/htdocs">
>  Options Indexes FollowSymLinks
>  AllowOverride All
>  Order allow,deny
>  Allow from all
></Directory>
></VirtualHost>
>
>
>But when I type helpermaster.fr on my browser, i receive the
>www/localhost pages and no the www/helpermaster.fr 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 www.helpermaster.fr".

--
Frederik 'Freso' S. Olesen <http://freso.dk/>
--
[hidden email] mailing list