Author Topic: Virtual Hosts on HFS  (Read 956 times)

0 Members and 1 Guest are viewing this topic.

Offline timteka

  • Regular poster
  • **
  • Posts: 18
    • View Profile
Virtual Hosts on HFS
« 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

Offline rejetto

  • Administrator
  • Insane programmer
  • *
  • Posts: 12851
    • View Profile
Re: Virtual Hosts on HFS
« Reply #1 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. ;)

Offline timteka

  • Regular poster
  • **
  • Posts: 18
    • View Profile
Re: Virtual Hosts on HFS
« Reply #2 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?

Offline rejetto

  • Administrator
  • Insane programmer
  • *
  • Posts: 12851
    • View Profile
Re: Virtual Hosts on HFS
« Reply #3 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
« Last Edit: October 08, 2008, 12:47:03 PM by rejetto »