Announcement

Collapse
No announcement yet.

Apache ProxyPass

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Apache ProxyPass

    Wondering if there are any Apache gurus out there who could explain this to me.

    I have to Raspberry Pis at home, I'm using the first one to host a website and mail server. All traffic comes in through this Pi (Pi #1).

    The second is running OwnCloud, and I have a proxypass set up on Pi #1 so that incoming traffic gets forwarded to the local IP address of Pi #2.

    Extract from /etc/apache2/sites-available/default
    Code:
    <VirtualHost *:80>
            ServerAdmin webmaster@samhobbs.co.uk
            ServerName owncloud.samhobbs.co.uk:80
            ProxyPass / http://192.168.1.110:80/
            ProxyPassReverse / http://192.168.1.110:80/
    </VirtualHost>
    Extract from /etc/apache2/sites-available/default-ssl
    Code:
    <VirtualHost *:443>
            ServerAdmin webmaster@samhobbs.co.uk
            ServerName owncloud.samhobbs.co.uk
    
            SSLEngine on
            SSLProxyEngine On
            SSLCertificateFile /etc/apache2/ssl/wildcard.samhobbs.co.uk.cert
            SSLCertificateKeyFile /etc/apache2/ssl/wildcard.samhobbs.co.uk.key
    
            ProxyPreserveHost On
            ProxyPass / https://192.168.1.110:443/
            ProxyPassReverse / https://192.168.1.110:443/
    </VirtualHost>
    I logged in to both servers during a file transfer and this is pretty typical:

    Click image for larger version

Name:	owncloud-sync-top.jpg
Views:	1
Size:	129.1 KB
ID:	648033

    CPU % is much higher on Pi #1 than I thought it would be. 50% is pretty typical.

    My question is, why is Pi #1 doing so much work? CPU usage is only about 20% lower than it is on Pi #2, is there any point in putting OwnCloud on a separate Pi?

    I've also had Pi #1 lock up a couple of times - couldn't open a SSH session and had to do a hard reset. Wondering why this happened to #1 and not #2?

    Feathers
    samhobbs.co.uk
Working...
X