Bon voila ma conf (enfin un conf approchant, j'ai renommé certains truc) :
--- Fichier 00_default_vhost.conf : ---
# Use name-based virtual hosting.
NameVirtualHost *:80
# Tagada dir perm
<Directory /var/www/tagada>
# Allow from all
Order deny,allow
Allow from all
# Allow index and symlink
Options Indexes SymLinksifOwnerMatch
# Deny .htaccess
AllowOverride None
# Rewrite url
<IfModule mod_rewrite.c>
RewriteEngine On
# truc de rewrite pour google labs
RewriteCond %{REQUEST_URI} !^/noexist_.*\.html$
# truc de rewrite engine si ça peux aider
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.* index.php [L]
</IfModule>
</Directory>
# Default VirtualHost
<VirtualHost _default_:80>
#DocumentRoot
DocumentRoot /var/www/tagada
# Log level
LogLevel warn
# Show apache signature
ServerSignature On
</VirtualHost>
--- Fichier 01_rpm_vhost.conf : ---
# rpm alias
<IfModule mod_alias.c>
Alias /rpm /opt/RPMS
</IfModule>
# rpm directory rights
<Directory /opt/RPMS>
# Limit bandwith if mod_bw is avaible
<IfModule mod_bw.c>
#Enable module
BandWidthModule On
#Force limit
ForceBandWidthModule On
#Set no limit
BandWidth all 0
#Limit Large file > 10MB to 30KB/s max
LargeFileLimit * 10240 30720
</IfModule>
# Allow from all
Order deny,allow
Allow from all
# Allow index and symlink
Options Indexes SymLinksifOwnerMatch
# Deny .htaccess
AllowOverride None
</Directory>
# rpm virtualhost
<VirtualHost *:80>
# Virtualhost domaine name
ServerName rpm.example.com
# DocumentRoot dir
DocumentRoot /opt/RPMS
# Log level
LogLevel warn
# Show apache signature
ServerSignature On
</VirtualHost>
[^] # Re: Name-based virtual hosts
Posté par Raphaël G. (site web personnel) . En réponse au message Multi homing. Évalué à 2.
Bon voila ma conf (enfin un conf approchant, j'ai renommé certains truc) :
--- Fichier 00_default_vhost.conf : ---
# Use name-based virtual hosting.
NameVirtualHost *:80
# Tagada dir perm
<Directory /var/www/tagada>
# Allow from all
Order deny,allow
Allow from all
# Allow index and symlink
Options Indexes SymLinksifOwnerMatch
# Deny .htaccess
AllowOverride None
# Rewrite url
<IfModule mod_rewrite.c>
RewriteEngine On
# truc de rewrite pour google labs
RewriteCond %{REQUEST_URI} !^/noexist_.*\.html$
# truc de rewrite engine si ça peux aider
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.* index.php [L]
</IfModule>
</Directory>
# Default VirtualHost
<VirtualHost _default_:80>
#DocumentRoot
DocumentRoot /var/www/tagada
# Log level
LogLevel warn
# Show apache signature
ServerSignature On
</VirtualHost>
--- Fichier 01_rpm_vhost.conf : ---
# rpm alias
<IfModule mod_alias.c>
Alias /rpm /opt/RPMS
</IfModule>
# rpm directory rights
<Directory /opt/RPMS>
# Limit bandwith if mod_bw is avaible
<IfModule mod_bw.c>
#Enable module
BandWidthModule On
#Force limit
ForceBandWidthModule On
#Set no limit
BandWidth all 0
#Limit Large file > 10MB to 30KB/s max
LargeFileLimit * 10240 30720
</IfModule>
# Allow from all
Order deny,allow
Allow from all
# Allow index and symlink
Options Indexes SymLinksifOwnerMatch
# Deny .htaccess
AllowOverride None
</Directory>
# rpm virtualhost
<VirtualHost *:80>
# Virtualhost domaine name
ServerName rpm.example.com
# DocumentRoot dir
DocumentRoot /opt/RPMS
# Log level
LogLevel warn
# Show apache signature
ServerSignature On
</VirtualHost>