View Single Post
  #9  
Old 14th August 2012, 09:08
manarak manarak is offline
Senior Member
 
Join Date: Apr 2009
Posts: 263
Thanks: 32
Thanked 6 Times in 5 Posts
Default

more of a trick than an essential add-on:

To be able to display (and switch between) sites that have been setup on the server to display as default when browsing to the server's IP or FQH is useful for example when developing a site when the DNS has not been set to point there, or to host stuff without using a domain name

To achieve this, do:

in /etc/apache2/sites-enabled
rename 000-default (or similar) to something like _000-default
then *copy* the file with the domain you want to appear as default into 000-default (same file name as was renamed above)
restart apache.

to switch to another default site, just copy another domain file to 000-default

to switch back to default behavior, copy back _000-default to 000-default
(and restart apache after every change)

I wish this could be done easily through ISPConfig

Last edited by manarak; 14th August 2012 at 09:15.
Reply With Quote