When migrating from/to a website running on Nginx, you need to upload a folder named kitconnect_xxx
(e.g., kitconnect_bca7d984) to the root directory of your website. This folder contains the kitconnect.php
file, which must be accessible via a public URL.
However, some Nginx servers are configured to restrict access to specific locations only. In such cases, you may need to manually update your Nginx configuration to allow direct access to the kitconnect.php
file.
Below is a sample configuration for servers running Nginx with PHP-FPM:
location ~ ^/kitconnect_[a-zA-Z0-9]+/kitconnect\.php$ { include fastcgi_params; fastcgi_pass 127.0.0.1:9000; fastcgi_index kitconnect.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; }
Instructions
- Open your Nginx configuration file (typically located in
/etc/nginx/sites-available/
or/etc/nginx/conf.d/
). - Add the configuration snippet above inside the appropriate server block.
- Adjust the
fastcgi_pass
path if your PHP-FPM socket is different. - Save the file and reload Nginx using this command:
sudo systemctl reload nginx
Important Notes
- This configuration assumes your server is running PHP-FPM, which is the most common setup for Nginx-based PHP environments.
- If your server uses a different setup (e.g., CGI, Apache proxy, custom Nginx routing), this configuration may not work as-is.
- In such cases, please consult your system administrator or hosting provider for assistance in making the
kitconnect.php
file publicly accessible.