In configuration file, I use backend=http:familytree.pagekite.me:localhost:8080:[my secrete], and when when I access my pagekite, it is directed to my http://localhost:8080.
I want to direct the back end to http://localhost:8080/openmrs/ instead.
I tried the configuration file in following ways, but still directed to tomcat root, not openmrs directory.
backend=http:familytree.pagekite.me:localhost:8080/openmrs:[my secrete] backend=http:familytree.pagekite.me:localhost:8080/openmrs/:[my secrete] backend=http:familytree.pagekite.me:localhost:8080:openmrs:[my secrete]
Please tell me how can I direct it to the subdirectory?
Comments
Apache can already do what you want using Virtual Hosts (port or name based) and/or mod_rewrite. Instead of using a subfolder, put the openmrs stuff on its own port or give it a DNS name of it's own, and then configure that as a PageKite back-end. This setup has the added bonus that your server configuration will work locally without PageKite (you can put yourname.pagekite.me in /etc/hosts for example and communicate directly).
$ pagekite.py http://myname.pagekite.me/sub foo.pagekite.me
does not work to have direct access to the sub folder? When I used that command, it claims the server is down.
If I use:
$ pagekite.py http://myname.pagekite.me foo.pagekite.me
and browse to
http://myname.pagekite.me/sub
it works.
JonD
$ pagekite.py THING ADDRESS
...where THING can be a local port or folder, and ADDRESS is the name of the kite you want to fly. If you expose a folder using a command like:
$ pagekite.py /path/to/folder yourname.pagekite.me
And the folder contains a subfolder named blah, you will be able to access the subfolder as http://yourname.pagekite.me/blah/. You don't need to explicitly list the sub-folder for this to happen, it is automatic.
Hope this helps!
My ownCloud was installed in /var/www/ownCloud and I was just trying to map directly to it rather than the root localhost.
JonD
My ownCloud was installed in /var/www/ownCloud and I was just trying to map directly to it rather than the root localhost.
JonD
$ pagekite.py 80 yourname.pagekite.me
The OwnCloud documentation in the wiki has more details. :-)