diff --git a/.dirimages/archive.png b/.dirimages/archive.png index 3ebc995..3a8886d 100644 Binary files a/.dirimages/archive.png and b/.dirimages/archive.png differ diff --git a/.dirimages/audio.png b/.dirimages/audio.png index 5b6d4c5..bf358f6 100644 Binary files a/.dirimages/audio.png and b/.dirimages/audio.png differ diff --git a/.dirimages/bad.png b/.dirimages/bad.png index 115fb0e..3f94cfb 100644 Binary files a/.dirimages/bad.png and b/.dirimages/bad.png differ diff --git a/.dirimages/css.png b/.dirimages/css.png index 753b7c4..030548a 100644 Binary files a/.dirimages/css.png and b/.dirimages/css.png differ diff --git a/.dirimages/directory.png b/.dirimages/directory.png index 9dcd620..4506365 100644 Binary files a/.dirimages/directory.png and b/.dirimages/directory.png differ diff --git a/.dirimages/diskimage.png b/.dirimages/diskimage.png index 4306ca2..db5018c 100644 Binary files a/.dirimages/diskimage.png and b/.dirimages/diskimage.png differ diff --git a/.dirimages/fifo.png b/.dirimages/fifo.png index 79a24f7..c6fbf9f 100644 Binary files a/.dirimages/fifo.png and b/.dirimages/fifo.png differ diff --git a/.dirimages/font.png b/.dirimages/font.png index 58942e9..a25104c 100644 Binary files a/.dirimages/font.png and b/.dirimages/font.png differ diff --git a/.dirimages/html.png b/.dirimages/html.png index 0bd2993..cf13a95 100644 Binary files a/.dirimages/html.png and b/.dirimages/html.png differ diff --git a/.dirimages/hwdevice.png b/.dirimages/hwdevice.png index 3310396..90f731e 100644 Binary files a/.dirimages/hwdevice.png and b/.dirimages/hwdevice.png differ diff --git a/.dirimages/image.png b/.dirimages/image.png index 5c9d726..1f78375 100644 Binary files a/.dirimages/image.png and b/.dirimages/image.png differ diff --git a/.dirimages/important.png b/.dirimages/important.png index b68e876..53e3a49 100644 Binary files a/.dirimages/important.png and b/.dirimages/important.png differ diff --git a/.dirimages/javascript.png b/.dirimages/javascript.png index 3392699..f264880 100644 Binary files a/.dirimages/javascript.png and b/.dirimages/javascript.png differ diff --git a/.dirimages/other.png b/.dirimages/other.png index 29c53a3..6cfcb97 100644 Binary files a/.dirimages/other.png and b/.dirimages/other.png differ diff --git a/.dirimages/php.png b/.dirimages/php.png index 93e9834..08c70dd 100644 Binary files a/.dirimages/php.png and b/.dirimages/php.png differ diff --git a/.dirimages/return.png b/.dirimages/return.png index 83e9a2a..b6d85db 100644 Binary files a/.dirimages/return.png and b/.dirimages/return.png differ diff --git a/.dirimages/socket.png b/.dirimages/socket.png index 19bc9ca..3e93c04 100644 Binary files a/.dirimages/socket.png and b/.dirimages/socket.png differ diff --git a/.dirimages/text.png b/.dirimages/text.png index fc4cd51..4823d89 100644 Binary files a/.dirimages/text.png and b/.dirimages/text.png differ diff --git a/.dirimages/video.png b/.dirimages/video.png index 8d44d54..988f8ca 100644 Binary files a/.dirimages/video.png and b/.dirimages/video.png differ diff --git a/config.json b/config.json index fce0eb9..b36c3a9 100644 --- a/config.json +++ b/config.json @@ -3,7 +3,7 @@ "port": 80, "pubport": 80, "page404": "404.html", - "timestamp": 1693773733148, + "timestamp": 1709477722479, "blacklist": [], "nonStandardCodes": [], "enableCompression": true, @@ -28,59 +28,11 @@ ] }, { - "definingRegex": "/^\\/invoke500\\/\\?/", + "definingRegex": "/^\\/testdir_rewritten(?:$|[\\/?#])/", "replacements": [ { - "regex": "/\\/invoke500\\/\\?/", - "replacement": "/invoke500.svr?" - } - ] - }, - { - "definingRegex": "/^\\/invoke500\\/.+\\//", - "replacements": [ - { - "regex": "/\\/\\?/", - "replacement": "&" - }, - { - "regex": "/invoke500\\//", - "replacement": "invoke500.svr?" - }, - { - "regex": "/\\/(?!invoke500.svr?)/", - "replacement": "" - } - ] - }, - { - "definingRegex": "/^\\/invoke500\\/.+/", - "replacements": [ - { - "regex": "/\\?/", - "replacement": "&" - }, - { - "regex": "/invoke500\\//", - "replacement": "invoke500.svr?" - } - ] - }, - { - "definingRegex": "/^\\/invoke500\\//", - "replacements": [ - { - "regex": "/\\/invoke500\\//", - "replacement": "/invoke500.svr" - } - ] - }, - { - "definingRegex": "/^\\/invoke500$/", - "replacements": [ - { - "regex": "/\\/invoke500/", - "replacement": "/invoke500.svr" + "regex": "/^\\/testdir_rewritten($|[\\/?#])/", + "replacement": "/testdir$1" } ] } @@ -88,12 +40,23 @@ "allowStatus": true, "dontCompress": [ "/.*\\.ipxe$/", - "/.*\\.img$/", - "/.*\\.iso$/" + "/.*\\.(?:jpe?g|png|bmp|tiff|jfif|gif|webp)$/", + "/.*\\.(?:[id]mg|iso|flp)$/", + "/.*\\.(?:zip|rar|bz2|[gb7x]z|lzma|tar)$/", + "/.*\\.(?:mp[34]|mov|wm[av]|avi|webm|og[gv]|mk[va])$/" ], "enableIPSpoofing": false, "secure": false, "sni": {}, "disableNonEncryptedServer": false, - "disableToHTTPSRedirect": false + "disableToHTTPSRedirect": false, + "enableETag": true, + "disableUnusedWorkerTermination": false, + "rewriteDirtyURLs": true, + "errorPages": [], + "useWebRootServerSideScript": true, + "exposeModsInErrorPages": true, + "disableTrailingSlashRedirects": false, + "environmentVariables": {}, + "allowDoubleSlashes": false } diff --git a/index.html b/index.html index 2be23da..8b79ee2 100644 --- a/index.html +++ b/index.html @@ -1,7 +1,7 @@ - SVR.JS 3.4.42 + SVR.JS 3.14.16 -

