Есть несколько виртуальных хостов на одном IP. Ко всем сайтам доступ осуществляется как по доменному имени, так и по адресу вида IP/site_name. А к одному (веб-морда для rtorrent) доступ возможен только по доменному имени. В /etc/hosts все прописано. Как сделать так, чтобы досуп к WEB-rtorrent осуществлялся по адресу вида IP/site_name?Server version: Apache/2.2.22 (Ubuntu)
Конфиг, переделаный из дефолтного, для моего сайта /etc/apache2/sites-available/na_zametku.conf (доступ по IP/site_name есть) :
<VirtualHost *:80>
ServerAdmin webmaster@na_zametku
ServerName na_zametku
DocumentRoot /var/www/na_zametku
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /var/www/na_zametku>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
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 warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
Конфиг для WEB-rtorrent /etc/apache2/sites-available/rtpg.apache.conf (доступа по IP/site_name нет) :
<VirtualHost *:80>
ServerName lunmod
DocumentRoot /usr/share/rtpg-www/
AddHandler cgi-script .cgi
SetEnv RTPG_CONFIG /etc/rtpg/rtpg.conf
<Directory /usr/share/rtpg-www/>
DirectoryIndex index.cgi
Options FollowSymLinks ExecCGI
AddDefaultCharSet utf-8
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName lunmod
SCGIMount /RPC2 127.0.0.1:5000
<Location /RPC2>
Order allow,deny
Allow from all
</Location>
</VirtualHost>