Skip to content

Instantly share code, notes, and snippets.

View RatulHasan's full-sized avatar
🎯
Focusing

Ratul Hasan RatulHasan

🎯
Focusing
View GitHub Profile
@RatulHasan
RatulHasan / create_nginx_config.sh
Last active January 6, 2024 21:21
Just enter folder name and index.php file path to dynamically create `.test` domain in nginx server
# sudo find / -name "create_nginx_config.sh"
# alias newdomain="/path/to/create_nginx_config.sh"
# source ~/.zshrc
#!/bin/bash
read -p "Enter domain folder name (without .test): " domain_name
read -p "Enter index.php path: " path_name
if [ -z "$domain_name" ]; then