Зделал так:
### Section 3: Virtual Hosts
#
# VirtualHost: If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at <URL:
http://www.apache.org/docs/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.
#
# Use name-based virtual hosting.
#
NameVirtualHost silver.priv
#ServerAlias silver.priv stats.silver.priv
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
<VirtualHost silver.priv:80>
Alias /silver.priv/ "/usr/local/www/joomla/"
DocumentRoot /usr/local/www/joomla/
ServerAdmin
silver@blabla.net
ServerName silver.priv
ServerAlias silver.priv
DocumentRoot /usr/local/www/joomla/
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
# ErrorLog /var/logs/com-error_log
# CustomLog /var/logs/com-access_log common
<Directory /usr/local/www/joomla/>
Options +FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
options +Includes
options +Indexes
</Directory>
</VirtualHost>
#Abills version 0.4. Default ABillS port is 9443
Listen 9443
#Alias for web report
Alias /reports/ "/usr/local/abills/webreports"
<Directory "/usr/local/abills/webreports">
AllowOverride All
Order allow,deny
Allow from all
</Directory>
# Main server config
<VirtualHost stats.silver.priv:9443>
ServerName silver.abills.priv
ServerAlias /abills "/usr/local/abills/cgi-bin/"
DocumentRoot /usr/local/abills/cgi-bin/
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
#ServerName
http://www.example.com:9443
#ServerAdmin
admin@example.com
ErrorLog /var/log/abills-error.log
#TransferLog /var/log/abills-access.log
CustomLog /var/log/abills-access_log common
<IfModule ssl_module>
# SSL Engine Switch:
# Enable/Disable SSL for this virtual host.
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /usr/local/abills/Certs/server.crt
SSLCertificateKeyFile /usr/local/abills/Certs/server.key
<FilesMatch "\.(cgi)$">
SSLOptions +StdEnvVars
</FilesMatch>
BrowserMatch ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
CustomLog /var/log/abills-ssl_request.log \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
</IfModule>
# User interface
<Directory '/usr/local/abills/cgi-bin/'>
Options +FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
<IfModule ssl_module>
SSLOptions +StdEnvVars
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule ^(.*) - [E=HTTP_CGI_AUTHORIZATION:%1]
#Anti TRACE
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .* - [F]
Options Indexes ExecCGI SymLinksIfOwnerMatch
</IfModule>
AddHandler cgi-script .cgi
Options Indexes ExecCGI FollowSymLinks
AllowOverride none
DirectoryIndex index.cgi
Order allow,deny
Allow from all
<Files ~ "\.(db|log)$">
Order allow,deny
Deny from all
</Files>
#For hotspot solution
ErrorDocument 404 "/abills/"
directoryIndex "/abills" index.cgi
</Directory>
#Admin interface
<Directory '/usr/local/abills/cgi-bin/admin/'>
Options +FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
<IfModule ssl_module>
SSLOptions +StdEnvVars
</IfModule>
AddHandler cgi-script .cgi
Options Indexes ExecCGI FollowSymLinks
AllowOverride none
DirectoryIndex index.cgi
order deny,allow
allow from all
</Directory>
</VirtualHost>
Потом начал получать сообщения об ошибке после перезапуска апача: Cannot resolve host name....
Прикрутил
hosts:
127.0.0.1 localhost silver.priv
127.0.0.1 localhost stats.silver.priv
Теперь вроде всё резолвится, но кажется проблемы с DNS:
# nslookup
> silver.priv
Server: 127.0.0.1
Address: 127.0.0.1#53
** server can't find silver.priv: NXDOMAIN
> stats.silver.priv
Server: 127.0.0.1
Address: 127.0.0.1#53
** server can't find stats.silver.priv: NXDOMAIN
>
По ссылкам silver.priv и stats.silver.priv никуда не заходит, по айпишникам так же.