manoaratefy / ispconfig3-varnish

This ISPConfig 3 plugin implements Varnish as reverse proxy, NGINX as SSL Termination and Apache as backend.
MIT License
10 stars 4 forks source link

Few things I had to do.. #2

Closed creationshop closed 4 years ago

creationshop commented 4 years ago

Hey thanks for the fantastic work you did. I ran in to a few things consistently so wanted to share:

Some issues I ran in to-

  1. The symlink isn't being made between the ispconfig plugins available and the enabled folders. If you find that no sites are being made in nginx>sites-enabled then this fixes that- ln -s /usr/local/ispconfig/server/plugins-available/varnish_plugin.inc.php /usr/local/ispconfig/server/plugins-enabled/varnish_plugin.inc.php

(do this after item 5, below)

  1. the sites-enable and sites-available folders aren't being created at installation of nginx - cd /etc/nginx mkdir sites-enabled sites-available

  2. delete the default.conf from /etc/nginx/conf.d/

  3. edit the ispconfig.conf and change the listening ports. nano 000-ispconfig.conf at the bottom you need to change 80 to 6080 and 443 to 6443

  4. cp'ing the folder gives an error. cp - R is what worked for me: cp -r etc/* /etc/

then go to tools > sync and sync the sites as instructed

creationshop commented 4 years ago

You could also see this error on restarting nginx; nginx: [emerg] cannot load certificate "/var/www/clients/client0/web50/ssl/-le.crt":

the solution for me was to go to the sites view in the isp cp, select the domain, and go to the ssl tab and enable spdy. if you dont have a spdy option there, go to server settings and enable it at the ssl area.

manoaratefy commented 4 years ago

Hello,