Re: [gentoo-user] Fwd: apache vhost issue...

2008-03-10 Thread Mick
On Sunday 09 March 2008, Elyahou ITTAH wrote:
 2008/3/9, cypherstrong [EMAIL PROTECTED]:
  perhaps I miss the s
 
   __defaults__
 
   try this or replace by *

 I really don't understant what's happen...

 i stille have :
 Forbidden

 You don't have permission to access / on this server.
 Apache Server at 91.121.117.202 Port 80

 I have now

 01_vhost.conf


 Listen 80
 NameVirtualHost *:80
 VirtualHost *:80
ServerName localhost
DocumentRoot /var/www/localhost/htdocs
Directory /var/www/localhost/htdocs
Order allow,deny
Allow from all
/Directory
 /VirtualHost

 VirtualHost *:80
ServerName helpermaster.fr
ServerAlias *.helpermaster.fr
DocumentRoot /var/www/helpermaster.fr/htdocs
Directory /var/www/helpermaster.fr/htdocs
   Options Indexes FollowSymLinks
Order allow,deny
Allow from all
/Directory
 /VirtualHost

 on my 01_vhost.conf and no default vhost it should work... but no... :(

You should have a 00_vhost.conf unless you decided to alter your files 
drastically?

Add this to /etc/apache2/modules.d/00_default_settings.conf file:

Directory /var/www/helpermaster.fr/htdocs
Options FollowSymLinks
AllowOverride All
Order deny,allow
Allow from all
/Directory


HTH.
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Fwd: apache vhost issue...

2008-03-10 Thread Elyahou ITTAH
Thx a lot for the assistance;)

the problem was in the redirection of the domain , after test with
another one all works :)
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Fwd: apache vhost issue...

2008-03-09 Thread Juul
Elyahou ITTAH schreef:
  # 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...

 I first sent the message to gentoo-web-user list but it seems that
 this list is no longer available...
   

It seems to be configured right. I do notice you are using
helpermaster.fr for your servername and as alias. If type in your
browser www.helpermaster.fr it will use the default vhost cause there is
no vhost configured for www.helpermaster.fr. Maybe that is the problem?

-- 
Regards
Juul Spies
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Fwd: apache vhost issue...

2008-03-09 Thread Elyahou ITTAH
2008/3/9, Juul [EMAIL PROTECTED]:
 It seems to be configured right. I do notice you are using
 helpermaster.fr for your servername and as alias. If type in your
 browser www.helpermaster.fr it will use the default vhost cause there is
 no vhost configured for www.helpermaster.fr. Maybe that is the problem?

I type on my browser helpermaster.fr and not www.helpermaster.fr...
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Fwd: apache vhost issue...

2008-03-09 Thread Strong Cypher
hi,
did you add your host in the hosts file?

2008/3/9, Elyahou ITTAH [EMAIL PROTECTED]:
 2008/3/9, Juul [EMAIL PROTECTED]:
  It seems to be configured right. I do notice you are using
  helpermaster.fr for your servername and as alias. If type in your
  browser www.helpermaster.fr it will use the default vhost cause there is
  no vhost configured for www.helpermaster.fr. Maybe that is the problem?

 I type on my browser helpermaster.fr and not www.helpermaster.fr...
 --
 gentoo-user@lists.gentoo.org mailing list


-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Fwd: apache vhost issue...

2008-03-09 Thread Elyahou ITTAH
2008/3/9, Strong Cypher [EMAIL PROTECTED]:
 hi,
  did you add your host in the hosts file?

Nope, but I am tryingto connect not from that machine but from another one...
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Fwd: apache vhost issue...

2008-03-09 Thread Strong Cypher
yeah of course but apache need to now all ip of all host before
starting. try to add it and restart apache

2008/3/9, Elyahou ITTAH [EMAIL PROTECTED]:
 2008/3/9, Strong Cypher [EMAIL PROTECTED]:
  hi,
   did you add your host in the hosts file?

 Nope, but I am tryingto connect not from that machine but from another
 one...
 --
 gentoo-user@lists.gentoo.org mailing list


