Multiple hostnames possible?

Hi all,

I was wondering if I can have multiple hostnames on my Yun?

As of now, my Yun is called yun1 so I can reach it via yun1.local and that brings me to the login screen of the config page (essentially index.html in de www folder).

Now I have created my own page and I was wondering if I can add a hostname for this page too?
Ie home.local, or even just home and that should bring me to either index.php in the www folder or /www/subfolder/index.php.

I tried following this tutorial but I'm not running apache but the standard yun server so I got stuck.

Via this topic I was able to learn about /etc/config/system which holds the option hostname yun1.

I was not able to combine the topics so far and work it out. Maybe someone can help?!

@Arjan,
the current webserver on the Yun is not capable of serving more than one websever on port 80.

As such, with the current webserver you CAN:

  1. run more than one webserver on different ports
  2. run more than one webserver on different IP addresses

There is documentation on the OpenWrt website that allows different configurations
that might work for your task/project.

Here is the link to the a list different webservers available for the Yun and OpenWrt. I would NOT recommend Apache under any circumstances on the Yun.

Here is the configuration page for the current webserver.

Lastly, the current webserver is written in Lua, not C/C++ or some scripting language like PHP.

FWIW: you might be looking for multi-homed webservers.

Jesse

Thanks Jesse!

I have a look over the upcoming days and see if I can get it to work!