Re: [users@httpd] Doubt or problem with redirect - Help please.
On 25.01.12 19:03, Mathijs wrote: Some possible solutions to this, assuming www.someaddress.com has a virtualhost: Simplest way is with a redirect: VirtualHost *:80 ServerName www.someaddress.com Redirect / http://www.otheraddres.com?mode=1 /VirtualHost RedirectMatch /.* http://www.otheraddres.com?mode=1 would be safer - your example redirects http://www.someaddress.com/blah to http://www.otheraddres.com?mode=1blah - Redirect replaces strings. Instead of using ProxyPass you can use mod_rewrite as well: VirtualHost *:80 ServerName www.someaddress.com RewriteRule ^.*$ http://www.otheraddres.com?mode=1 [P] /VirtualHost This is just the same as the RedirectMatch above, just using different module (I think it's less effective). -- Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/ Warning: I wish NOT to receive e-mail advertising to this address. Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. Linux IS user friendly, it's just selective who its friends are... - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[users@httpd] Doubt or problem with redirect - Help please.
Hi guys, I have a doubt. I would like to know how can I do this: When people write in browser www.someaddress.com, this points to www.otheraddres.com?mode=1.How can I do it? Should I to add an alias or modifying apache configuration? Please help me. Regards, -- *Antonio Manuel Fernández Pérez* Ingeniero Técnico Informático Dpto. Informático Fabergames S.L. TLF:96626 / FAX:966551801 www.fabergames.com Fabergames respeta su privacidadhttp://www.fabergames.com/index.php/component/content/article/57/1-politica-de-privacidad * * * ADVERTENCIA LEGAL * * * Le informamos, como destinatario de este mensaje, que el correo electrónico y las comunicaciones por medio de Internet no permiten asegurar ni garantizar la confidencialidad de los mensajes transmitidos, así como tampoco su integridad o su correcta recepción, por lo que FABERGAMES S.L. no asume responsabilidad alguna por tales circunstancias. Si no consintiese en la utilización del correo electrónico o de las comunicaciones vía Internet le rogamos nos lo comunique y ponga en nuestro conocimiento de manera inmediata. Este mensaje va dirigido, de manera exclusiva, a su destinatario y contiene información confidencial y sujeta al secreto profesional, cuya divulgación no está permitida por la ley. En caso de haber recibido este mensaje por error, le rogamos que, de forma inmediata, nos lo comunique mediante correo electrónico remitido a nuestra atención o a través del teléfono (+ 34) 966 26 11 11 y proceda a su eliminación, así como a la de cualquier documento adjunto al mismo. Asimismo, le comunicamos que la distribución, copia o utilización de este mensaje, o de cualquier documento adjunto al mismo, cualquiera que fuera su finalidad, están prohibidas por la ley.
Re: [users@httpd] Doubt or problem with redirect - Help please.
Some possible solutions to this, assuming www.someaddress.com has a virtualhost: Simplest way is with a redirect: VirtualHost *:80 ServerName www.someaddress.com Redirect / http://www.otheraddres.com?mode=1 /VirtualHost Without a redirect you would need a proxy setup (and mod_proxy loaded), I'd advise to take a look at the documentation for more information on that: http://httpd.apache.org/docs/current/mod/mod_proxy.html Instead of using ProxyPass you can use mod_rewrite as well: VirtualHost *:80 ServerName www.someaddress.com RewriteRule ^.*$ http://www.otheraddres.com?mode=1 [P] /VirtualHost Kind Regards, Mathijs - Sling @ irc://irc.freenode.net/httpd 2012/1/25 Antonio Fernández Pérez antoniofernan...@fabergames.com Hi guys, I have a doubt. I would like to know how can I do this: When people write in browser www.someaddress.com, this points to www.otheraddres.com?mode=1.How can I do it? Should I to add an alias or modifying apache configuration? Please help me. Regards, -- *Antonio Manuel Fernández Pérez* Ingeniero Técnico Informático Dpto. Informático Fabergames S.L. TLF:96626 / FAX:966551801 www.fabergames.com Fabergames respeta su privacidadhttp://www.fabergames.com/index.php/component/content/article/57/1-politica-de-privacidad * * * ADVERTENCIA LEGAL * * * Le informamos, como destinatario de este mensaje, que el correo electrónico y las comunicaciones por medio de Internet no permiten asegurar ni garantizar la confidencialidad de los mensajes transmitidos, así como tampoco su integridad o su correcta recepción, por lo que FABERGAMES S.L. no asume responsabilidad alguna por tales circunstancias. Si no consintiese en la utilización del correo electrónico o de las comunicaciones vía Internet le rogamos nos lo comunique y ponga en nuestro conocimiento de manera inmediata. Este mensaje va dirigido, de manera exclusiva, a su destinatario y contiene información confidencial y sujeta al secreto profesional, cuya divulgación no está permitida por la ley. En caso de haber recibido este mensaje por error, le rogamos que, de forma inmediata, nos lo comunique mediante correo electrónico remitido a nuestra atención o a través del teléfono (+ 34) 966 26 11 11 y proceda a su eliminación, así como a la de cualquier documento adjunto al mismo. Asimismo, le comunicamos que la distribución, copia o utilización de este mensaje, o de cualquier documento adjunto al mismo, cualquiera que fuera su finalidad, están prohibidas por la ley.