Linux technical support - [email protected]


apache reverse proxy example

mods-available/proxy.conf

<IfModule mod_proxy.c>
ProxyRequests On
ProxyVia On
<Proxy *>
Order deny,allow
#Deny from all
Allow from all
</Proxy>
</IfModule>
# a2enmod proxy
# a2enmod proxy_http
<VirtualHost *:80>
    ServerAdmin [email protected]
    ProxyRequests off
    DocumentRoot /var/www
    ProxyPreserveHost Off

    ServerName   alexlinux.com

    LogLevel error

    ErrorLog  /var/log/apache2/error_alexlinux.com.log
    CustomLog /var/log/apache2/access_alexlinux.com.log combined

        ProxyPass / http://alexlinux-new.com/
        ProxyPassReverse / http://alexlinux-new.com/
</VirtualHost>

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>