Here is my sites-available defaut : # Koha 2.2 Apache Virtual Host Config File # # Please include this file in your apache configuration. # The best way to do that depends on your site setup. # Some like an Include adding to /etc/apache/httpd.conf # and some prefer a symlink to this file from some dir. # Please refer to your system manuals. # Ports to listen to for Koha # uncomment these if they aren't already in main httpd.conf # Listen 8080 # NameVirtualHost is used by one of the optional configurations detailed below # Please make sure this line is correct before uncommenting. # See http://httpd.apache.org/docs/vhosts/ for some guides. NameVirtualHost debian-chatel:80 # KOHA's OPAC Configuration ServerAdmin biblio@chatel-saint-germain.fr DocumentRoot /usr/local/koha/opac/htdocs ServerName debian-chatel ScriptAlias /cgi-bin/koha/ /usr/local/koha/opac/cgi-bin/ Redirect permanent index.html http://debian-chatel:80/cgi-bin/koha/opac-main.pl ErrorLog /usr/local/koha/log/opac-error_log TransferLog /usr/local/koha/log/opac-access_log SetEnv PERL5LIB "/usr/local/koha/intranet/modules" SetEnv KOHA_CONF "/etc/koha.conf" # KOHA's INTRANET Configuration NameVirtualHost debian-chatel:8080 ServerAdmin biblio@chatel-saint-germain.fr DocumentRoot /usr/local/koha/intranet/htdocs ServerName debian-chatel ScriptAlias /cgi-bin/koha/ "/usr/local/koha/intranet/cgi-bin/" Redirect permanent index.html http://debian-chatel:8080/cgi-bin/koha/mainpage.pl ErrorLog /usr/local/koha/log/koha-error_log TransferLog /usr/local/koha/log/koha-access_log SetEnv PERL5LIB "/usr/local/koha/intranet/modules" SetEnv KOHA_CONF "/etc/koha.conf" NameVirtualHost * ServerAdmin webmaster@localhost DocumentRoot /var/www/ Options FollowSymLinks AllowOverride None Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all # This directive allows us to have apache2's default start page # in /apache2-default/, but still have / go to the right place RedirectMatch ^/$ /apache2-default/ ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ AllowOverride None Options ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all ErrorLog /var/log/apache2/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog /var/log/apache2/access.log combined ServerSignature On Alias /doc/ "/usr/share/doc/" Options Indexes MultiViews FollowSymLinks AllowOverride None Order deny,allow Deny from all Allow from 127.0.0.0/255.0.0.0 ::1/128