Scope SimpleID below /id/ (make way for bloat)
diff --git a/nginx/sa.conf b/nginx/sa.conf
index 65f7a7a..0a20f36 100644
--- a/nginx/sa.conf
+++ b/nginx/sa.conf
@@ -19,15 +19,16 @@
server_name id.miau.local;
- root /var/www/html;
- location / {
+ location /id/ {
+ alias /var/www/html/;
index index.php index.html;
}
- location ~ \.php$ {
+ location ~ ^/id/.*\.php$ {
+ fastcgi_split_path_info ^/id(.+\.php)(.*)$;
include fastcgi_params;
fastcgi_pass simpleid:9000;
fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
+ fastcgi_param SCRIPT_FILENAME /var/www/html$fastcgi_script_name;
}
}
diff --git a/simpleid/identities/icon b/simpleid/identities/icon
index 0754a48..149c53d 100644
--- a/simpleid/identities/icon
+++ b/simpleid/identities/icon
@@ -2,7 +2,7 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
- <link rel="openid.server" href="https://id.miau.local/" />
- <link rel="openid2.provider" href="https://id.miau.local/" />
+ <link rel="openid.server" href="https://id.miau.local/id/" />
+ <link rel="openid2.provider" href="https://id.miau.local/id/" />
</head>
</html>
diff --git a/simpleid/identities/icon.identity b/simpleid/identities/icon.identity
index f6ad52d..dd20d15 100644
--- a/simpleid/identities/icon.identity
+++ b/simpleid/identities/icon.identity
@@ -29,7 +29,7 @@
; http://example.com/myopenid
; https://example.com:8080/myopenid
;
-identity="https://id.miau.local/icon"
+identity="https://id.miau.local/id/icon"
;
; The password associated with this identity.
diff --git a/simpleid/www/config.php b/simpleid/www/config.php
index 49aea14..2bca86d 100644
--- a/simpleid/www/config.php
+++ b/simpleid/www/config.php
@@ -29,7 +29,7 @@
* </code>
*
*/
-define('SIMPLEID_BASE_URL', 'https://id.miau.local');
+define('SIMPLEID_BASE_URL', 'https://id.miau.local/id');
/**
* Allow clean URLs.