All pastes #736921 Raw Edit

Someone

public text v1 · immutable
·published 2007-10-14 22:47 UTC
rendered paste body
*:80                   is a NameVirtualHost
         default server www.gillesmaire.com (/etc/apache2/sites-enabled/000-default:2)
         port 80 namevhost www.gillesmaire.com (/etc/apache2/sites-enabled/000-default:2)
         port 80 namevhost facturier.gillesmaire.com (/etc/apache2/sites-enabled/050-facturier:1)
Syntax OK

000-default : 

NameVirtualHost *:80
<VirtualHost *:80>
        ServerAdmin gillesmaire@free.fr
        ServerName www.gillesmaire.com
        DocumentRoot /var/www/apache2-default
        <Directory /var/www/apache2-default>
                DirectoryIndex index.html
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>
        ErrorLog /var/log/apache2/error.log
        CustomLog /var/log/apache2/access.log combined
        ServerSignature On

</VirtualHost>


050:facturier 

<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        Servername facturier.gillesmaire.com
        DocumentRoot /var/www/facturier/
        <Directory /var/www/facturier>
                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/
        </Directory>

        ScriptAlias /cgi-bin/ /var/www/facturier/cgi-bin/
        <Directory "/var/www/facturier/cgi-bin">
                AllowOverride None
                Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>

        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

</VirtualHost>