Page 1 of 1

Enable default apache directory and site

Posted: Wed Apr 29, 2009 2:26 pm
by GIJosh1516
Here is my newbie q, is there a way to host multiple sites on an Amahi box?, for instance, what config file do I need to change to add a host header for another site?, or can I just add another IP address, and set the binding in the default Apache config at /etc/httpd/conf/httpd.config?, and using the server root at /var/www/html

I would like to host additional sites on the same installation for public/anonymous access.

Thanks in advance!
-Josh

Re: Enable default apache directory and site

Posted: Wed Apr 29, 2009 11:51 pm
by cpg
at the moment this has to be done manually, however, we do have a plan to implement this

basically all you need is in /etc/httpd/conf.d

you can setup a default by soft linking the app of your choice to, say 00-default.conf
(currently the dashboard is the default by popular demand).

ln -sf 1004-slideshow.conf 00-default.conf

you can also set up ServerAliases in various apps with the name they will be accessed outside from.

needless to say, this carries the risk that any vulnerability in an app may expose your home server to the big bad internet. so, until we have firewall support and other vulnerability-tackling features, please be careful, as you are opening it at your own risk ... :(