-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Fwd: apache vhost issue...

2008-03-09 Thread Elyahou ITTAH
2008/3/9, Strong Cypher [EMAIL PROTECTED]:
 yeah of course but apache need to now all ip of all host before
  starting. try to add it and restart apache



  
  --
  gentoo-user@lists.gentoo.org mailing list

New infos... When I connect to helpermaster.fr from the server with
the entry on /etc/hosts for this domain name, the vhost is on, but
from an external machine I have still /www/localhost page...
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Fwd: apache vhost issue...

2008-03-09 Thread Norberto Bensa
Elyahou ITTAH wrote:
 New infos... When I connect to helpermaster.fr from the server with
 the entry on /etc/hosts for this domain name, the vhost is on, but
 from an external machine I have still /www/localhost page...

Are you running a proxy?

Does it understand HTTP/1.1?


Regards,
Norberto
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Fwd: apache vhost issue...

2008-03-09 Thread Collin Starkweather

Quoting Strong Cypher [EMAIL PROTECTED]:


yeah of course but apache need to now all ip of all host before
starting. try to add it and restart apache

2008/3/9, Elyahou ITTAH [EMAIL PROTECTED]:

2008/3/9, Strong Cypher [EMAIL PROTECTED]:
 hi,
  did you add your host in the hosts file?

Nope, but I am tryingto connect not from that machine but from another
one...


In response to an earlier comment about a redundant ServerName /  
ServerAlias, typically those would look something like


ServerName www.bogusdomain.com
ServerAlias bogusdomain.com *.bogusdomain.com

-Collin

--
gentoo-user@lists.gentoo.org mailing list



RE: [gentoo-user] Fwd: apache vhost issue...

2008-03-09 Thread cypherstrong
ok good

could you show the access log with the line when your try to connect to the
server ?

