Nginx Config Generator for WordPress
Welcome to the Nginx Config Generator for WordPress repository! This bash script simplifies the process of creating an optimized Nginx configuration file for your WordPress website. Enhance performance, strengthen security, and seamlessly integrate with PHP 8.2.
- Automatically generates an Nginx configuration file specific to your WordPress setup.
- Optimizes performance with gzip compression and fastcgi buffering.
- Enforces security measures to protect your WordPress installation.
- Eases integration with PHP 8.2 using the configured PHP-FPM socket.
- Simplifies management with predefined variables and intelligent routing rules.
- Nginx web server
- PHP-FPM (PHP-FPM 8.2 recommended)
- Bash
-
Clone this repository: https://github.com/mjohn50n/nginx-config.git
-
Modify the script variables in the script file according to your server configuration.
-
Run the script: ./nginx-config-generator.sh
-
The script will generate an Nginx vitural host configuration file for your WordPress website.
This project is licensed under the MIT License.
We welcome contributions from the open-source community! If you encounter any issues or have suggestions for improvements, please feel free to create an issue or submit a pull request.
Happy WordPress-ing with Nginx Config Generator!