Apache + Grails + Tomcat
19/10/2015 13:20
<VirtualHost *:80>
?ServerName example.com ProxyPass / http://meuservidor.com:8080/meuapp/
ProxyPassReverse / ?http://meuservidor.com:8080/meuapp/ ProxyRequests Off
RewriteEngine on
RewriteRule ^(/.*) http://meuservidor.com:8080/meuapp/$1 [P]
<Proxy http://meuservidor.com:8080/meuapp*>
Order deny,allow
Allow from all
</Proxy>
ErrorLog ${APACHE_LOG_DIR}/error.log
</VirtualHost>
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
?<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
?<head>
?<?title>Redirect to /myapp</title>
? ?<meta http-equiv="Refresh" content="0;URL=/myapp">
?</head>
?<body></body>
</html>
Para se registrar, clique aqui.