rocket-nginx icon indicating copy to clipboard operation
rocket-nginx copied to clipboard

Doesn't work on localhost when port is included in the url

Open saberkarimi opened this issue 3 years ago • 0 comments

Hi. I am using the latest version, I am working on my website on localhost via WSL (windows subsystem for Linux). My homepage URL is: https://localhost:83 I need to include the port because that is how Nginx works on WSL.

This is what I get in debug as file location: X-Rocket-Nginx-File: /var/www/imp/wp-content/cache/wp-rocket/localhost:83//fr///index.html X-Rocket-Nginx-Reason: File not cached X-Rocket-Nginx-Serving-Static: MISS

You see the port # is included in the path. But in my "/wp-content/cache/wp-rocket/" folder, only "localhost" is created as folder. No "localhost:83" and therefore static files can not be served.

Any help would be appreciated Kind regards

saberkarimi avatar Aug 25 '22 04:08 saberkarimi