Dear Rook users,
I am running a Rook application through RApache (see Builder code below).
Pointing the browser to the base url
http://myApp , on the other hand, returns the following html page:
OK
The document has moved here.
Apache/2.2.10 (Linux/SUSE) Server at 72.34.137.188 Port 7670
Is there a way to use
http://myApp without showing the redirection page first ?
Here's what I already tried:
- I added "index.rhtml" to the DirectoryIndex section of my apache2 httpd.conf file, but I still get the redirect page.
- I removed the Redirect$new('/index.rhtml') line from my Builder call, but that leads to the following error:
Error in app$call(env) : attempt to apply non-function
Here's the code I use to build my application:
url.root = "/testserver/htdocs"
myApp <-Builder$new(
Static$new(
urls = c('/css','/img','/js'),
root = url.root
),
Static$new(urls='/results',
root=tempdir()
),
Brewery$new(
url='/',
root=url.root,
resultpath=tempdir()
),
Redirect$new('/index.rhtml')
)
Thanks a lot for any help,
Thomas