HTTP Server Help

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
void
Developer
Posts: 15096
Joined: Fri Oct 16, 2009 11:31 pm

HTTP Server Help

Post by void »

What is the Everything HTTP server?
The Everything HTTP server is a web server that allows you to search and access your files from a web browser.

How do I start the HTTP server?
From the Tools menu, click Start HTTP server.

or with Everything 1.3.2.647b or later:
  • From the Tools menu, click Options.
  • Click the HTTP Server tab.
  • Check Enable HTTP server.
  • Click OK.

How do I view the HTTP server?
Start the HTTP server and open http://<your computer name> in your web browser.

How do I fix the Unable to start HTTP server: bind failed 10048 error?
There is already another service running on port 80.
Please try changing the Everything HTTP server port to another port.

To change the HTTP server port:
  • In Everything, from the Tools menu, click Options
  • Click the HTTP server tab.
  • Change Listen on port to a new port, for example 81.
  • Click OK
Please make sure to specify this port when connecting to the web server with your web browser, for example:

Code: Select all

http://localhost:81
How do I customize the HTTP server?
Please see Customizing the HTTP Server

How do I set a username and password?

To change the HTTP server username and password
  • In Everything, from the Tools menu, click Options
  • Click the HTTP server tab.
  • Type in a new username and password.
  • Click OK
Can I disable file downloading?

You can disable file downloading and allow clients to list results only.

To disable HTTP file downloading:
  • In Everything, from the Tools menu, click Options
  • Click the HTTP server tab.
  • Uncheck Allow file download.
  • Click OK
Can I get the search results as a JSON object?
To get a JSON object:

Code: Select all

