{"id":15487534,"url":"https://github.com/virtubox/plesk-nginx-fascgi-cache-template","last_synced_at":"2025-04-22T17:41:22.014Z","repository":{"id":132823802,"uuid":"156995186","full_name":"VirtuBox/plesk-nginx-fascgi-cache-template","owner":"VirtuBox","description":"Custom Nginx WordPress VirtualHost template with Nginx fastcgi_cache for Plesk Onyx","archived":false,"fork":false,"pushed_at":"2023-02-27T16:49:39.000Z","size":30,"stargazers_count":16,"open_issues_count":1,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-19T07:53:21.110Z","etag":null,"topics":["fastcgi-cache","nginx","nginx-configuration","plesk","plesk-nginx","plesk-onyx","wordpress"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/VirtuBox.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-10T15:42:07.000Z","updated_at":"2023-09-28T15:18:12.000Z","dependencies_parsed_at":"2023-07-10T04:16:52.045Z","dependency_job_id":null,"html_url":"https://github.com/VirtuBox/plesk-nginx-fascgi-cache-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VirtuBox%2Fplesk-nginx-fascgi-cache-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VirtuBox%2Fplesk-nginx-fascgi-cache-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VirtuBox%2Fplesk-nginx-fascgi-cache-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VirtuBox%2Fplesk-nginx-fascgi-cache-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VirtuBox","download_url":"https://codeload.github.com/VirtuBox/plesk-nginx-fascgi-cache-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250288953,"owners_count":21405885,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fastcgi-cache","nginx","nginx-configuration","plesk","plesk-nginx","plesk-onyx","wordpress"],"created_at":"2024-10-02T06:40:46.426Z","updated_at":"2025-04-22T17:41:21.976Z","avatar_url":"https://github.com/VirtuBox.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nginx Fastcgi_cache custom template for Plesk Onyx\n\n## Features\n\n* Override default Nginx virtualhost template to work with WordPress in mode \"Nginx Only\"\n* set fastcgi_cache bypass rules globally on the server using the directive map instead of several \"if\".\n* add support for Nginx fastcgi_cache purge with Nginx-helper\n* Bypass cache on cookies or request_uri\n* add webp image rewrite support\n* Deny access to hidden files and directory (.git, .htaccess, etc ..)\n\n## Requirements\n\n* Nginx compiled with Nginx_cache_purge module : You can use [nginx-ee](https://virtubox.github.io/nginx-ee/) to compile Nginx\n\n**Custom template compatible with stock Nginx package shipped by Plesk, available here** : [nginx-stock](https://github.com/VirtuBox/plesk-nginx-fascgi-cache-template/tree/nginx-stock)\n\n## Limitations\n\n* Custom rules to bypass cache set in Plesk are not applied\n* fastcgi_cache template work only for wordpress\n\n## How to use this template\n\n1) Clone the repository\n\n```bash\ngit clone https://github.com/VirtuBox/plesk-nginx-fascgi-cache-template.git /usr/local/psa/admin/conf/templates/custom\n```\n\n2) Copy Nginx configuration in Nginx conf.d directory\n\n```bash\ncp -f /usr/local/psa/admin/conf/templates/custom/nginx-conf/* /etc/nginx/conf.d/\n```\n\n3) Reload nginx\n\n```bash\nnginx -t \u0026\u0026 service nginx reload\n```\n\n4) Apply new nginx virtualhost template\n\n```bash\n# let plesk detect custom template\nplesk repair web -n\n# rebuild vhost with custom template\nplesk repair web -y -domains-only\n```\n\n5) Disable Proxy mode in Plesk \u003e Yourdomain.tld \u003e Apache \u0026 nginx Settings\n\n6) Enable Nginx cache in Plesk \u003e Yourdomain.tld \u003e Apache \u0026 nginx Settings\n\n7) Login into WordPress \u0026 install [Nginx-helper](https://wordpress.org/plugins/nginx-helper/) plugin\n\n8) In Nginx-helper Settings, Enable Purge\n\n## How to update this template\n\nJust run :\n\n```bash\ngit -C /usr/local/psa/admin/conf/templates/custom pull origin master\n```\n\nAnd relaunch plesk repair web to apply changes :\n\n```bash\n# let plesk detect custom template\nplesk repair web -n\n# rebuild vhost with custom template\nplesk repair web -y -domains-only\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvirtubox%2Fplesk-nginx-fascgi-cache-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvirtubox%2Fplesk-nginx-fascgi-cache-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvirtubox%2Fplesk-nginx-fascgi-cache-template/lists"}