rejetto forum

Multiple Websites with HFS like Vhost in apache

0 Members and 1 Guest are viewing this topic.

Offline KooolaNL

  • Occasional poster
  • *
    • Posts: 20
  • EY
    • View Profile
    • wat
i was wondering is it possible 2 host multiple websites in HFS like in apache Vhost

so kooola.nl   loads the index.html in d:/hfs/kooola
n  ziggo-haters.nl loads the index.html in d:/hfs/ziggo-haters


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13308
    • View Profile



Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13308
    • View Profile

Offline j7n

  • Occasional poster
  • *
    • Posts: 8
    • View Profile
Please consider adding support for VHOSTS maybe as multiple root / directories where one of them is a default. I could be wrong, but looks like the existing framework of the "Virtual" File System could be utilized to implement it.

Virtual Hosts is a rather basic function of a webserver, more important than uploading or interactive file listings with icons.


Offline bmartino1

  • Tireless poster
  • ****
    • Posts: 901
  • I'm only trying to help i mean no offense.
    • View Profile
    • My HFS Google Drive Shared Link
in all technical, you can already do this.. the only issue is that it require running another HFS execution...

You will have to go in to the HFS menu and make sure that the "only 1 instance" is not checked...

I've found that if you start in C:\HFS PAth\ and add HFS1 Make a HFS and Save the VItural Files system, then copy that folder and a new folder in the same path lets say HFS2
, then load the file system and make changes... you now have 2 HFS exe to run a vitural file system... ITs not a praticale as opening a confi like in apache, but is accomplishable!...

Example:
c:\webroot\hfs1\hfs.exe -running site name.com:80
and
C:\webroot\hfs2\hfs.exe -runnin site name.com:8080

both HFS exe will be runnin at the same time... different save to xxx.VFS
Files i try to keep and share can be found on my google drive:

https://drive.google.com/drive/folders/1FOWi3Gqaldld6JLXvZ-biDv4RSguf0IC


Offline j7n

  • Occasional poster
  • *
    • Posts: 8
    • View Profile
This starts 2 servers on different port numbers. They are more reliable: if one instance crashes, the other continues running.

But. Problem is that if a visitor doesn't want to type the port number or forgets it, he gets onto an unrelated web page.


Offline bmartino1

  • Tireless poster
  • ****
    • Posts: 901
  • I'm only trying to help i mean no offense.
    • View Profile
    • My HFS Google Drive Shared Link
You are correct J7n, unless there is a template way to restart if  another instance is not running... etc..etc..

the solution these peps came up with was:
http://community.spiceworks.com/topic/276806-creating-a-dns-record-with-a-port-number

having a specific server site that would be a redirect with aherf links(this one would be the site you would never want to go down...

can't seem to find it, but it is available for html template to go to link and it it replies 404, then it will go to a different link...
( I know its possible, seen it / used it once... )

see here for more info...:
http://www.wordstream.com/blog/ws/2010/06/02/how-to-find-and-fix-broken-links
http://www.yourhtmlsource.com/myfirstsite/basiclinks.html

------------
here it is:
http://www.rapidtables.com/web/tools/redirect-generator.htm
« Last Edit: June 24, 2015, 08:47:58 PM by bmartino1 »
Files i try to keep and share can be found on my google drive:

https://drive.google.com/drive/folders/1FOWi3Gqaldld6JLXvZ-biDv4RSguf0IC


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13308
    • View Profile
Virtual Hosts is a rather basic function of a webserver, more important than uploading or interactive file listings with icons.

HFS is mainly a file server, more than a webserver