bonjour à tous,

je sais que le sujet a déjà été largement debattu, mais malgré avoir lu tout ce qu'y avait à lire, j'arrive pas à publier distinctement mes deux sitessur le net.

J'utilise easyphp 1-8 et j'ai acheté deux noms de domain qu'on appele schalesite1.com et schalesite2.com.

Le repertoir des deux site sont dans www/schalesite1.com et www/schalesite2.com

J'ai compris que je dois creer un Vhost dans apache mais le resultat que j'obtien est que j'arrive tjs sur un seul site, même en tapant dans IE les deux adresses.

ci-contre mon fichier httpd.conf


Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
#
# MetaSuffix: specifies the file name suffix for the file containing the
# meta information.
#
#MetaSuffix .meta
 
#
# Customizable error response (Apache style)
#  these come in three flavors
#
#    1) plain text
#ErrorDocument 500 "The server made a boo boo.
#  n.b.  the single leading (") marks it as text, it does not get output
#
#    2) local redirects
#ErrorDocument 404 /missing.html
#  to redirect to local URL /missing.html
#ErrorDocument 404 /cgi-bin/missing_handler.pl
#  N.B.: You can redirect to a script or a document using server-side-includes.
#
#    3) external redirects
#ErrorDocument 402 <a href="http://some.other-server.com/subscription_info.html" target="_blank">http://some.other-server.com/subscription_info.html</a>
#  N.B.: Many of the environment variables associated with the original
#  request will *not* be available to such a script.
 
#
# Customize behaviour based on the browser
#
<IfModule mod_setenvif.c>
 
    #
    # The following directives modify normal HTTP response behavior.
    # The first directive disables keepalive for Netscape 2.x and browsers that
    # spoof it. There are known problems with these browser implementations.
    # The second directive is for Microsoft Internet Explorer 4.0b2
    # which has a broken HTTP/1.1 implementation and does not properly
    # support keepalive when it is used on 301 or 302 (redirect) responses.
    #
    BrowserMatch "Mozilla/2" nokeepalive
    BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
 
    #
    # The following directive disables HTTP/1.1 responses to browsers which
    # are in violation of the HTTP/1.0 spec by not being able to grok a
    # basic 1.1 response.
    #
    BrowserMatch "RealPlayer 4\.0" force-response-1.0
    BrowserMatch "Java/1\.0" force-response-1.0
    BrowserMatch "JDK/1\.0" force-response-1.0
 
</IfModule>
# End of browser customization directives
 
#
# Allow server status reports, with the URL of <a href="http://servername/server-status" target="_blank">http://servername/server-status</a>
# Change the "localhost" to match your domain to enable.
#
#<Location /server-status>
#    SetHandler server-status
#    Order deny,allow
#    Deny from all
#    Allow from localhost
#</Location>
 
#
# Allow remote server configuration reports, with the URL of
# <a href="http://servername/server-info" target="_blank">http://servername/server-info</a> (requires that mod_info.c be loaded).
# Change the "localhost" to match your domain to enable.
#
#<Location /server-info>
#    SetHandler server-info
#    Order deny,allow
#    Deny from all
#    Allow from localhost
#</Location>
 
#
# There have been reports of people trying to abuse an old bug from pre-1.1
# days.  This bug involved a CGI script distributed as a part of Apache.
# By uncommenting these lines you can redirect these attacks to a logging 
# script on phf.apache.org.  Or, you can record them yourself, using the script
# support/phf_abuse_log.cgi.
#
#<Location /cgi-bin/phf*>
#    Deny from all
#    ErrorDocument 403 <a href="http://phf.apache.org/phf_abuse_log.cgi" target="_blank">http://phf.apache.org/phf_abuse_log.cgi</a>
#</Location>
 
#
# Proxy Server directives. Uncomment the following lines to
# enable the proxy server:
#
#<IfModule mod_proxy.c>
#    ProxyRequests On
 
#    <Directory proxy:*>
#        Order deny,allow
#        Deny from all
#        Allow from localhost
#    </Directory>
 
    #
    # Enable/disable the handling of HTTP/1.1 "Via:" headers.
    # ("Full" adds the server version; "Block" removes all outgoing Via: headers)
    # Set to one of: Off | On | Full | Block
    #
#    ProxyVia On
 
    #
    # To enable the cache as well, edit and uncomment the following lines:
    # (no cacheing without CacheRoot)
    #
#    CacheRoot "C:/Program Files/Apache Group/Apache/proxy"
#    CacheSize 5
#    CacheGcInterval 4
#    CacheMaxExpire 24
#    CacheLastModifiedFactor 0.1
#    CacheDefaultExpire 1
#    NoCache a-domain.com another-domain.edu joes.garage-sale.com
 
#</IfModule>
# End of proxy directives.
 
### Section 3: Virtual Hosts
#
# VirtualHost: 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://www.apache.org/docs/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.
 
#
# Use name-based virtual hosting.
#
#NameVirtualHost *
 
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
 
 
Listen 80
listen 85
 
NameVirtualHost <a href="http://www.eschale.com" target="_blank">www.eschale.com</a>
 
<VirtualHost www.eschale.com:80>
    ServerAdmin <a href="mailto:xxxx@xxxx.ch">xxxx@xxxx.ch</a>
    DocumentRoot /www/eschale.com
    ServerName eschale.com
    ErrorLog logs/error.log
    CustomLog logs/error.log common
</VirtualHost>
 
<VirtualHost www.lorenzothekid.com:85>
    ServerAdmin <a href="mailto:xxxx@xxxx.ch">xxxx@xxxx.ch</a>
    DocumentRoot /www/lorenzothekid.com
    ServerName <a href="http://www.lorenzothekid.com" target="_blank">www.lorenzothekid.com</a>
    ErrorLog logs/error.log
    CustomLog logs/error.log common
</VirtualHost>
 
 
#alias
#alias

---
j'espere que une ame charitable puisse me sauver .
Merci

schale