Apache+Proxy+Django

~httpd.conf

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so



<VirtualHost *>
    ServerName mytgapp.blabla.com
    ServerAdmin [email protected]
    #DocumentRoot /srv/www/vhosts/mytgapp
    Errorlog /var/log/apache2/mytgapp-error_log
    Customlog /var/log/apache2/mytgapp-access_log common
    UseCanonicalName Off
    ServerSignature Off
    AddDefaultCharset utf-8
    ProxyPreserveHost On
    ProxyRequests Off
    ProxyPass /error/ !
    ProxyPass /icons/ !
    ProxyPass /favicon.ico !
    #ProxyPass /static/ !
    ProxyPass / http://127.0.0.1:8080/
    ProxyPassReverse / http://127.0.0.1:8080/
</VirtualHost>


apxs -c -i -a mod_proxy.c proxy_util.c
apxs -c -i -a mod_proxy_balancer.c
apxs -c -i -a mod_proxy_http.c
apxs -c -i -a mod_proxy_connect.c

你可能感兴趣的:(apache,C++,c,django,C#)