...
<VirtualHost 12.34.56.78:8080>
ServerName example.ru
DocumentRoot /var/www/admin/data/www/example.ru
SuexecUserGroup admin admin
CustomLog /var/www/httpd-logs/example.ru.access.log combined
ErrorLog /var/www/httpd-logs/example.ru.error.log
ServerAdmin webmaster@example.ru
php_admin_value open_basedir "/var/www/admin/data:."
php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f webmaster@example.ru"
php_admin_value upload_tmp_dir "/var/www/admin/data/mod-tmp"
php_admin_value session.save_path "/var/www/admin/data/mod-tmp"
AddType application/x-httpd-php .php .php3 .php4 .php5 .phtml
AddType application/x-httpd-php-source .phps
DirectoryIndex index.php
AddDefaultCharset utf-8
ServerAlias www.example.ru
ScriptAlias /cgi-bin/ /var/www/admin/data/www/example.ru/cgi-bin/
</VirtualHost>
<VirtualHost 12.34.56.78:8080>
ServerName m.example.ru
DocumentRoot /var/www/admin/data/www/m.example.ru
SuexecUserGroup admin admin
CustomLog /var/www/httpd-logs/m.example.ru.access.log combined
ErrorLog /var/www/httpd-logs/m.example.ru.error.log
ServerAdmin webmaster@example.ru
php_admin_value open_basedir "/var/www/admin/data:."
php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f webmaster@example.ru"
php_admin_value upload_tmp_dir "/var/www/admin/data/mod-tmp"
php_admin_value session.save_path "/var/www/admin/data/mod-tmp"
AddType application/x-httpd-php .php .php3 .php4 .php5 .phtml
AddType application/x-httpd-php-source .phps
DirectoryIndex index.php
AddDefaultCharset utf-8
ScriptAlias /cgi-bin/ /var/www/admin/data/www/m.example.ru/cgi-bin/
</VirtualHost>
<VirtualHost 12.34.56.78:443>
ServerName example.ru
DocumentRoot /var/www/admin/data/www/example.ru
SSLEngine on
SSLCertificateFile /var/www/httpd-cert/ssl/certificate.crt
SSLCertificateKeyFile /var/www/httpd-cert/ssl/private.key
SSLCACertificateFile /var/www/httpd-cert/ssl/ca_bundle.crt
SuexecUserGroup admin admin
CustomLog /var/www/httpd-logs/example.ru.access.log combined
ErrorLog /var/www/httpd-logs/example.ru.error.log
ServerAdmin webmaster@example.ru
php_admin_value open_basedir "/var/www/admin/data:."
php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f webmaster@example.ru"
php_admin_value upload_tmp_dir "/var/www/admin/data/mod-tmp"
php_admin_value session.save_path "/var/www/admin/data/mod-tmp"
AddType application/x-httpd-php .php .php3 .php4 .php5 .phtml
AddType application/x-httpd-php-source .phps
DirectoryIndex index.php
AddDefaultCharset utf-8
ServerAlias www.example.ru
ScriptAlias /cgi-bin/ /var/www/admin/data/www/example.ru/cgi-bin/
</VirtualHost>
<VirtualHost 12.34.56.78:443>
ServerName m.example.ru
DocumentRoot /var/www/admin/data/www/m.example.ru
SSLEngine on
SSLCertificateFile /var/www/httpd-cert/ssl/certificate.crt
SSLCertificateKeyFile /var/www/httpd-cert/ssl/private.key
SSLCACertificateFile /var/www/httpd-cert/ssl/ca_bundle.crt
SuexecUserGroup admin admin
CustomLog /var/www/httpd-logs/m.example.ru.access.log combined
ErrorLog /var/www/httpd-logs/m.example.ru.error.log
ServerAdmin webmaster@example.ru
php_admin_value open_basedir "/var/www/admin/data:."
php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f webmaster@example.ru"
php_admin_value upload_tmp_dir "/var/www/admin/data/mod-tmp"
php_admin_value session.save_path "/var/www/admin/data/mod-tmp"
AddType application/x-httpd-php .php .php3 .php4 .php5 .phtml
AddType application/x-httpd-php-source .phps
DirectoryIndex index.php
AddDefaultCharset utf-8
ScriptAlias /cgi-bin/ /var/www/admin/data/www/m.example.ru/cgi-bin/
</VirtualHost>
Include conf.d/*.conf
...
12.34.56.78:443
12.34.56.79:443
12.34.56.78:443
12.34.56.78:444