# DO NOT EDIT. AUTOMATICALLY GENERATED. IF YOU NEED TO MAKE A CHANGE PLEASE USE THE INCLUDE FILES.
<VirtualHost XX.XX.XX.XX:80>
ServerName mysite.eu
ServerAlias mysite.org www.mysite.eu www.mysite.org
DocumentRoot /home/user21/public_html/www/home
ServerAdmin webmaster@mysite.eu
UseCanonicalName Off
CustomLog /usr/local/apache/domlogs/mysite.eu combined
CustomLog /usr/local/apache/domlogs/mysite.eu-bytes_log "%{%s}t %I .\n%{%s}t %O ."
## User user21 # Needed for Cpanel::ApacheConf
UserDir disabled
UserDir enabled user21
# Enable backwards compatible Server Side Include expression parser for Apache versions >= 2.4.
# To selectively use the newer Apache 2.4 expression parser, disable SSILegacyExprParser in
# the user's .htaccess file. For more information, please read:
# http://httpd.apache.org/docs/2.4/mod/mod_include.html#ssilegacyexprparser
<IfModule mod_include.c>
<Directory "/home/user21/public_html/www/home">
SSILegacyExprParser On
</Directory>
</IfModule>
<IfModule mod_suphp.c>
suPHP_UserGroup user21 user21
</IfModule>
<IfModule concurrent_php.c>
php4_admin_value open_basedir "/home/user21:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp"
php5_admin_value open_basedir "/home/user21:/usr/lib/php:/usr/local/lib/php:/tmp"
</IfModule>
<IfModule !concurrent_php.c>
<IfModule mod_php4.c>
php_admin_value open_basedir "/home/user21:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp"
</IfModule>
<IfModule mod_php5.c>
php_admin_value open_basedir "/home/user21:/usr/lib/php:/usr/local/lib/php:/tmp"
</IfModule>
<IfModule sapi_apache2.c>
php_admin_value open_basedir "/home/user21:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp"
</IfModule>
</IfModule>
<IfModule !mod_disable_suexec.c>
<IfModule !mod_ruid2.c>
SuexecUserGroup user21 user21
</IfModule>
</IfModule>
<IfModule mod_ruid2.c>
RMode config
RUidGid user21 user21
</IfModule>
<IfModule itk.c>
# For more information on MPM ITK, please read:
# http://mpm-itk.sesse.net/
AssignUserID user21 user21
</IfModule>
ScriptAlias /cgi-bin/ /home/user21/public_html/www/home/cgi-bin/
Include "/usr/local/apache/conf/userdata/std/2/user21/mysite.eu/*.conf"
## The include file
DocumentRoot /home/user21/public_html/www/home
AddDefaultCharset utf-8
RewriteEngine on
RewriteCond %{HTTP_HOST} !^(www\.)?mysite\.org$ [NC]
RewriteCond %{HTTP_HOST} !^(ticket\.)?mysite\.org$ [NC]
RewriteRule ^(.*) http://www.mysite.org/$1 [R=301,NE,L]
<Directory "/home/user21/public_html/www/home">
AllowOverride All
Options FollowSymLinks
</Directory>
Alias /france /home/user21/public_html/www/france
<Directory "/home/user21/public_html/www/france">
AllowOverride All
Options FollowSymLinks
</Directory>
Alias /stats /home/user21/public_html/stats
<Directory "/home/user21/public_html/stats">
AllowOverride All
Options FollowSymLinks
</Directory>
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/json
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/json
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/x-httpd-php
# Pour les navigateurs incompatibles (Netscape et IE)
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
# les proxies ne doivent pas décompresser le contenua la place de l'internaute
Header append Vary User-Agent env=!dont-vary
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png|bmp)$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.(?:exe|t?gz|zip|bz2|sit|rar)$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.(?:pdf|avi|mov|mp3|mp4|rm)$ no-gzip dont-vary
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 604800 seconds"
ExpiresByType image/jpg "access plus 604800 seconds"
ExpiresByType image/jpeg "access plus 604800 seconds"
ExpiresByType image/png "access plus 1800 seconds"
ExpiresByType image/gif "access plus 604800 seconds"
ExpiresByType image/icon "access plus 604800 seconds"
ExpiresByType application/javascript "access plus 604800 seconds"
ExpiresByType text/css "access plus 1800 seconds"
#ExpiresByType text/css "access plus 800 seconds"
ExpiresByType application/x-javascript "access plus 1800 seconds"
</IfModule>
<FilesMatch "\\.(ico|jpe?g|png|gif|swf)$">
Header set Cache-Control "max-age=1800, public"
</FilesMatch>
<FilesMatch "\\.(css)$">
Header set Cache-Control "max-age=1800, public"
</FilesMatch>
<FilesMatch "\\.(js)$">
Header set Cache-Control "max-age=3600, public"
</FilesMatch>