rejetto forum

Server name

0 Members and 1 Guest are viewing this topic.

Offline Chris Harris

  • Occasional poster
  • *
    • Posts: 36
    • View Profile
I am running HTTP File Server on three different computers. They all are running 2.4rc2 with no additions or changes.

I would like to have a server/computer identification on the web page. I have looked for a configuration item to identify the server/computer but cannot find it.

Is there an option to put in a server name or how can I do this within the program?

Thanks
Chris


Offline NaitLee

  • Tireless poster
  • ****
    • Posts: 204
  • Computer-brain boy
    • View Profile
Hi,

On newer HFS 2.4 RC7 you can use diff template on root folder "/"

Right-click on root folder (house icon and slash), Properties, Diff template,
inside put this:
Code: [Select]
[^special:strings]
title=Home Computer
HFS=Home Computer
Then browser tab title "HFS" and served page "HTTP File Server" will become "Home Computer".

I didn't remember when the "^ template section prepend" was introduced, but likely not 2.4 rc2.
It's advised to update to 2.4 rc6 or rc7, since many problems (most of unicode and ddos protection) were fixed in them.
use a slightly-older/community template to avoid some rc7 template problem, if they annoyed you :)

For other template, after switching press F6 on HFS window, in the opened text editor find the title (typically "HFS" "HTTP File Server") you want to modify, change it/them and save the file.

Cheers~
« Last Edit: March 09, 2022, 04:22:05 AM by NaitLee »
"Computation is not forbidden magic."
Takeback Template | PHFS


Offline NaitLee

  • Tireless poster
  • ****
    • Posts: 204
  • Computer-brain boy
    • View Profile
Just some hack, putting some entries in the "hosts" file makes some convenience... :D
On Windows it is at C:/windows/system32/drivers/etc/hosts
It's a simple text file, opening with notepad.exe is sufficient.
Modification may require Administrator privilege.

By adding something like:
Code: [Select]
192.168.1.101    home
192.168.1.102    work
you can browse those IP by entering "home/" or "work/" in the browser address bar. Don't forget port if it's not 80
The trailing slash is required to not let the browser google for "home" or "work"... :)
« Last Edit: March 09, 2022, 04:23:32 AM by NaitLee »
"Computation is not forbidden magic."
Takeback Template | PHFS


Offline Chris Harris

  • Occasional poster
  • *
    • Posts: 36
    • View Profile
Actually 2 computers were at rc07. Your diff template worked.
I upgraded the other computer to rc07 and added the Diff Template.

All 3 computers now showing the server name.

Thanks
Chris
« Last Edit: March 09, 2022, 10:53:13 AM by Chris Harris »