You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wiki-changes@httpd.apache.org by Apache Wiki <wi...@apache.org> on 2007/05/25 18:10:28 UTC

[Httpd Wiki] Update of "Platform/DebianLike" by VinkoVrsalovic

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Httpd Wiki" for change notification.

The following page has been changed by VinkoVrsalovic:
http://wiki.apache.org/httpd/Platform/DebianLike

The comment on the change is:
Added a2ensite example

------------------------------------------------------------------------------
  = VirtualHost Configuration =
  In much the same way that modules are enabled and disabled, sites (!VirtualHosts) are kept in /etc/apache2/sites-available and symlinked to /etc/apache2/sites-enabled with the ''a2ensite'' and ''a2dissite'' commands.
  
+ {{{
+ #Example of creating a new site (ie, vhost) in Ubuntu:
+ ~$ sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/mytestsite
+ Password:<password>
+ #Use your favorite editor and don't forget to remove the 
+ #NameVirtualHost line if copying from default
+ #(you can't have two NameVirtualHost directives with the same argument)
+ ~$ sudo vi /etc/apache2/sites-available/mytestsite
+ ~$ sudo a2ensite
+ Which site would you like to enable?
+ Your choices are: default mytestsite
+ Site name? mytestsite
+ Site mytestsite installed; run /etc/init.d/apache2 reload to enable.
+ ~$ sudo /etc/init.d/apache2 reload
+  * Reloading apache 2.0 configuration...                                         [ ok ]
+ }}}
+ 
+ 
  = Bundled Documentation =
  
  For further details, see the docs available in: