httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doğan Çeçen <>
Subject [users@httpd] proxypass to thin except /awstats
Date Thu, 27 Oct 2011 19:14:21 GMT

I want apache to proxy everything to thin but /awstats. I tried:

ProxyPass /awstats !
ProxyPass / balancer://thinservers/

ProxyPass everything to thin does work. But still
goes to thin and I get 404.

Here is my complete configuration:

<VirtualHost *:9880>    DocumentRoot    /srv/http/app/public
ServerName    ServerAlias    ErrorLog
    CustomLog       /var/log/apache2/ combined
    Alias /awstatsclasses "/usr/share/awstats/lib/"    Alias
/awstats-icon/ "/usr/share/awstats/icon/"    Alias /awstatscss
"/usr/share/doc/awstats/examples/css"    ScriptAlias /awstats/

    <Location /awstats>        Order deny,allow        Deny from all
     AuthUserFile /etc/awstats/awstats-htpasswd        AuthName
"Password protected"        AuthType Basic        Require valid-user
     Satisfy any    </Location>
    <Proxy balancer://thinservers>        BalancerMember        BalancerMember
  BalancerMember    </Proxy>
    RewriteEngine On    # Redirect all non-static requests to thin
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f    RewriteRule
^/(.*)$ balancer://thinservers%{REQUEST_URI} [P,QSA,L]
    ProxyPass /awstats !    ProxyPass / balancer://thinservers/
ProxyPassReverse / balancer://thinservers/    ProxyPreserveHost on
    <Proxy *>        Order deny,allow        Allow from all
()  ascii ribbon campaign - against html e-mail
/\   - against proprietary attachments

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message