rest.livecode.world

This site is created by Livecode. We use it to construct transporters.

The server is configured using Apache 000-default.conf

<VirtualHost *:80> ServerName rest.livecode.world DocumentRoot /var/www/rest.livecode.world Action lc-script /cgi-bin/livecode-community-server AddHandler lc-script .lc </VirtualHost> <Directory /var/www/rest.livecode.world/> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory>

You can see from this config that the path to the document root is now:

/var/www/rest.livecode.world/

Which has changed from the original multi-tenant hosting.

# Revigniter Revigniter serves urls as normal using the following routing: - https://rest.livecode.world/echo

This uses a `.htaccess` file which enables pretty url routing and CORS headers:

Header add Access-Control-Allow-Origin "*" Header add Access-Control-Allow-Headers "Accept, Authorization, Content-Type" Header add Access-Control-Allow-Methods "PUT, GET, POST, DELETE, OPTIONS" <IfModule mod_rewrite.c> RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond $1 !^(index\.lc|image|img|assets|robots\.txt|css|js) RewriteRule ^(.*)$ index.lc?/$1 [L] </IfModule>

You can find tis file in the DOCUMMENTROOT directory specified in the Apache 000-default.conf:

/var/www/rest.livecode.world