У нас настроено так:
Код:
<VirtualHost *:80>
ServerAdmin admin@xxx.ru
ProxyRequests Off
ProxyPreserveHost On
ServerName stats.xxx.ru:80
ProxyPass /bgbilling/ http://localhost:8080/bgbilling/
ProxyPassReverse /bgbilling/ http://localhost:8080/bgbilling/
Redirect permanent / http://stats.xxx.ru/bgbilling/webexecuter
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
<Location ~ "/bgbilling/webexecuter">
Allow from all
</Location>
<Location ~ "/bgbilling/pdfexecuter">
Allow from all
</Location>
<Location ~ "/bgbilling/pubexecuter">
Allow from all
</Location>
<Location ~ "/bgbilling/help">
Allow from all
</Location>
<Location ~ "/bgbilling/style.css">
Allow from all
</Location>
<Location ~ "/bgbilling/img">
Allow from all
</Location>
<Location ~ "/bgbilling/drweb_license.pdf">
Allow from all
</Location>
<Location ~ "/\.ht">
Deny from all
</Location>
<Location ~ "/bgbilling/executer">
Deny from all
</Location>
<Location ~ "/bgbilling/mpsexecuter">
Deny from all
</Location>
</VirtualHost>
localhost замените на my_ip_address