Bueno, alla voy sin mucha fe pero a ver si hay suerte..
Tengo un servidor con esta configuración:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName nose.dondevoy.mobi
# Rerverse proxy. No usamos ProxyPass porque impide que mod_rewrite
# funcione.
ProxyRequests Off
ProxyPreserveHost on
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / http://nose.waptm.mobi:8040/index.php
ProxyPassReverse / http://nose.waptm.mobi:8040/index.php
ErrorLog /var/log/apache2/waptm-error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel info
CustomLog /var/log/apache2/nose-access.log combined
ServerSignature On
</VirtualHost>
Quiero que al meter el dominio nose.dondevoy.mobi se redija a otra maquina, en concreto a nose.waptm.mobi:8040/index.php
y el vistualhost de la otra maquina es:
NameVirtualHost *:8040
NameVirtualHost *:12345
<VirtualHost *:8040>
ServerAdmin [email protected]
DocumentRoot "C:/Apache2.2/htdocs/desarrollo"
<Directory "C:/Apache2.2/htdocs/desarrollo">
Options Indexes MultiViews FollowSymLinks
AllowOverride all
Order allow,deny
Allow from all
</Directory>
ServerName aaa.ccc.com
ServerAlias aaa.ccc.com
ErrorLog "logs/aaa.ccc.com-error.log"
CustomLog "logs/aaa.ccc.com-access.log" common
</VirtualHost>
<VirtualHost *:8040>
ServerAdmin [email protected]
DocumentRoot "C:/Apache2.2/htdocs/desarrollo"
<Directory "C:/Apache2.2/htdocs/desarrollo">
Options Indexes MultiViews FollowSymLinks
AllowOverride all
Order allow,deny
Allow from all
</Directory>
ServerName bbbb.dddd.com
ServerAlias bbbb.dddd.com
ErrorLog "logs/bbbb.dddd.com-error.log"
CustomLog "logs/bbbb.dddd.com-access.log" common
</VirtualHost>
<VirtualHost *:8040>
ServerAdmin [email protected]
DocumentRoot "C:/Apache2.2/htdocs/waptm"
<Directory "C:/Apache2.2/htdocs/waptm">
Options Indexes MultiViews FollowSymLinks
AllowOverride all
Order allow,deny
Allow from all
</Directory>
ServerName nose.waptm.mobi
ServerAlias *.nose.waptm.mobi
ErrorLog "logs/nose.waptm.mobi-error.log"
CustomLog "logs/nose.waptm.mobi-access.log" common
</VirtualHost>
<VirtualHost *:12345>
ServerAdmin [email protected]
DocumentRoot "C:/Apache2.2/htdocs/"
ServerName 127.0.0.1
ErrorLog "logs/127.0.0.1-error.log"
CustomLog "logs/127.0.0.1-access.log" common
</VirtualHost>
Bueno, pues no funciona, entra en C:/Apache2.2/htdocs/desarrollo, en lugar de C:/Apache2.2/htdocs/waptm
¿se le ocurre algo a alguien?