Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
Brian Scott Schupbach
301 redirects in liferay using stand alone tomcat
13. Juli 2012 07:08
Antwort

Brian Scott Schupbach

Rang: Expert

Nachrichten: 329

Eintrittsdatum: 23. Oktober 2008

Neue Beiträge

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
Hitoshi Ozawa
RE: 301 redirects in liferay using stand alone tomcat
13. Juli 2012 08:15
Antwort

Hitoshi Ozawa

Rang: Liferay Legend

Nachrichten: 7949

Eintrittsdatum: 23. März 2010

Neue Beiträge

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.
Brian Scott Schupbach
RE: 301 redirects in liferay using stand alone tomcat
13. Juli 2012 08:24
Antwort

Brian Scott Schupbach

Rang: Expert

Nachrichten: 329

Eintrittsdatum: 23. Oktober 2008

Neue Beiträge

It's actually on a windows server...
Linus Sphinx
RE: 301 redirects in liferay using stand alone tomcat
13. Juli 2012 09:19
Antwort

Linus Sphinx

Rang: Junior Member

Nachrichten: 89

Eintrittsdatum: 12. August 2010

Neue Beiträge

I would not even dream of exposing that without a good proxy.
Brian Scott Schupbach
RE: 301 redirects in liferay using stand alone tomcat
24. Juli 2012 12:25
Antwort

Brian Scott Schupbach

Rang: Expert

Nachrichten: 329

Eintrittsdatum: 23. Oktober 2008

Neue Beiträge

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..
lutz Bremen
RE: 301 redirects in liferay using stand alone tomcat
15. Januar 2013 03:01
Antwort

lutz Bremen

Rang: Expert

Nachrichten: 291

Eintrittsdatum: 20. Oktober 2011

Neue Beiträge

brian please give a short instruction how to set up iis with liferay
Linus Sphinx
RE: 301 redirects in liferay using stand alone tomcat
11. Februar 2013 13:35
Antwort

Linus Sphinx

Rang: Junior Member

Nachrichten: 89

Eintrittsdatum: 12. August 2010

Neue Beiträge

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.