* [gentoo-user] Fwd: apache vhost issue...
[not found] <c74ac3520803090439q268b047q15e410711fc31f4f@mail.gmail.com>
@ 2008-03-09 11:52 ` Elyahou ITTAH
2008-03-09 12:49 ` Juul
2008-03-09 18:59 ` Mike Williams
0 siblings, 2 replies; 31+ messages in thread
From: Elyahou ITTAH @ 2008-03-09 11:52 UTC (permalink / raw
To: gentoo-user
---------- Forwarded message ----------
From: Elyahou ITTAH <ittah.elyahou@gmail.com>
Date: 9 mars 2008 13:39
Subject: apache vhost issue...
To: gentoo-web-user@lists.gentoo.org
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...
I first sent the message to gentoo-web-user list but it seems that
this list is no longer available...
--
gentoo-user@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [gentoo-user] Fwd: apache vhost issue...
2008-03-09 11:52 ` [gentoo-user] Fwd: apache vhost issue Elyahou ITTAH
@ 2008-03-09 12:49 ` Juul
2008-03-09 13:28 ` Elyahou ITTAH
2008-03-09 18:59 ` Mike Williams
1 sibling, 1 reply; 31+ messages in thread
From: Juul @ 2008-03-09 12:49 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [gentoo-user] Fwd: apache vhost issue...
2008-03-09 12:49 ` Juul
@ 2008-03-09 13:28 ` Elyahou ITTAH
2008-03-09 14:35 ` Strong Cypher
0 siblings, 1 reply; 31+ messages in thread
From: Elyahou ITTAH @ 2008-03-09 13:28 UTC (permalink / raw
To: gentoo-user
2008/3/9, Juul <sjakie@ouweouwe.nl>:
> 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
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [gentoo-user] Fwd: apache vhost issue...
2008-03-09 13:28 ` Elyahou ITTAH
@ 2008-03-09 14:35 ` Strong Cypher
2008-03-09 14:38 ` Elyahou ITTAH
0 siblings, 1 reply; 31+ messages in thread
From: Strong Cypher @ 2008-03-09 14:35 UTC (permalink / raw
To: gentoo-user
hi,
did you add your host in the hosts file?
2008/3/9, Elyahou ITTAH <ittah.elyahou@gmail.com>:
> 2008/3/9, Juul <sjakie@ouweouwe.nl>:
> > 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
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [gentoo-user] Fwd: apache vhost issue...
2008-03-09 14:35 ` Strong Cypher
@ 2008-03-09 14:38 ` Elyahou ITTAH
2008-03-09 14:45 ` Strong Cypher
0 siblings, 1 reply; 31+ messages in thread
From: Elyahou ITTAH @ 2008-03-09 14:38 UTC (permalink / raw
To: gentoo-user
2008/3/9, Strong Cypher <cypherstrong@gmail.com>:
> 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
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [gentoo-user] Fwd: apache vhost issue...
2008-03-09 14:38 ` Elyahou ITTAH
@ 2008-03-09 14:45 ` Strong Cypher
2008-03-09 14:50 ` Elyahou ITTAH
` (2 more replies)
0 siblings, 3 replies; 31+ messages in thread
From: Strong Cypher @ 2008-03-09 14:45 UTC (permalink / raw
To: gentoo-user
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 <ittah.elyahou@gmail.com>:
> 2008/3/9, Strong Cypher <cypherstrong@gmail.com>:
> > 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
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [gentoo-user] Fwd: apache vhost issue...
2008-03-09 14:45 ` Strong Cypher
@ 2008-03-09 14:50 ` Elyahou ITTAH
2008-03-09 15:00 ` Norberto Bensa
2008-03-09 15:01 ` cypherstrong
2008-03-09 15:04 ` Collin Starkweather
2008-03-09 15:19 ` Collin Starkweather
2 siblings, 2 replies; 31+ messages in thread
From: Elyahou ITTAH @ 2008-03-09 14:50 UTC (permalink / raw
To: gentoo-user
2008/3/9, Strong Cypher <cypherstrong@gmail.com>:
> 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
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [gentoo-user] Fwd: apache vhost issue...
2008-03-09 14:50 ` Elyahou ITTAH
@ 2008-03-09 15:00 ` Norberto Bensa
2008-03-09 15:09 ` Elyahou ITTAH
2008-03-09 15:01 ` cypherstrong
1 sibling, 1 reply; 31+ messages in thread
From: Norberto Bensa @ 2008-03-09 15:00 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 31+ messages in thread
* RE: [gentoo-user] Fwd: apache vhost issue...
2008-03-09 14:50 ` Elyahou ITTAH
2008-03-09 15:00 ` Norberto Bensa
@ 2008-03-09 15:01 ` cypherstrong
2008-03-09 15:16 ` Elyahou ITTAH
1 sibling, 1 reply; 31+ messages in thread
From: cypherstrong @ 2008-03-09 15:01 UTC (permalink / raw
To: gentoo-user
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:ittah.elyahou@gmail.com]
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 <cypherstrong@gmail.com>:
> 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
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [gentoo-user] Fwd: apache vhost issue...
2008-03-09 14:45 ` Strong Cypher
2008-03-09 14:50 ` Elyahou ITTAH
@ 2008-03-09 15:04 ` Collin Starkweather
2008-03-09 15:19 ` Collin Starkweather
2 siblings, 0 replies; 31+ messages in thread
From: Collin Starkweather @ 2008-03-09 15:04 UTC (permalink / raw
To: gentoo-user
Quoting Strong Cypher <cypherstrong@gmail.com>:
> 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 <ittah.elyahou@gmail.com>:
>> 2008/3/9, Strong Cypher <cypherstrong@gmail.com>:
>> > 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
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [gentoo-user] Fwd: apache vhost issue...
2008-03-09 15:00 ` Norberto Bensa
@ 2008-03-09 15:09 ` Elyahou ITTAH
0 siblings, 0 replies; 31+ messages in thread
From: Elyahou ITTAH @ 2008-03-09 15:09 UTC (permalink / raw
To: gentoo-user
2008/3/9, Norberto Bensa <nbensa@gmail.com>:
> 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
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [gentoo-user] Fwd: apache vhost issue...
2008-03-09 15:01 ` cypherstrong
@ 2008-03-09 15:16 ` Elyahou ITTAH
2008-03-09 15:40 ` cypherstrong
0 siblings, 1 reply; 31+ messages in thread
From: Elyahou ITTAH @ 2008-03-09 15:16 UTC (permalink / raw
To: gentoo-user
2008/3/9, cypherstrong <cypherstrong@gmail.com>:
> 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
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [gentoo-user] Fwd: apache vhost issue...
2008-03-09 14:45 ` Strong Cypher
2008-03-09 14:50 ` Elyahou ITTAH
2008-03-09 15:04 ` Collin Starkweather
@ 2008-03-09 15:19 ` Collin Starkweather
2 siblings, 0 replies; 31+ messages in thread
From: Collin Starkweather @ 2008-03-09 15:19 UTC (permalink / raw
To: gentoo-user
Quoting Strong Cypher <cypherstrong@gmail.com>:
> 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 <ittah.elyahou@gmail.com>:
>> 2008/3/9, Strong Cypher <cypherstrong@gmail.com>:
>> > 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
^ permalink raw reply [flat|nested] 31+ messages in thread
* RE: [gentoo-user] Fwd: apache vhost issue...
2008-03-09 15:16 ` Elyahou ITTAH
@ 2008-03-09 15:40 ` cypherstrong
2008-03-09 15:47 ` Elyahou ITTAH
0 siblings, 1 reply; 31+ messages in thread
From: cypherstrong @ 2008-03-09 15:40 UTC (permalink / raw
To: gentoo-user
Could you remove the ServerAlias directive and try again ?
-----Message d'origine-----
De : Elyahou ITTAH [mailto:ittah.elyahou@gmail.com]
Envoyé : dimanche 9 mars 2008 16:17
À : gentoo-user@lists.gentoo.org
Objet : Re: [gentoo-user] Fwd: apache vhost issue...
2008/3/9, cypherstrong <cypherstrong@gmail.com>:
> 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
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [gentoo-user] Fwd: apache vhost issue...
2008-03-09 15:40 ` cypherstrong
@ 2008-03-09 15:47 ` Elyahou ITTAH
2008-03-09 15:51 ` cypherstrong
2008-03-09 15:59 ` cypherstrong
0 siblings, 2 replies; 31+ messages in thread
From: Elyahou ITTAH @ 2008-03-09 15:47 UTC (permalink / raw
To: gentoo-user
2008/3/9, cypherstrong <cypherstrong@gmail.com>:
> Could you remove the ServerAlias directive and try again ?
Same result...
--
gentoo-user@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] 31+ messages in thread
* RE: [gentoo-user] Fwd: apache vhost issue...
2008-03-09 15:47 ` Elyahou ITTAH
@ 2008-03-09 15:51 ` cypherstrong
2008-03-09 17:47 ` Elyahou ITTAH
2008-03-09 15:59 ` cypherstrong
1 sibling, 1 reply; 31+ messages in thread
From: cypherstrong @ 2008-03-09 15:51 UTC (permalink / raw
To: gentoo-user
Could you post default vhost configuration ?
-----Message d'origine-----
De : Elyahou ITTAH [mailto:ittah.elyahou@gmail.com]
Envoyé : dimanche 9 mars 2008 16:47
À : gentoo-user@lists.gentoo.org
Objet : Re: [gentoo-user] Fwd: apache vhost issue...
2008/3/9, cypherstrong <cypherstrong@gmail.com>:
> 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
^ permalink raw reply [flat|nested] 31+ messages in thread
* RE: [gentoo-user] Fwd: apache vhost issue...
2008-03-09 15:47 ` Elyahou ITTAH
2008-03-09 15:51 ` cypherstrong
@ 2008-03-09 15:59 ` cypherstrong
1 sibling, 0 replies; 31+ messages in thread
From: cypherstrong @ 2008-03-09 15:59 UTC (permalink / raw
To: gentoo-user
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:ittah.elyahou@gmail.com]
Envoyé : dimanche 9 mars 2008 16:47
À : gentoo-user@lists.gentoo.org
Objet : Re: [gentoo-user] Fwd: apache vhost issue...
2008/3/9, cypherstrong <cypherstrong@gmail.com>:
> 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
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [gentoo-user] Fwd: apache vhost issue...
2008-03-09 15:51 ` cypherstrong
@ 2008-03-09 17:47 ` Elyahou ITTAH
2008-03-09 18:37 ` Elyahou ITTAH
2008-03-09 18:48 ` cypherstrong
0 siblings, 2 replies; 31+ messages in thread
From: Elyahou ITTAH @ 2008-03-09 17:47 UTC (permalink / raw
To: gentoo-user
2008/3/9, cypherstrong <cypherstrong@gmail.com>:
> 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. admin@your-domain.com
ServerAdmin admins.services@gmail.com
# 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/"
</IfModule>
# "/var/www/localhost/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
<Directory "/var/www/localhost/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
# vim: ts=4 filetype=apache
--
gentoo-user@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [gentoo-user] Fwd: apache vhost issue...
2008-03-09 17:47 ` Elyahou ITTAH
@ 2008-03-09 18:37 ` Elyahou ITTAH
2008-03-09 18:48 ` cypherstrong
1 sibling, 0 replies; 31+ messages in thread
From: Elyahou ITTAH @ 2008-03-09 18:37 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 31+ messages in thread
* RE: [gentoo-user] Fwd: apache vhost issue...
2008-03-09 17:47 ` Elyahou ITTAH
2008-03-09 18:37 ` Elyahou ITTAH
@ 2008-03-09 18:48 ` cypherstrong
1 sibling, 0 replies; 31+ messages in thread
From: cypherstrong @ 2008-03-09 18:48 UTC (permalink / raw
To: gentoo-user
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:ittah.elyahou@gmail.com]
Envoyé : dimanche 9 mars 2008 18:47
À : gentoo-user@lists.gentoo.org
Objet : Re: [gentoo-user] Fwd: apache vhost issue...
2008/3/9, cypherstrong <cypherstrong@gmail.com>:
> 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. admin@your-domain.com
ServerAdmin admins.services@gmail.com
# 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/"
</IfModule>
# "/var/www/localhost/cgi-bin" should be changed to whatever your
ScriptAliased
# CGI directory exists, if you have that configured.
<Directory "/var/www/localhost/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
# vim: ts=4 filetype=apache
--
gentoo-user@lists.gentoo.org mailing list
--
gentoo-user@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [gentoo-user] Fwd: apache vhost issue...
2008-03-09 11:52 ` [gentoo-user] Fwd: apache vhost issue Elyahou ITTAH
2008-03-09 12:49 ` Juul
@ 2008-03-09 18:59 ` Mike Williams
2008-03-09 19:15 ` Elyahou ITTAH
1 sibling, 1 reply; 31+ messages in thread
From: Mike Williams @ 2008-03-09 18:59 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [gentoo-user] Fwd: apache vhost issue...
2008-03-09 18:59 ` Mike Williams
@ 2008-03-09 19:15 ` Elyahou ITTAH
2008-03-09 19:23 ` cypherstrong
0 siblings, 1 reply; 31+ messages in thread
From: Elyahou ITTAH @ 2008-03-09 19:15 UTC (permalink / raw
To: gentoo-user
2008/3/9, Mike Williams <mike@gaima.co.uk>:
> 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
^ permalink raw reply [flat|nested] 31+ messages in thread
* RE: [gentoo-user] Fwd: apache vhost issue...
2008-03-09 19:15 ` Elyahou ITTAH
@ 2008-03-09 19:23 ` cypherstrong
2008-03-09 19:37 ` Elyahou ITTAH
2008-03-09 20:58 ` Mike Williams
0 siblings, 2 replies; 31+ messages in thread
From: cypherstrong @ 2008-03-09 19:23 UTC (permalink / raw
To: gentoo-user
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:ittah.elyahou@gmail.com]
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 <mike@gaima.co.uk>:
> 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
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [gentoo-user] Fwd: apache vhost issue...
2008-03-09 19:23 ` cypherstrong
@ 2008-03-09 19:37 ` Elyahou ITTAH
2008-03-09 19:48 ` cypherstrong
2008-03-09 20:58 ` Mike Williams
1 sibling, 1 reply; 31+ messages in thread
From: Elyahou ITTAH @ 2008-03-09 19:37 UTC (permalink / raw
To: gentoo-user
2008/3/9, cypherstrong <cypherstrong@gmail.com>:
> 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
^ permalink raw reply [flat|nested] 31+ messages in thread
* RE: [gentoo-user] Fwd: apache vhost issue...
2008-03-09 19:37 ` Elyahou ITTAH
@ 2008-03-09 19:48 ` cypherstrong
2008-03-09 20:06 ` Elyahou ITTAH
0 siblings, 1 reply; 31+ messages in thread
From: cypherstrong @ 2008-03-09 19:48 UTC (permalink / raw
To: gentoo-user
perhaps I miss the "s"
__defaults__
try this or replace by *
-----Message d'origine-----
De : Elyahou ITTAH [mailto:ittah.elyahou@gmail.com]
Envoyé : dimanche 9 mars 2008 20:38
À : gentoo-user@lists.gentoo.org
Objet : Re: [gentoo-user] Fwd: apache vhost issue...
2008/3/9, cypherstrong <cypherstrong@gmail.com>:
> 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
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [gentoo-user] Fwd: apache vhost issue...
2008-03-09 19:48 ` cypherstrong
@ 2008-03-09 20:06 ` Elyahou ITTAH
2008-03-09 20:14 ` cypherstrong
2008-03-10 17:52 ` Mick
0 siblings, 2 replies; 31+ messages in thread
From: Elyahou ITTAH @ 2008-03-09 20:06 UTC (permalink / raw
To: gentoo-user
2008/3/9, cypherstrong <cypherstrong@gmail.com>:
> 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
^ permalink raw reply [flat|nested] 31+ messages in thread
* RE: [gentoo-user] Fwd: apache vhost issue...
2008-03-09 20:06 ` Elyahou ITTAH
@ 2008-03-09 20:14 ` cypherstrong
2008-03-10 17:52 ` Mick
1 sibling, 0 replies; 31+ messages in thread
From: cypherstrong @ 2008-03-09 20:14 UTC (permalink / raw
To: gentoo-user
do you have remove the 00_vhost file ?
-----Message d'origine-----
De : Elyahou ITTAH [mailto:ittah.elyahou@gmail.com]
Envoyé : dimanche 9 mars 2008 21:07
À : gentoo-user@lists.gentoo.org
Objet : Re: [gentoo-user] Fwd: apache vhost issue...
2008/3/9, cypherstrong <cypherstrong@gmail.com>:
> 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
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [gentoo-user] Fwd: apache vhost issue...
2008-03-09 19:23 ` cypherstrong
2008-03-09 19:37 ` Elyahou ITTAH
@ 2008-03-09 20:58 ` Mike Williams
2008-03-09 21:53 ` cypherstrong
1 sibling, 1 reply; 31+ messages in thread
From: Mike Williams @ 2008-03-09 20:58 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 31+ messages in thread
* RE: [gentoo-user] Fwd: apache vhost issue...
2008-03-09 20:58 ` Mike Williams
@ 2008-03-09 21:53 ` cypherstrong
0 siblings, 0 replies; 31+ messages in thread
From: cypherstrong @ 2008-03-09 21:53 UTC (permalink / raw
To: gentoo-user
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:mike@gaima.co.uk]
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
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [gentoo-user] Fwd: apache vhost issue...
2008-03-09 20:06 ` Elyahou ITTAH
2008-03-09 20:14 ` cypherstrong
@ 2008-03-10 17:52 ` Mick
2008-03-10 22:19 ` Elyahou ITTAH
1 sibling, 1 reply; 31+ messages in thread
From: Mick @ 2008-03-10 17:52 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1608 bytes --]
On Sunday 09 March 2008, Elyahou ITTAH wrote:
> 2008/3/9, cypherstrong <cypherstrong@gmail.com>:
> > 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
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [gentoo-user] Fwd: apache vhost issue...
2008-03-10 17:52 ` Mick
@ 2008-03-10 22:19 ` Elyahou ITTAH
0 siblings, 0 replies; 31+ messages in thread
From: Elyahou ITTAH @ 2008-03-10 22:19 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 31+ messages in thread
end of thread, other threads:[~2008-03-10 22:19 UTC | newest]
Thread overview: 31+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <c74ac3520803090439q268b047q15e410711fc31f4f@mail.gmail.com>
2008-03-09 11:52 ` [gentoo-user] Fwd: apache vhost issue Elyahou ITTAH
2008-03-09 12:49 ` Juul
2008-03-09 13:28 ` Elyahou ITTAH
2008-03-09 14:35 ` Strong Cypher
2008-03-09 14:38 ` Elyahou ITTAH
2008-03-09 14:45 ` Strong Cypher
2008-03-09 14:50 ` Elyahou ITTAH
2008-03-09 15:00 ` Norberto Bensa
2008-03-09 15:09 ` Elyahou ITTAH
2008-03-09 15:01 ` cypherstrong
2008-03-09 15:16 ` Elyahou ITTAH
2008-03-09 15:40 ` cypherstrong
2008-03-09 15:47 ` Elyahou ITTAH
2008-03-09 15:51 ` cypherstrong
2008-03-09 17:47 ` Elyahou ITTAH
2008-03-09 18:37 ` Elyahou ITTAH
2008-03-09 18:48 ` cypherstrong
2008-03-09 15:59 ` cypherstrong
2008-03-09 15:04 ` Collin Starkweather
2008-03-09 15:19 ` Collin Starkweather
2008-03-09 18:59 ` Mike Williams
2008-03-09 19:15 ` Elyahou ITTAH
2008-03-09 19:23 ` cypherstrong
2008-03-09 19:37 ` Elyahou ITTAH
2008-03-09 19:48 ` cypherstrong
2008-03-09 20:06 ` Elyahou ITTAH
2008-03-09 20:14 ` cypherstrong
2008-03-10 17:52 ` Mick
2008-03-10 22:19 ` Elyahou ITTAH
2008-03-09 20:58 ` Mike Williams
2008-03-09 21:53 ` cypherstrong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox