httpd-users mailing list archives

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

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

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

ProxyPass everything to thin does work. But example.com/awstats still
goes to thin and I get 404.

Here is my complete configuration:

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

    <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
http://127.0.0.1:5000        BalancerMember http://127.0.0.1:5001
  BalancerMember http://127.0.0.1:5002    </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
</Proxy></VirtualHost>
-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message