Fórum

301 redirects in liferay using stand alone tomcat

thumbnail
Brian Scott Schupbach, modificado 11 Anos atrás.

301 redirects in liferay using stand alone tomcat

Expert Postagens: 329 Data de Entrada: 23/10/08 Postagens Recentes
Hello,

We just redesigned our site and migrated into Liferay. We have over 100 redirects of old URLS to new URLs that we would like to implement before it goes live. We are using tomcat on windows that is not behind IIS/Apache. How can we accomplish this?

i was thinking of setting up a custom filter...does anyone have experience with this? Is a filter the correct/easiest way to do this?

Thanks in advance,

Brian
thumbnail
Hitoshi Ozawa, modificado 11 Anos atrás.

RE: 301 redirects in liferay using stand alone tomcat

Liferay Legend Postagens: 7942 Data de Entrada: 24/03/10 Postagens Recentes
If you're on linux and redirecting by ip address, just set iptables. I do this when redirecting ip to virtual machines on a server.
thumbnail
Brian Scott Schupbach, modificado 11 Anos atrás.

RE: 301 redirects in liferay using stand alone tomcat

Expert Postagens: 329 Data de Entrada: 23/10/08 Postagens Recentes
It's actually on a windows server...
Linus Sphinx, modificado 11 Anos atrás.

RE: 301 redirects in liferay using stand alone tomcat

Junior Member Postagens: 99 Data de Entrada: 12/08/10 Postagens Recentes
I would not even dream of exposing that without a good proxy.
thumbnail
Brian Scott Schupbach, modificado 11 Anos atrás.

RE: 301 redirects in liferay using stand alone tomcat (Resposta)

Expert Postagens: 329 Data de Entrada: 23/10/08 Postagens Recentes
Update:

Use a web server like apache or IIS in front of tomcat if you need to do a lot of URL redirection. It's much easier..
thumbnail
lutz Bremen, modificado 11 Anos atrás.

RE: 301 redirects in liferay using stand alone tomcat

Expert Postagens: 291 Data de Entrada: 20/10/11 Postagens Recentes
brian please give a short instruction how to set up iis with liferay
Linus Sphinx, modificado 11 Anos atrás.

RE: 301 redirects in liferay using stand alone tomcat

Junior Member Postagens: 99 Data de Entrada: 12/08/10 Postagens Recentes
Create a file in /etc/httpd/conf.d named, 'proxy_ajp.conf', with contents below:

# ajp proxy configuration
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
ProxyPass / ajp://localhost:8009/

Now every request to apache will be routed to tomcat using the the apache jserv protocol.