1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
|
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName MONSITE.net
DocumentRoot /var/www/MONSITE.net/
DirectoryIndex index.php index.html
<Directory />
Options FollowSymLinks
AllowOverride none
</Directory>
alias /postfixadmin "/usr/share/postfixadmin"
<Directory "/usr/share/postfixadmin">
Options Indexes MultiViews
AllowOverride None
Order deny,allow
Allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel debug
CustomLog ${APACHE_LOG_DIR}/access.log combined
<IfModule mod_php5.c>
AddType application/x-httpd-php .php
php_flag magic_quotes_gpc Off
php_flag track_vars On
php_flag register_globals Off
php_admin_flag allow_url_fopen Off
php_value include_path .
php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp
php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/
</IfModule>
RewriteEngine on
RewriteCond %{SERVER_NAME} =MONSITE.net
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [L,NE,R=permanent]
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName newsletter.MONSITE.net
DocumentRoot /var/www/MONSITE.net/newsletter/
DirectoryIndex index.php index.html
RewriteEngine on
RewriteCond %{SERVER_NAME} =newsletter.MONSITE.net
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [L,NE,R=permanent]
</VirtualHost> |
Partager