1 |
Qué tal, gracias por la respuesta. Probé la configuración, sin resultado. |
2 |
Decime: Vos tenés también el servidor detrás de un firewall? Por ahí me |
3 |
dijeron que los virtual hosts no andan en apache si no está la ip nateada, o |
4 |
al menos un proxy transparente... |
5 |
Puede ser?? |
6 |
|
7 |
Gracias |
8 |
Facundo |
9 |
-----Mensaje original----- |
10 |
De: Cesar Bermudez [mailto:bermudez@××××××.com] |
11 |
Enviado el: Miércoles, 18 de Junio de 2003 14:10 |
12 |
Para: gentoo-user-es@g.o |
13 |
Asunto: Re: [gentoo-user-es] Virtual hosts en apache no funciona!!! |
14 |
|
15 |
|
16 |
Te respondo con un pedazo de conf |
17 |
de un server que tiene un par de dominios. |
18 |
|
19 |
NameVirtualHost 66.250.30.24 |
20 |
|
21 |
|
22 |
########################################################################### |
23 |
# WWW.FMLIBERTADOR.COM.UY |
24 |
|
25 |
########################################################################### |
26 |
<VirtualHost 66.250.30.24> |
27 |
|
28 |
ServerAdmin admin@××××××××××××××××.uy |
29 |
ServerName www.fmlibertador.com.uy |
30 |
ServerAlias fmlibertador.com.uy |
31 |
DocumentRoot /home/httpd/www.fmlibertador.com.uy/htdocs |
32 |
AddType application/x-httpd-php .php .php4 .php3 .phtml |
33 |
.phtm |
34 |
AddType application/x-httpd-php-source .phps |
35 |
ScriptAlias /cgi-bin/ /home/httpd/www.fmlibertador.com.uy/cgi-bin/ |
36 |
Setenv VLOG |
37 |
/home/httpd/www.fmlibertador.com.uy/logs/fmlibertador.com.uy-acces.vlog |
38 |
ErrorLog |
39 |
/home/httpd/www.fmlibertador.com.uy/logs/fmlibertador.com.uy-error.log |
40 |
CustomLog |
41 |
/home/httpd/www.fmlibertador.com.uy/logs/fmlibertador.com.uy-acces.log |
42 |
common |
43 |
|
44 |
<Directory /> |
45 |
Options -Indexes FollowSymLinks MultiViews |
46 |
AllowOverride All |
47 |
Order allow,deny |
48 |
Allow from all |
49 |
</Directory> |
50 |
|
51 |
<Directory /cgi-bin/> |
52 |
AllowOverride All |
53 |
Options ExecCGI |
54 |
Order allow,deny |
55 |
Allow from all |
56 |
</Directory> |
57 |
|
58 |
</VirtualHost> |
59 |
|
60 |
|
61 |
########################################################################### |
62 |
# WWW.JUEGOSENRED.COM.UY |
63 |
|
64 |
########################################################################### |
65 |
<VirtualHost 66.250.30.24> |
66 |
ServerAdmin admin@×××××××××××××××.uy |
67 |
ServerName www.juegosenred.com.uy |
68 |
ServerAlias juegosenred.com.uy |
69 |
DocumentRoot /home/httpd/www.juegosenred.com.uy/htdocs |
70 |
AddType application/x-httpd-php .php .php4 .php3 .phtml |
71 |
.phtm |
72 |
AddType application/x-httpd-php-source .phps |
73 |
ScriptAlias /cgi-bin/ /home/httpd/www.juegosenred.com.uy/cgi-bin/ |
74 |
Setenv VLOG |
75 |
/home/httpd/www.juegosenred.com.uy/logs/juegosenred.com.uy-acces.vlog |
76 |
ErrorLog |
77 |
/home/httpd/www.juegosenred.com.uy/logs/juegosenred.com.uy-error.log |
78 |
CustomLog |
79 |
/home/httpd/www.juegosenred.com.uy/logs/juegosenred.com.uy-acces.log common |
80 |
<Directory /> |
81 |
Options -Indexes FollowSymLinks MultiViews |
82 |
AllowOverride All |
83 |
Order allow,deny |
84 |
Allow from all |
85 |
</Directory> |
86 |
<Directory /cgi-bin/> |
87 |
AllowOverride All |
88 |
Options ExecCGI |
89 |
Order allow,deny |
90 |
</Directory> |
91 |
|
92 |
</VirtualHost> |
93 |
|
94 |
Luego se repite en los demas dominios .. espero te sirva |
95 |
cheers. |
96 |
|
97 |
|
98 |
|
99 |
On Wed, 2003-06-18 at 16:58, Facundo Ortiz wrote: |
100 |
Hola a todos: |
101 |
Tengo un problema que me está rompiendo la cabeza. Tengo un apache |
102 |
atendiendo a un sitio fund.homelinux.net, en donde quiero tener puesto otro |
103 |
sitio independiente aulavirtual.homelinux.net(los dos con el mismo ip). Para |
104 |
eso estoy configurando vhosts.conf, pero resulta que al navegar en cada |
105 |
dirección siempre me abre el mismo sitio. |
106 |
Tengo los módulos configurados, pero el problema es que (según la |
107 |
configuración que pongo abajo), con cualquiera de las dos direcciones me va |
108 |
siempre al mismo directorio, /home/httpd/htdocs. Qué me está faltando??? |
109 |
Lo que quiero es que cada dirección me remita a carpetas distintas del |
110 |
disco (donde tengo cada sitio). Revisé el manual(de hecho lo copié de allí), |
111 |
pero necesito alguien que sepa más... |
112 |
Mil gracias |
113 |
Facundo |
114 |
((PD: Les aclaro mi configuración: mi webserver tiene una ip privada |
115 |
(10.0.0.5), y sale a internet por un firewall, que es la que tiene la ip |
116 |
pública... No sé si tendrá que ver, a lo mejor es éso lo que no deja que |
117 |
funcione...)) |
118 |
|
119 |
((Vhosts.conf)) |
120 |
################# Named VirtualHosts |
121 |
|
122 |
NameVirtualHost * |
123 |
|
124 |
<VirtualHost *> |
125 |
ServerName fund.homelinux.net |
126 |
ServerPath / |
127 |
DocumentRoot /home/httpd/htdocs |
128 |
</VirtualHost> |
129 |
|
130 |
<VirtualHost *> |
131 |
ServerName aulavirtual.homelinux.net |
132 |
ServerPath /moodle |
133 |
DocumentRoot /home/httpd/htdocs/moodle |
134 |
</VirtualHost> |
135 |
|
136 |
|
137 |
|
138 |
|
139 |
-- |
140 |
gentoo-user-es@g.o mailing list |