page_short_url
Using Jamroom
It is designed for use in the OG tags when sharing via ShareThis - it's not been designed as a "general" URL shortener.
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
client_max_body_size 256M;
root /usr/share/nginx/html;
server_name ubuntu.jamroom.net;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
location @rewrite {
rewrite ^(.*)$ /modules/jrCore/router.php?_uri=$1 last;
}
location / {
autoindex on;
index index.html index.php sitemap.xml /modules/jrCore/router.php;
try_files $uri $uri/ @rewrite;
}
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}server_name ubuntu.jamroom.net;