Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Stu last won the day on July 1 2018

Stu had the most liked content!

About Stu

  • Rank
    Advanced Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. @samuel.hautcoeur who did you find? Are you happy with their work? I'd be interested to know, thanks
  2. Hi Paul, yes at the moment it is a manual process. I am doing it exactly as you describe using a pool of internal IP's. Each internal IP corresponds to a port on a predefined list that I have already configured in my firewall. for example intenal IP allocated to the VPS = to access that as a customer they will connect to ExternalIP :2010 then = ExternalIP :2011 etc... I understand the module has no way of knowing how I have configured my port forwarding and the list of services each host could require is infinite so there can't be anything predefined built in that would suite everyone. I'm more asking how I could achieve sending the external IP and port in the provisioning email instead of the internal IP. Something like... if provisioned IP = then send customer ExternalIP :2010 Some kind of table where I could enter IP and port forward would be great, is that doable? I imagine I would need to commission someone to make an addon for that, which is fine if its doable. failing that, is there another way to achieve it? Thanks for all your help everyone, I know this is an unusual way of doing things, but it suits my particular situation.
  3. @Paul is probably well placed to know lol
  4. yes but it can only provision with different IP's for each server. If I want to have a shared IP for all VPS's using different ports per VPS, how can I auto provision that?
  5. Hi, I have a specific target for my VPS's and I want to use a single server IP and a pool of internal IP's. When provisioning the VPS is it possible to provide the customer with the main server IP and a Port? I have the everything working as I need it to be in terms of IP's, Ports, VPS's etc, but I am manually giving the customers the login details at the moment. Is there a way to automate the provisioning in this situation? I am currently using virtualizor, but with SolusVM being taken over recently I am hoping to one day switch back to that. Thanks for your help
  6. Stu

    Unable to change Theme

    To follow up on this, I've set nginx to pass everything to apache and it now works. So this is clearly nginx caching causing the behaviour. Thanks
  7. Stu

    Unable to change Theme

    Hi, I have tried to change both admin and client themes, but the changes are not taking affect. I am running Nginx infront of apache and blesta is in a subdir /portal My first thought is cache, so I deleted the Nginx cache folder, I cleared my browser cache, I purged cloudflares cache, but still no joy. Is there other caching going on somewhere in Blesta that I need to clear? When I select a new theme no colours change, but if I put a custom url to the logo that works. I'm missing something obvious I'm sure. Thanks
  8. Stu

    4.2.2 Nginx Installation

    Hi All, I'm coming back to my blesta project again after a long time away. We are now on v4.2.2 and my previous method of getting blesta working on Nginx no longer appears to work. I have removed Blesta's .htaccess file from the Blesta root dir, now I'm redirected to this... https://mysite.com/blesta/index.php/install I think the fix for this used to be... Next, update /lib/init.php and make the following change: // define("HTACCESS", file_exists(ROOTWEBDIR . ".htaccess")); define("HTACCESS", true); but this line no longer appears in /lib/init.php so is there a new fix for this or is this no longer needed and I need to do something different or am I way off and have missed something else? Thanks all :)
  9. HI, just coming back to my blesta project after a long time away from it. Is this tutorial still accurate for 4.2.0?
  10. Stu

    Nginx Config

    yeah I had similar before. Give the try_files way a go. It should make a noticable difference in speed. Using if statements and rewrites is slower because they are read and processed for each request.
  11. Very useful addon and well coded. I wouldn't be without it.
  12. Reissued the blesta_cms license and everything is fine again. Thanks for your help @cyandark and @Licensecart
  13. oh oops forgot I had installed that, I thought I was still working on a clean blesta install lol. My bad, thanks guys
  14. Blesta is informing me I have an invalid license... my server setup was nginx + php-fpm and everything was working fine. I have just added Varnish Cache and now this issue has appeared. My setup now goes like this... Incoming Https -> nginx -> varnish -> nginx -> php-fpm My original thought was that the origin IP wasnt getting passed through to the end and blesta was just reading the IP as This was the case at first of course, but I have cured that by adding... unset req.http.X-Forwarded-For; set req.http.X-Forwarded-For = client.ip; and set_real_ip_from; and proxy_set_header X-Real-IP $remote_addr; all in the relevant places as necessary. I have confirmed the origin IP is correctly forwarded to the end by logging in with my test client and checking the geoIP shows the correct IP (it does) I re-issued my license but that didn't help. So I'm now stuck. Anyone know what else I can do to diagnose this issue? Thanks
  15. Stu

    Nginx Config

    Messed with this for a while after posting the question. I have come up with the following which seems to work.... location / { try_files $uri $uri/ /index.php?$args; } location ~ \.php$ { try_files $uri =404; fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_connect_timeout 60; fastcgi_send_timeout 180; fastcgi_read_timeout 180; fastcgi_buffer_size 128k; fastcgi_buffers 4 256k; # fastcgi_busy_buffers_size 256k; fastcgi_temp_file_write_size 256k; fastcgi_intercept_errors on; fastcgi_pass; fastcgi_index index.php; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } # Deny all attempts to access hidden files # such as .htaccess, .htpasswd, .DS_Store (Mac). location ~ /\. { deny all; } # Disallow access to any file with .pdt extension location ~ (\.pdt) { return 403; } } If anyone wants to add to this please feel free to post.
  • Create New...