C Using a Custom Landing Page
C.1 Overview
It is possible to specify a custom landing page that your anonymous/logged-out users will see when they visit Connect.
C.2 Configuration
Use the Server.LandingDir
configuration setting to specify the path
to a custom landing page. If you do not specify an absolute path, the
server will resolve the path starting at your Connect server installation
directory (probably /opt/rstudio-connect
).
Please see A for more information on the
Server.LandingDir
setting.
C.3 Custom Landing Page Assets
Include all assets (JavaScript, CSS, images, etc.) for your custom landing page
in the directory you specified in the Server.LandingDir
configuration setting.
Be sure to include an index.html
, which will be served by default.
C.4 Example
See the /opt/rstudio-connect/examples/landing-page
directory for an example
custom landing page. You can enable this example landing page by adding the
following configuration setting and restarting the Connect server.
; /etc/rstudio-connect/rstudio-connect.gcfg
[Server]
LandingDir = examples/landing-page