-Message d'origine-
De : Elyahou ITTAH [mailto:[EMAIL PROTECTED] 
Envoyé : dimanche 9 mars 2008 15:51
À : gentoo-user@lists.gentoo.org
Objet : Re: [gentoo-user] Fwd: apache vhost issue...

2008/3/9, Strong Cypher [EMAIL PROTECTED]:
 yeah of course but apache need to now all ip of all host before
  starting. try to add it and restart apache



  
  --
  gentoo-user@lists.gentoo.org mailing list

New infos... When I connect to helpermaster.fr from the server with
the entry on /etc/hosts for this domain name, the vhost is on, but
from an external machine I have still /www/localhost page...
-- 
gentoo-user@lists.gentoo.org mailing list


--
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Fwd: apache vhost issue...

2008-03-09 Thread Elyahou ITTAH
2008/3/9, Norberto Bensa [EMAIL PROTECTED]:

 Are you running a proxy?

  Does it understand HTTP/1.1?


  Regards,
  Norberto

The server don't have proxy, but my actual pc is in a proxyfied
network (squid http) but I think that is'nt the problem... Try to
connect to helpermaster.fr ( localhost output means that the browser
is connected to www/localhost files and salut output is in
www/helpermaster.fr)
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Fwd: apache vhost issue...

2008-03-09 Thread Collin Starkweather

Quoting Strong Cypher [EMAIL PROTECTED]:


yeah of course but apache need to now all ip of all host before
starting. try to add it and restart apache

2008/3/9, Elyahou ITTAH [EMAIL PROTECTED]:

2008/3/9, Strong Cypher [EMAIL PROTECTED]:
 hi,
  did you add your host in the hosts file?

Nope, but I am tryingto connect not from that machine but from another
one...


Also, what do you get when you

  tail -n 100 /.../logs/access_log | grep helpermaster.fr

-Collin

--
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Fwd: apache vhost issue...

2008-03-09 Thread Elyahou ITTAH
2008/3/9, cypherstrong [EMAIL PROTECTED]:
 ok good

  could you show the access log with the line when your try to connect to the
  server ?



http://rafb.net/p/DH1lDL67.html
-- 
gentoo-user@lists.gentoo.org mailing list



RE: [gentoo-user] Fwd: apache vhost issue...

2008-03-09 Thread cypherstrong
Could you remove the ServerAlias directive and try again ?

-Message d'origine-
De : Elyahou ITTAH [mailto:[EMAIL PROTECTED] 
Envoyé : dimanche 9 mars 2008 16:17
À : gentoo-user@lists.gentoo.org
Objet : Re: [gentoo-user] Fwd: apache vhost issue...

2008/3/9, cypherstrong [EMAIL PROTECTED]:
 ok good

  could you show the access log with the line when your try to connect to
the
  server ?



http://rafb.net/p/DH1lDL67.html
-- 
gentoo-user@lists.gentoo.org mailing list


--
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Fwd: apache vhost issue...

2008-03-09 Thread Elyahou ITTAH
2008/3/9, cypherstrong [EMAIL PROTECTED]:
 Could you remove the ServerAlias directive and try again ?

Same result...
-- 
gentoo-user@lists.gentoo.org mailing list



RE: [gentoo-user] Fwd: apache vhost issue...

2008-03-09 Thread cypherstrong
Could you post default vhost configuration ?

-Message d'origine-
De : Elyahou ITTAH [mailto:[EMAIL PROTECTED] 
Envoyé : dimanche 9 mars 2008 16:47
À : gentoo-user@lists.gentoo.org
Objet : Re: [gentoo-user] Fwd: apache vhost issue...

2008/3/9, cypherstrong [EMAIL PROTECTED]:
 Could you remove the ServerAlias directive and try again ?

Same result...
-- 
gentoo-user@lists.gentoo.org mailing list


--
gentoo-user@lists.gentoo.org mailing list



RE: [gentoo-user] Fwd: apache vhost issue...

2008-03-09 Thread cypherstrong
I think of something else,

remove any think like

127.0.0.1   helpmaster.fr

in your host file.

You just need this host have the ip address you contact in host file

-Message d'origine-
De : Elyahou ITTAH [mailto:[EMAIL PROTECTED] 
Envoyé : dimanche 9 mars 2008 16:47
À : gentoo-user@lists.gentoo.org
Objet : Re: [gentoo-user] Fwd: apache vhost issue...

2008/3/9, cypherstrong [EMAIL PROTECTED]:
 Could you remove the ServerAlias directive and try again ?

Same result...
-- 
gentoo-user@lists.gentoo.org mailing list


--
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Fwd: apache vhost issue...

2008-03-09 Thread Elyahou ITTAH
2008/3/9, cypherstrong [EMAIL PROTECTED]:
 Could you post default vhost configuration ?

in your host file.
You just need this host have the ip address you contact in host file

# cat /etc/hosts
127.0.0.1   localhost
91.121.117.202   ns201241.ovh.net
# IPV6 versions of localhost and co
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
127.0.0.1   localhost

# cat /etc/apache2/vhosts.d/00_default_vhost.conf
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# URL:http://httpd.apache.org/docs/2.2/vhosts/
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

IfDefine DEFAULT_VHOST
# see bug #178966 why this is in here

# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the VirtualHost
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 80

# Use name-based virtual hosting.
NameVirtualHost *:80

# When virtual hosts are enabled, the main host defined in the default
# httpd.conf configuration will go away. We redefine it here so that it is
# still available.
#
# If you disable this vhost by removing -D DEFAULT_VHOST from
# /etc/conf.d/apache2, the first defined virtual host elsewhere will be
# the default.
VirtualHost *:80
ServerName www.helpermaster.fr
Include /etc/apache2/vhosts.d/default_vhost.include
ErrorLog /var/www/localhost/log/error.log
CustomLog /var/www/localhost/log/access.log combined
IfModule mpm_peruser_module
ServerEnvironment apache apache
/IfModule
/VirtualHost

/IfDefine

# vim: ts=4 filetype=apache

# cat /etc/apache2/vhosts.d/default_vhost.include
# ServerAdmin: Your address, where problems with the server should be
# e-mailed.  This address appears on some server-generated pages, such
# as error documents.  e.g. [EMAIL PROTECTED]
ServerAdmin [EMAIL PROTECTED]

# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
# If you change this to something that isn't under /var/www then suexec
# will no longer work.
DocumentRoot /var/www/localhost/htdocs

# This should be changed to whatever you set DocumentRoot to.
Directory /var/www/localhost/htdocs
# Possible values for the Options directive are None, All,
# or any combination of:
#   Indexes Includes FollowSymLinks SymLinksifOwnerMatch
ExecCGI MultiViews
#
# Note that MultiViews must be named *explicitly* --- Options All
# doesn't give it to you.
#
# The Options directive is both complicated and important.  Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
Options Indexes FollowSymLinks

# AllowOverride controls what directives may be placed in
.htaccess files.
# It can be All, None, or any combination of the keywords:
#   Options FileInfo AuthConfig Limit
AllowOverride All

# Controls who can get stuff from this server.
Order allow,deny
Allow from all
/Directory

IfModule alias_module
# Redirect: Allows you to tell clients about documents that used to
# exist in your server's namespace, but do not anymore. The client
# will make a new request for the document at its new location.
# Example:
#   Redirect permanent /foo http://www.example.com/bar

# Alias: Maps web paths into filesystem paths and is used to
# access content that does not live under the DocumentRoot.
# Example:
#   Alias /webpath /full/filesystem/path
#
# If you include a trailing / on /webpath then the server will
# require it to be present in the URL.  You will also likely
# need to provide a Directory section to allow access to
# the filesystem path.

# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the target directory are treated as applications and
# run by the server when requested rather than as documents sent to the
# client.  The same rules about trailing / apply to ScriptAlias
# directives as to Alias.
ScriptAlias /cgi-bin/ /var/www/localhost/cgi-bin/

Re: [gentoo-user] Fwd: apache vhost issue...

2008-03-09 Thread Elyahou ITTAH
so anyone haven't a idea ?

It's really weird because the configuration seems to be OK but in the
/var/www/localhost/log/access.log file I see:

[09/Mar/2008:19:24:28 +0100] GET / HTTP/1.0 304 -
http://helpermaster.fr/; Mozilla/5.0 (X11; U; Linux i686; fr-FR;
rv:1.8.1.12) Gecko/20080227 Firefox/2.0.0.12
-- 
gentoo-user@lists.gentoo.org mailing list



RE: [gentoo-user] Fwd: apache vhost issue...

2008-03-09 Thread cypherstrong
Um ...

I see this : 

VirtualHost *:80
ServerName www.helpermaster.fr
Include /etc/apache2/vhosts.d/default_vhost.include
ErrorLog /var/www/localhost/log/error.log CustomLog
/var/www/localhost/log/access.log combined
IfModule mpm_peruser_module
ServerEnvironment apache apache
/IfModule
/VirtualHost


ServerName = www.helpermaster.fr !!!
For the default ???
No !

change to localhost

for your helpermaster.fr file, don't forget the documentroot directive






-Message d'origine-
De : Elyahou ITTAH [mailto:[EMAIL PROTECTED] 
Envoyé : dimanche 9 mars 2008 18:47
À : gentoo-user@lists.gentoo.org
Objet : Re: [gentoo-user] Fwd: apache vhost issue...

2008/3/9, cypherstrong [EMAIL PROTECTED]:
 Could you post default vhost configuration ?

in your host file.
You just need this host have the ip address you contact in host file

# cat /etc/hosts
127.0.0.1   localhost
91.121.117.202   ns201241.ovh.net
# IPV6 versions of localhost and co
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
127.0.0.1   localhost

# cat /etc/apache2/vhosts.d/00_default_vhost.conf
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry
about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# URL:http://httpd.apache.org/docs/2.2/vhosts/
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

IfDefine DEFAULT_VHOST
# see bug #178966 why this is in here

# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the VirtualHost
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 80

# Use name-based virtual hosting.
NameVirtualHost *:80

# When virtual hosts are enabled, the main host defined in the default
# httpd.conf configuration will go away. We redefine it here so that it is
# still available.
#
# If you disable this vhost by removing -D DEFAULT_VHOST from
# /etc/conf.d/apache2, the first defined virtual host elsewhere will be
# the default.
VirtualHost *:80
ServerName www.helpermaster.fr
Include /etc/apache2/vhosts.d/default_vhost.include
ErrorLog /var/www/localhost/log/error.log
CustomLog /var/www/localhost/log/access.log combined
IfModule mpm_peruser_module
ServerEnvironment apache apache
/IfModule
/VirtualHost

/IfDefine

# vim: ts=4 filetype=apache

# cat /etc/apache2/vhosts.d/default_vhost.include
# ServerAdmin: Your address, where problems with the server should be
# e-mailed.  This address appears on some server-generated pages, such
# as error documents.  e.g. [EMAIL PROTECTED]
ServerAdmin [EMAIL PROTECTED]

# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
# If you change this to something that isn't under /var/www then suexec
# will no longer work.
DocumentRoot /var/www/localhost/htdocs

# This should be changed to whatever you set DocumentRoot to.
Directory /var/www/localhost/htdocs
# Possible values for the Options directive are None, All,
# or any combination of:
#   Indexes Includes FollowSymLinks SymLinksifOwnerMatch
ExecCGI MultiViews
#
# Note that MultiViews must be named *explicitly* --- Options
All
# doesn't give it to you.
#
# The Options directive is both complicated and important.  Please
see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
Options Indexes FollowSymLinks

# AllowOverride controls what directives may be placed in
.htaccess files.
# It can be All, None, or any combination of the keywords:
#   Options FileInfo AuthConfig Limit
AllowOverride All

# Controls who can get stuff from this server.
Order allow,deny
Allow from all
/Directory

IfModule alias_module
# Redirect: Allows you to tell clients about documents that used to
# exist in your server's namespace, but do not anymore. The client
# will make a new request for the document at its new location.
# Example:
#   Redirect permanent /foo http://www.example.com/bar

# Alias: Maps web paths into filesystem paths and is used to
# access content that does not live under the DocumentRoot.
# Example:
#   Alias /webpath /full/filesystem/path

Re: [gentoo-user] Fwd: apache vhost issue...

2008-03-09 Thread Mike Williams
On Sunday 09 March 2008 11:52:16 Elyahou ITTAH wrote:
  in /etc/conf.d/apache2:
  APACHE2_OPTS=-D DEFAULT_VHOST -D SSL -D INFO -D LANGUAGE  -D PHP5 -D
 USERDIR

  # cat /etc/apache2/vhosts.d/01_vhost1.conf
  VirtualHost *:80

  But when I type helpermaster.fr on my browser, i receive the
  www/localhost pages and no the www/helpermaster.fr pages...

Your vhost isn't specific enough to not be matched by the vhost defined by 
DEFAULT_VHOST (which is _default_:80).

Either turn off DEFAULT_VHOST and add Listen *:80 somewhere before your 
virtualhost, or define it with an IP address.

-- 
Mike Williams
--
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Fwd: apache vhost issue...

2008-03-09 Thread Elyahou ITTAH
2008/3/9, Mike Williams [EMAIL PROTECTED]:
 On Sunday 09 March 2008 11:52:16 Elyahou ITTAH wrote:
in /etc/conf.d/apache2:
APACHE2_OPTS=-D DEFAULT_VHOST -D SSL -D INFO -D LANGUAGE  -D PHP5 -D
   USERDIR


   # cat /etc/apache2/vhosts.d/01_vhost1.conf
VirtualHost *:80


   But when I type helpermaster.fr on my browser, i receive the
www/localhost pages and no the www/helpermaster.fr pages...


 Your vhost isn't specific enough to not be matched by the vhost defined by
  DEFAULT_VHOST (which is _default_:80).

  Either turn off DEFAULT_VHOST and add Listen *:80 somewhere before your
  virtualhost, or define it with an IP address.

I tried that but i have now
Forbidden

You don't have permission to access / on this server.

when i trie to connect...
-- 
gentoo-user@lists.gentoo.org mailing list



RE: [gentoo-user] Fwd: apache vhost issue...

2008-03-09 Thread cypherstrong
ok

in 00_default you need somethink like this

VirtualHost __default__:80
ServerName localhost
DocumentRoot /var/www/localhost
Directory /var/www/localhost
Order Allow, Deny
Allow from all
/Directory
/VirtualHost

and in 01_helpermaster
VirtualHost *:80
ServerName helpermaster.fr
ServerAlias *.helpermaster.fr
DocumentRoot /var/www/helpermaster.fr
Directory /var/www/helpermaster.fr
Order Allow, Deny
Allow from all
/Directory
/VirtualHost

It should work !

-Message d'origine-
De : Elyahou ITTAH [mailto:[EMAIL PROTECTED] 
Envoyé : dimanche 9 mars 2008 20:15
À : gentoo-user@lists.gentoo.org
Objet : Re: [gentoo-user] Fwd: apache vhost issue...

2008/3/9, Mike Williams [EMAIL PROTECTED]:
 On Sunday 09 March 2008 11:52:16 Elyahou ITTAH wrote:
in /etc/conf.d/apache2:
APACHE2_OPTS=-D DEFAULT_VHOST -D SSL -D INFO -D LANGUAGE  -D PHP5 -D
   USERDIR


   # cat /etc/apache2/vhosts.d/01_vhost1.conf
VirtualHost *:80


   But when I type helpermaster.fr on my browser, i receive the
www/localhost pages and no the www/helpermaster.fr pages...


 Your vhost isn't specific enough to not be matched by the vhost defined by
  DEFAULT_VHOST (which is _default_:80).

  Either turn off DEFAULT_VHOST and add Listen *:80 somewhere before your
  virtualhost, or define it with an IP address.

I tried that but i have now
Forbidden

You don't have permission to access / on this server.

when i trie to connect...
-- 
gentoo-user@lists.gentoo.org mailing list


--
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Fwd: apache vhost issue...

2008-03-09 Thread Elyahou ITTAH
2008/3/9, cypherstrong [EMAIL PROTECTED]:
 ok

  in 00_default you need somethink like this

  VirtualHost __default__:80
 ServerName localhost
 DocumentRoot /var/www/localhost
 Directory /var/www/localhost
 Order Allow, Deny

 Allow from all
 /Directory
  /VirtualHost


 and in 01_helpermaster

 VirtualHost *:80
 ServerName helpermaster.fr
 ServerAlias *.helpermaster.fr
 DocumentRoot /var/www/helpermaster.fr

 Directory /var/www/helpermaster.fr

 Order Allow, Deny

 Allow from all
 /Directory
  /VirtualHost


 It should work !


Thanks,

now i have that error:

[Sun Mar 09 20:34:01 2008] [error] (EAI 2)Name or service not known:
Could not resolve host name __default__ -- ignoring!
-- 
gentoo-user@lists.gentoo.org mailing list



RE: [gentoo-user] Fwd: apache vhost issue...

2008-03-09 Thread cypherstrong
perhaps I miss the s

__defaults__

try this or replace by *





-Message d'origine-
De : Elyahou ITTAH [mailto:[EMAIL PROTECTED] 
Envoyé : dimanche 9 mars 2008 20:38
À : gentoo-user@lists.gentoo.org
Objet : Re: [gentoo-user] Fwd: apache vhost issue...

2008/3/9, cypherstrong [EMAIL PROTECTED]:
 ok

  in 00_default you need somethink like this

  VirtualHost __default__:80
 ServerName localhost
 DocumentRoot /var/www/localhost
 Directory /var/www/localhost
 Order Allow, Deny

 Allow from all
 /Directory
  /VirtualHost


 and in 01_helpermaster

 VirtualHost *:80
 ServerName helpermaster.fr
 ServerAlias *.helpermaster.fr
 DocumentRoot /var/www/helpermaster.fr

 Directory /var/www/helpermaster.fr

 Order Allow, Deny

 Allow from all
 /Directory
  /VirtualHost


 It should work !


Thanks,

now i have that error:

[Sun Mar 09 20:34:01 2008] [error] (EAI 2)Name or service not known:
Could not resolve host name __default__ -- ignoring!
-- 
gentoo-user@lists.gentoo.org mailing list


--
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Fwd: apache vhost issue...

2008-03-09 Thread Elyahou ITTAH
2008/3/9, cypherstrong [EMAIL PROTECTED]:
 perhaps I miss the s

  __defaults__

  try this or replace by *





I really don't understant what's happen...

i stille have :
Forbidden

You don't have permission to access / on this server.
Apache Server at 91.121.117.202 Port 80

I have now

01_vhost.conf


Listen 80
NameVirtualHost *:80
VirtualHost *:80
   ServerName localhost
   DocumentRoot /var/www/localhost/htdocs
   Directory /var/www/localhost/htdocs
   Order allow,deny
   Allow from all
   /Directory
/VirtualHost

VirtualHost *:80
   ServerName helpermaster.fr
   ServerAlias *.helpermaster.fr
   DocumentRoot /var/www/helpermaster.fr/htdocs
   Directory /var/www/helpermaster.fr/htdocs
Options Indexes FollowSymLinks
   Order allow,deny
   Allow from all
   /Directory
/VirtualHost

on my 01_vhost.conf and no default vhost it should work... but no... :(
-- 
gentoo-user@lists.gentoo.org mailing list



RE: [gentoo-user] Fwd: apache vhost issue...

2008-03-09 Thread cypherstrong
do you have remove the 00_vhost file ?

-Message d'origine-
De : Elyahou ITTAH [mailto:[EMAIL PROTECTED] 
Envoyé : dimanche 9 mars 2008 21:07
À : gentoo-user@lists.gentoo.org
Objet : Re: [gentoo-user] Fwd: apache vhost issue...

2008/3/9, cypherstrong [EMAIL PROTECTED]:
 perhaps I miss the s

  __defaults__

  try this or replace by *





I really don't understant what's happen...

i stille have :
Forbidden

You don't have permission to access / on this server.
Apache Server at 91.121.117.202 Port 80

I have now

01_vhost.conf


Listen 80
NameVirtualHost *:80
VirtualHost *:80
   ServerName localhost
   DocumentRoot /var/www/localhost/htdocs
   Directory /var/www/localhost/htdocs
   Order allow,deny
   Allow from all
   /Directory
/VirtualHost

VirtualHost *:80
   ServerName helpermaster.fr
   ServerAlias *.helpermaster.fr
   DocumentRoot /var/www/helpermaster.fr/htdocs
   Directory /var/www/helpermaster.fr/htdocs
Options Indexes FollowSymLinks
   Order allow,deny
   Allow from all
   /Directory
/VirtualHost

on my 01_vhost.conf and no default vhost it should work... but no... :(
-- 
gentoo-user@lists.gentoo.org mailing list


--
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Fwd: apache vhost issue...

2008-03-09 Thread Mike Williams
On Sunday 09 March 2008 19:23:49 cypherstrong wrote:
 Directory /var/www/helpermaster.fr
 Order Allow, Deny
 Allow from all
 /Directory

This is all that's necessary, although I'd drop it to just /var/www.
Put it before any vhosts, it does not need to be defined inside a one.

-- 
Mike Williams


RE: [gentoo-user] Fwd: apache vhost issue...

2008-03-09 Thread cypherstrong
ok it seems to be an ovh issues

here a solus : http://forum.ovh.com/showthread.php?t=2441

-Message d'origine-
De : Mike Williams [mailto:[EMAIL PROTECTED] 
Envoyé : dimanche 9 mars 2008 21:58
À : gentoo-user@lists.gentoo.org
Objet : Re: [gentoo-user] Fwd: apache vhost issue...

On Sunday 09 March 2008 19:23:49 cypherstrong wrote:
 Directory /var/www/helpermaster.fr
 Order Allow, Deny
 Allow from all
 /Directory

This is all that's necessary, although I'd drop it to just /var/www.
Put it before any vhosts, it does not need to be defined inside a one.

-- 
Mike Williams
¢z²z¢™Š

--
gentoo-user@lists.gentoo.org mailing list