Welcome to SVR.JS 3.4.42

+

Welcome to SVR.JS 3.14.16


- +
-

If you see this page, that means, that the server is properly working. You can further configure the server and replace index.html and tests.html pages with custom ones.

+

If you see this page that means that the server is working properly. You can further configure the server and replace index.html and tests.html pages with custom ones.

Default config.json looks like this:

-
- - {
-   "users": [],
-   "port": 80,
-   "pubport": 80,
-   "page404": "404.html",
-   "timestamp": 1680954429282,
-   "blacklist": [],
-   "nonStandardCodes": [],
-   "enableCompression": true,
-   "customHeaders": {},
-   "enableHTTP2": false,
-   "enableLogging": true,
-   "enableDirectoryListing": true,
-   "enableDirectoryListingWithDefaultHead": false,
-   "serverAdministratorEmail": "[no contact information]",
-   "stackHidden": false,
-   "enableRemoteLogBrowsing": false,
-   "exposeServerVersion": true,
-   "disableServerSideScriptExpose": true,
-   "rewriteMap": [
-     {
-       "definingRegex": "/^\\/serverSideScript\\.js(?:$|[#?])/",
-       "replacements": [
-         {
-           "regex": "/^\\/serverSideScript\\.js($|[#?])/",
-           "replacement": "/NONEXISTENT_PAGE$1"
-         }
-       ]
-     },
-     {
-       "definingRegex": "/^\\/invoke500\\/\\?/",
-       "replacements": [
-         {
-           "regex": "/\\/invoke500\\/\\?/",
-           "replacement": "/invoke500.svr?"
-         }
-       ]
-     },
-     {
-       "definingRegex": "/^\\/invoke500\\/.+\\//",
-       "replacements": [
-         {
-           "regex": "/\\/\\?/",
-           "replacement": "&"
-         },
-         {
-           "regex": "/invoke500\\//",
-           "replacement": "invoke500.svr?"
-         },
-         {
-           "regex": "/\\/(?!invoke500.svr?)/",
-           "replacement": ""
-         }
-       ]
-     },
-     {
-       "definingRegex": "/^\\/invoke500\\/.+/",
-       "replacements": [
-         {
-           "regex": "/\\?/",
-           "replacement": "&"
-         },
-         {
-           "regex": "/invoke500\\//",
-           "replacement": "invoke500.svr?"
-         }
-       ]
-     },
-     {
-       "definingRegex": "/^\\/invoke500\\//",
-       "replacements": [
-         {
-           "regex": "/\\/invoke500\\//",
-           "replacement": "/invoke500.svr"
-         }
-       ]
-     },
-     {
-       "definingRegex": "/^\\/invoke500$/",
-       "replacements": [
-         {
-           "regex": "/\\/invoke500/",
-           "replacement": "/invoke500.svr"
-         }
-       ]
-     }
-   ],
-   "allowStatus": true,
-   "dontCompress": ["/.*\\.ipxe$/","/.*\\.img$/","/.*\\.iso$/"],
-   "enableIPSpoofing": false,
-   "secure": false,
-   "sni": {},
-   "disableNonEncryptedServer": false,
-   "disableToHTTPSRedirect": false
+ +
{
+  "users": [],
+  "port": 80,
+  "pubport": 80,
+  "page404": "404.html",
+  "timestamp": 1709477722479,
+  "blacklist": [],
+  "nonStandardCodes": [],
+  "enableCompression": true,
+  "customHeaders": {},
+  "enableHTTP2": false,
+  "enableLogging": true,
+  "enableDirectoryListing": true,
+  "enableDirectoryListingWithDefaultHead": false,
+  "serverAdministratorEmail": "[no contact information]",
+  "stackHidden": false,
+  "enableRemoteLogBrowsing": false,
+  "exposeServerVersion": true,
+  "disableServerSideScriptExpose": true,
+  "rewriteMap": [
+    {
+      "definingRegex": "/^\\/serverSideScript\\.js(?:$|[#?])/",
+      "replacements": [
+        {
+          "regex": "/^\\/serverSideScript\\.js($|[#?])/",
+          "replacement": "/NONEXISTENT_PAGE$1"
         }
-      
-    
+ ] + }, + { + "definingRegex": "/^\\/testdir_rewritten(?:$|[\\/?#])/", + "replacements": [ + { + "regex": "/^\\/testdir_rewritten($|[\\/?#])/", + "replacement": "/testdir$1" + } + ] + } + ], + "allowStatus": true, + "dontCompress": [ + "/.*\\.ipxe$/", + "/.*\\.(?:jpe?g|png|bmp|tiff|jfif|gif|webp)$/", + "/.*\\.(?:[id]mg|iso|flp)$/", + "/.*\\.(?:zip|rar|bz2|[gb7x]z|lzma|tar)$/", + "/.*\\.(?:mp[34]|mov|wm[av]|avi|webm|og[gv]|mk[va])$/" + ], + "enableIPSpoofing": false, + "secure": false, + "sni": {}, + "disableNonEncryptedServer": false, + "disableToHTTPSRedirect": false, + "enableETag": true, + "disableUnusedWorkerTermination": false, + "rewriteDirtyURLs": true, + "errorPages": [], + "useWebRootServerSideScript": true, + "exposeModsInErrorPages": true, + "disableTrailingSlashRedirects": false, + "environmentVariables": {}, + "allowDoubleSlashes": false +} +

Changes:

-