http://localhost/?search=ABC&path_column=1&json=1
List of available query strings
s,q,search=search text
o,offset=n (display results from the nth result)
c,count=x (return no more than x results)
j,json=x (return results as a JSON object if x is nonzero)
i,case=x (match case if x is nonzero)
w,wholeword=x (search whole words if x is nonzero)
p,path=x (search whole paths if x is nonzero)
r,regex=x (perform a regex search if x is nonzero)
m,diacritics=x (match diacritics if x is nonzero)
path_column=x (list the result's path in the json object if x is nonzero)
size_column=x (list the result's size in the json object if x is nonzero)
date_modified_column=x (list the result's modified date in the json object if x is nonzero)
date_created_column=x (list the result's creation date in the json object if x is nonzero)
attributes_column=x (list the result's attributes in the json object if x is nonzero)
sort=x (where x is name, path, date_modified or size)
ascending=x (sort by ascending order if x is nonzero)

Default html query strings values:
search=
offset=0
count=32
json=0
case=0
wholeword=0
path=0
regex=0
diacritics=0
sort=name
ascending=1

Default JSON object query strings values:
search=
offset=0
count=4294967295
json=1
case=0
wholeword=0
path=0
regex=0
diacritics=0
path_column=0
size_column=0
date_modified_column=0
date_created_column=0
attributes_column=0
sort=name
ascending=1

Example:

Code: Select all

http://localhost/?search=ABC&offset=0&count=100&sort=size&ascending=0
JSON Object Example
Here is a JSON object returned from the following request:

Query:

Code: Select all

http://localhost/?s=asd123&json=1&path_column=1
JSON result:

Code: Select all

{ "totalResults":3, "results":[ { "type":"folder", "name":"Asd123", "path":"D:\\Folder1\\Folder2" }, { "type":"folder", "name":"ABC1234", "path":"X:\\FolderA\\FolderB" }, { "type":"file", "name":"Abc123file", "path":"S:\\abcFolder" } ] } 
rockson
Posts: 2
Joined: Mon Sep 07, 2015 11:49 am

Re: HTTP Server Help

Post by rockson »

Hi,

first of all I would like to say this is a great piece of sw. You did a great job.
But I have a question; when one user on local network uses web search; is it possible to offer him a file explorer link (file://path/file.something) to that certain found file?
Why? Because I would like to edit opened file and save it back.

Thank you and best regards,
Rok
ericepp
Posts: 3
Joined: Fri Nov 18, 2016 3:06 pm

Re: HTTP Server Help

Post by ericepp »

Greetings,

I have been using this for a few years to access files remotely when out and about. In the older versions the server page listed the volume names next to the drive letter. I am curious why this feature was removed. I have 8 drives on my server and it is confusing sometimes trying to find the folder I am searching for, as I cant remember which drive letter it is in.
Screenshot.jpg
Screenshot.jpg (56.76 KiB) Viewed 75442 times
I was able to modify the everything.gif, as you can see, but that volume list is scarier than the banner. Is there a way to modify the CSS file to include the volume names, or is it a matter of function with the newer versions? I appreciate any input you can offer.
therube
Posts: 4580
Joined: Thu Sep 03, 2009 6:48 pm

Re: HTTP Server Help

Post by therube »

What does Windows itself show, letter only or ...?

I have no clue if applies, but your post reminded me of (this dated), http://forum.altap.cz/viewtopic.php?p=17395#p17395.
void
Developer
Posts: 15096
Joined: Fri Oct 16, 2009 11:31 pm

Re: HTTP Server Help

Post by void »

Drive labels were removed in Everything 1.3 because root folders could be folders or filelists.
Everything shows these root folders as they are named in the index.

I've added an ini option http_server_show_drive_labels to Everything-1.4.1.807b.

Enabling this option will show volume labels in front of drives.

To enable drive labels in 807b:
Type in the following search and press enter:
/http_server_show_drive_labels=1
ericepp
Posts: 3
Joined: Fri Nov 18, 2016 3:06 pm

Re: HTTP Server Help

Post by ericepp »

Thanks for the assistance, Void. That option is much appreciated. I can't use it now, as my kids are watching a movie on my machine, but I plan on taking advantage asap.

@TheRube - Thanks for the effort!

Happy Thanksgiving to all!
Blackmarlin
Posts: 1
Joined: Thu Nov 05, 2015 3:30 pm

Re: HTTP Server Help

Post by Blackmarlin »

Hi Rokson
I am also interested in this solution with the ability to present the search result as a Explorer link file:///..Path../file.xls did you find a solution?
mechanicow
Posts: 1
Joined: Wed Mar 14, 2018 6:15 pm

Re: HTTP Server Help

Post by mechanicow »

Is there are way to run the HTTP server on boot without a user logged in? Headless home server with scheduled reboots - win7. This would lead to better quality of life if it could be done! Thanks.
FusionX
Posts: 1
Joined: Sat Oct 19, 2019 6:52 am

Re: HTTP Server Help

Post by FusionX »

How do I enable CORS for this Http Server so that I can create a customized web server and use the original http server as the json endpoint?
whatUwant
Posts: 2
Joined: Mon Apr 10, 2017 10:23 am

Re: HTTP Server Help

Post by whatUwant »

FusionX wrote: Sat Oct 19, 2019 6:56 am How do I enable CORS for this Http Server so that I can create a customized web server and use the original http server as the json endpoint?
I don't think there is an option for that.
For now you can set up a reverse proxy and add these headers there.
Nginx https://nginx.org/en/docs/http/ngx_http ... odule.html
sub23
Posts: 8
Joined: Mon Apr 30, 2018 6:52 pm

Re: HTTP Server Help

Post by sub23 »

Hi @void how are things?
Any chance you could add the Access-Control-Allow-Origin: * to the headers please, and if possible a config option to set the origin.
aluserion
Posts: 2
Joined: Sat Sep 23, 2023 11:13 pm

Re: HTTP Server Help

Post by aluserion »

How do I start the HTTP server?
From the Tools menu, click Start HTTP server.

or with Everything 1.3.2.647b or later:

From the Tools menu, click Options.
Click the HTTP Server tab.
Check Enable HTTP server.
Click OK.
Is this advice still valid? I have no tab for either server.
Screenshot 2023-09-24 001059.png
Screenshot 2023-09-24 001059.png (169.47 KiB) Viewed 8886 times
version 1.4.1.1024(x64)
void
Developer
Posts: 15096
Joined: Fri Oct 16, 2009 11:31 pm

Re: HTTP Server Help

Post by void »

The Lite Version of Everything does not contain the HTTP server.

Please try the non-Lite version of Everything.
aluserion
Posts: 2
Joined: Sat Sep 23, 2023 11:13 pm

Re: HTTP Server Help

Post by aluserion »

Thankyou. I guess that must be the version installed when I used winget to install the top result for "Everything"?

Here's what I have installed;

Code: Select all

format-table | winget list everything
Name                        Id                   Version    Source
-------------------------------------------------------------------
Everything 1.4.1.1024 (x64) voidtools.Everything 1.4.1.1024 winget
Everything 1.4.1.1024 (x64) voidtools.Everything 1.4.1.1024 winget

I wonder if the listing is misleading, because in addition to their being no mention of this being the Lite version, it is listed as the default for anyone using the product name "Everything" - and Everything.Lite is listed separately:

Code: Select all

Format-Table | winget search everything

Name                                           Id                           Version     Match                   Source
-----------------------------------------------------------------------------------------------------------------------
Search Everything.                             9P7CXDZ3DKPC                 Unknown                             msstore
Find Near Me - Find nearby ATM's, Banks, Taxi… 9WZDNCRDRPDT                 Unknown                             msstore
ChemiCalc: Everything Chemistry                9P1WQW7PHL8X                 Unknown                             msstore
Odyssey - Pin Everything                       9NJ2TF16Z8VL                 Unknown                             msstore
Search Me Later 4                              9MZZQQXH5MT5                 Unknown                             msstore
The Letter Map                                 9PMSZSMKC8QH                 Unknown                             msstore
小智搜搜:Everything文件搜索软件               XP8BR85ZLFQ54Z               Unknown                             msstore
Everything                                     voidtools.Everything         1.4.1.1024  ProductCode: everything winget
EverythingToolbar                              stnkl.EverythingToolbar.Beta 0.8.0.1     Tag: everything         winget
EverythingToolbar                              stnkl.EverythingToolbar      1.2.0       Tag: everything         winget
Everything Lite                                voidtools.Everything.Lite    1.4.1.1024                          winget
Everything (Alpha)                             voidtools.Everything.Alpha   1.5.0.1356a                         winget


I think it's possibly a little confusing, especially as Everything's 'About Everything' gives no indication of this being the lite package, either.
Last edited by aluserion on Sun Sep 24, 2023 9:53 am, edited 1 time in total.
void
Developer
Posts: 15096
Joined: Fri Oct 16, 2009 11:31 pm

Re: HTTP Server Help

Post by void »

winget uses the msi installer.

The msi installer is not the Lite version of Everything.
The msi installer disables the ETP/FTP/HTTP server by default.



To re-enable the HTTP server for the msi version:
  • Exit Everything (File -> Exit)
  • From the Start menu, search for: notepad
    Right click Notepad and click Run as administrator.
  • In Notepad, From the File menu, click Open.
  • Select your Everything.ini from C:\Program Files\Everything
  • Change the following line:
    allow_http_server=0
    to:
    allow_http_server=1
  • Save changes and relaunch Everything.
Post Reply