How to custom the HTTP web in 1.3.2.645?

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
larry
Posts: 5
Joined: Wed Apr 17, 2013 8:45 am

How to custom the HTTP web in 1.3.2.645?

Post by larry »

http://localhost/main.css shows 404 Not Found !
void
Developer
Posts: 16773
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to custom the HTTP web in 1.3.2645?

Post by void »

Do other internal files work, for example http://localhost/folder.gif ?
Where are you serving your web pages from?
Is allow file download unchecked?
larry
Posts: 5
Joined: Wed Apr 17, 2013 8:45 am

Re: How to custom the HTTP web in 1.3.2645?

Post by larry »

hahaha,I know I know,I disableed the HTTP download :mrgreen:
void
Developer
Posts: 16773
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to custom the HTTP web in 1.3.2645?

Post by void »

Even with allow HTTP file download disabled, you should still be able to access http://localhost/main.css

The internal files are always downloadable.

It might be a cache issue? strange that you would get the 404 page though.
larry
Posts: 5
Joined: Wed Apr 17, 2013 8:45 am

Re: How to custom the HTTP web in 1.3.2645?

Post by larry »

Consult a safety problem. Double click on the everything HTTP search results, users can traverse any directory.In fact, he may not have this permission,So, can we use the Explorer to open the directory to verify this problem?
void
Developer
Posts: 16773
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to custom the HTTP web in 1.3.2645?

Post by void »

Every folder you index with Everything can be listed with the HTTP server.

You might like to run multiple instances of Everything.

Setup a new instance of Everything and index only the folders you would like available with the HTTP server.

For example:
Make sure the HTTP server is stopped.
Create a new shortcut to Everything.exe with the -instance "HTTP Server" command line option:

Code: Select all

Everything.exe -instance "HTTP Server"
Run the shortcut. This will start a new Everything instance.
Specify the folders you would like to indexes (Tools -> Options -> Indexes).
Start the HTTP Server.
larry
Posts: 5
Joined: Wed Apr 17, 2013 8:45 am

Re: How to custom the HTTP web in 1.3.2645?

Post by larry »

Can only modify the CSS, can not modify more? For example, the double-click path from the browser to open change to open from the explorer?

Change "/E%3A/share" to "\\Sever name\share" ?
void
Developer
Posts: 16773
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to custom the HTTP web in 1.3.2645?

Post by void »

This is not possible with CSS.

You will need to use Java script.
void
Developer
Posts: 16773
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to custom the HTTP web in 1.3.2645?

Post by void »

Here is an example to get a list of all your mp3s..

Code: Select all

<html>
<head>
<script language="javascript" >

function ProcessTheData(jsonTexto) {

	var i;
	
	document.write("<pre>");

	for(i=0;i<jsonTexto.results.length;i++)
	{
		document.write(jsonTexto.results[i].name+"\n");
	}

	document.write("</pre>");
}

var xobj = new XMLHttpRequest();
xobj.overrideMimeType("application/json");
xobj.open('GET', '/?search=*.mp3&json=1', true);
xobj.onreadystatechange = function () {

	if (xobj.readyState == 4) {

		var jsonTexto = eval("("+xobj.responseText+")");
		
        ProcessTheData(jsonTexto);
	}
}

xobj.send();

</script>

</head>
<body>
</body>
</html>
Save this to example.htm in your HTTP Server folder
and open http://localhost/example.htm to see the results.
Post Reply