1 |
Buenas, |
2 |
|
3 |
tengo un duda sobre los tres individuos del título. |
4 |
Básicamente debe ser por mi ignorancia con apache (1 y 2), y vhosts, |
5 |
pero bueno... es un tema que he leido un par de veces y no acabo de |
6 |
pillar. |
7 |
|
8 |
Yo tenía entendido que para que un apache respondiera a un |
9 |
nombre.dominio.com, este debía estar en un vhost. De este modo, yo tenía |
10 |
4 o 5 vhosts para 4 o 5 cosas diferentes: blog, phpmyadmin, awstats, |
11 |
mail... |
12 |
|
13 |
Bien, con esa filosofía he montado la nueva gentoo, y me he creado 3 |
14 |
vhosts: afrodita, phpmyadmin, blog. |
15 |
|
16 |
# apache2ctl -S |
17 |
VirtualHost configuration: |
18 |
wildcard NameVirtualHosts and _default_ servers: |
19 |
*:80 is a NameVirtualHost |
20 |
default server afrodita.emergetux.net (/etc/apache2/vhosts.d/00_default_vhost.conf:41) |
21 |
port 80 namevhost afrodita.emergetux.net (/etc/apache2/vhosts.d/00_default_vhost.conf:41) |
22 |
port 80 namevhost blog.emergetux.net (/etc/apache2/vhosts.d/00_default_vhost.conf:104) |
23 |
port 80 namevhost phpmyadmin.emergetux.net (/etc/apache2/vhosts.d/00_default_vhost.conf:115) |
24 |
Syntax OK |
25 |
|
26 |
Bien, ahora estaba instalando awstats: emerge, webapp-config e iba a |
27 |
hacer el vhosts pertinente, pero, como iba leyendo un documento: |
28 |
http://gentoo-wiki.com/HOWTO_Email:_A_Complete_Virtual_System_-_Install_and_Configure_AWStats |
29 |
y al final decía que con sólo el paso de webapp-config y pegar la salida |
30 |
a un awstats.conf** situado en modules.d, ya se podía acceder a |
31 |
webgraph.emergetux.net/awstats |
32 |
|
33 |
Evidentemente, funciona. Pero porque no es necesario el vhost en este |
34 |
caso? |
35 |
|
36 |
|
37 |
Por otro lado, y aprovechando que estoy con los vhosts, que debería |
38 |
poner en mi vhost del blog para que desde la LAN (192.168.0.X) un pc |
39 |
pueda acceder a blog.emergetux.net? |
40 |
Si lo pruebo ahora apache trata de conectarse al router (evidentemente, |
41 |
blog.emergetux.net apunta a mi IP pública). |
42 |
A parte de modificar el dns (poniendo IP nombre_host en /etc/hosts ya |
43 |
me vale), como debo acceder al vhost? 192.168.0.133/?¿?¿? |
44 |
|
45 |
|
46 |
**el fichero awstats.conf contienen esto: |
47 |
Alias /awstats/classes "/var/www/webgraph.emergetux.net/htdocs/awstats/classes/" |
48 |
Alias /awstats/css "/var/www/webgraph.emergetux.net/htdocs/awstats/css/" |
49 |
Alias /awstats/icons "/var/www/webgraph.emergetux.net/htdocs/awstats/icon/" |
50 |
ScriptAlias /awstats/ "/var/www/webgraph.emergetux.net/cgi-bin/" |
51 |
ScriptAlias /awstats "/var/www/webgraph.emergetux.net/cgi-bin/awstats.pl" |
52 |
ScriptAlias /awstats.pl "/var/www/webgraph.emergetux.net/cgi-bin/awstats.pl" |
53 |
|
54 |
<Directory "/var/www/webgraph.emergetux.net/htdocs/awstats"> |
55 |
Options None |
56 |
AllowOverride None |
57 |
<IfModule mod_access.c> |
58 |
Order allow,deny |
59 |
Allow from all |
60 |
</IfModule> |
61 |
</Directory> |
62 |
|
63 |
<Directory "/var/www/webgraph.emergetux.net/cgi-bin/"> |
64 |
Options ExecCGI |
65 |
AllowOverride None |
66 |
<IfModule mod_access.c> |
67 |
Order allow,deny |
68 |
Allow from all |
69 |
</IfModule> |
70 |
AuthType Basic |
71 |
AuthName "AWStats authenticated zone" |
72 |
AuthUserFile /etc/apache2/.htpasswd |
73 |
Require valid-user |
74 |
</Directory> |
75 |
|
76 |
Gracias de antemano! |
77 |
|
78 |
-- |
79 |
Arnau Bria |
80 |
http://blog.emergetux.net |
81 |
Wiggum: Dispara a las ruedas Lou. |
82 |
Lou: eee, es un tanque jefe. |
83 |
Wiggum: Me tienes hartito con todas tus excusas. |
84 |
-- |
85 |
gentoo-user-es@g.o mailing list |