Enable default apache directory and site

GIJosh1516
Posts: 2
Joined: Tue Apr 28, 2009 6:41 pm

Enable default apache directory and site

Postby GIJosh1516 » Wed Apr 29, 2009 2:26 pm

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

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: Enable default apache directory and site

Postby cpg » Wed Apr 29, 2009 11:51 pm

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 ... :(
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

Who is online

Users browsing this forum: No registered users and 59 guests