HTTP/HTTPs access
Note | |
---|---|
This page is actively maintained by the Grid'5000 team. If you encounter problems, please report them (see the Support page). Additionally, as it is a wiki page, you are free to make minor corrections yourself if needed. If you would like to suggest a more fundamental change, please contact the Grid'5000 team. |
This page details some methods to access web content or web services inside Grid'5000. For the Grid'5000 Rest API, see the API documentation.
User webpages
A public directory is automatically created in your home directory in every Grid'5000 site. All files inside that directory are published over HTTP.
- From inside the Grid'5000 network, the content is available at
- http://public.
site
.grid5000.fr/~username
/
(mind the ~)
- From anywhere, with basic authentication
- https://api.grid5000.fr/stable/sites/
site
/public/username
/
Replace:
site
with the target Grid'5000 site.username
with your Grid'5000 username.
HTTP reverse proxy
Note | |
---|---|
Network connections (tcp, udp, ...) to any Grid'5000 node from outside Grid'5000 are possible using Grid'5000 VPN. |
Whenever you need to connect to a web interface or web API served by a Grid'5000 node using HTTP or HTTPS, you can use Grid'5000 reverse proxy.
- The base URL to use is https://
mynode
.mysite
.http.proxy.grid5000.fr/ for HTTP, for instance:https://paravance-81.rennes.http.proxy.grid5000.fr
; - And https://
mynode
.mysite
.https.proxy.grid5000.fr/ for HTTPS.
If you can't run your service on the standard HTTP port (80) or HTTPS port (443) (because you don't want to run the service as root for instance), you can use a port 8080 or 8443.
- You can then use https://
mynode
.mysite
.http8080.proxy.grid5000.fr/ for HTTP ; - and https://
mynode
.mysite
.https8443.proxy.grid5000.fr/ for HTTPS.
Please note that the reverse proxy needs authentication using your Grid'5000 credentials.
(Also if you reach the default apache web page instead of your web service, that's probably because you miss-typed the URL :-) ).
Proxying with SSH
Another way to access a web service running inside Grid'5000 (on a node), is to use the OpenSSH forwarding feature, either with the embedded SOCKS proxy (-D option) or with local (-L) or remote (-R) port forwarding. See the SSH page for more details.