構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
Brian Scott Schupbach
301 redirects in liferay using stand alone tomcat
2012/07/13 7:08
答え

Brian Scott Schupbach

ランク: Expert

投稿: 329

参加年月日: 2008/10/23

最近の投稿

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
2012/07/13 8:15
答え

Hitoshi Ozawa

ランク: Liferay Legend

投稿: 7949

参加年月日: 2010/03/23

最近の投稿

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
2012/07/13 8:24
答え

Brian Scott Schupbach

ランク: Expert

投稿: 329

参加年月日: 2008/10/23

最近の投稿

It's actually on a windows server...
Linus Sphinx
RE: 301 redirects in liferay using stand alone tomcat
2012/07/13 9:19
答え

Linus Sphinx

ランク: Junior Member

投稿: 89

参加年月日: 2010/08/12

最近の投稿

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

Brian Scott Schupbach

ランク: Expert

投稿: 329

参加年月日: 2008/10/23

最近の投稿

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
2013/01/15 3:01
答え

lutz Bremen

ランク: Expert

投稿: 291

参加年月日: 2011/10/20

最近の投稿

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

Linus Sphinx

ランク: Junior Member

投稿: 89

参加年月日: 2010/08/12

最近の投稿

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.