rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: timteka on October 08, 2008, 09:22:32 AM

Title: Virtual Hosts on HFS
Post by: timteka on October 08, 2008, 09:22:32 AM
Hi,
how can i operate with virtual sites on HFS? i've recently changed my ns zone and wanted to have my site url in HFS, so that "Open in Browser" would open my site via name, not IP.
Also how can i add another one virt.site, pointing to my HFS-host? :-)
Thanx in advance
Title: Re: Virtual Hosts on HFS
Post by: rejetto on October 08, 2008, 10:28:11 AM
how can i operate with virtual sites on HFS? i've recently changed my ns zone and wanted to have my site url in HFS, so that "Open in Browser" would open my site via name, not IP.

"open in browser" works on your computer. By default it doesn't use your IP address.

I guess you are talking about the address showing near the "open in browser" button.
Then, to add an address you must go Menu -> ip address -> custom

Quote
Also how can i add another one virt.site, pointing to my HFS-host? :-)

i think what you need is just having multiple addresses.
that's not virtual sites, it's just DNS.
the menu i told you here above will let you enter more than one address. ;)
Title: Re: Virtual Hosts on HFS
Post by: timteka on October 08, 2008, 12:19:23 PM
Thanx for your reply, Rejetto,
for virtual hosts i meant the idea used in apache and all the other adult webservers :-)
can i have different roots for my multiple domains under hfs?
Title: Re: Virtual Hosts on HFS
Post by: rejetto on October 08, 2008, 12:44:20 PM
No, there's no such feature in HFS at the moment, sorry.
You can simulate it at some level by using macros, something like {.if|{.%host == myhost.com.}|redirect to a specific folder.}
But it's not as elegant as virtual hosts