Skip to content

Instantly share code, notes, and snippets.

View rajeshisnepali's full-sized avatar
:octocat:
Focused

Rajesh Chaudhary rajeshisnepali

:octocat:
Focused
View GitHub Profile
@rajeshisnepali
rajeshisnepali / make-server-block.sh
Last active December 28, 2019 14:00
This script makes server block including naming of hostname to /etc/hosts [nginx]
#!/bin/bash
# to be able to work this function globally, copy or create link in /usr/local/bin
# --------------------------------------------------------------------
makeServerBlock() {
try_files='try_files $uri $uri/ /index.php?$query_string;'
block="/etc/nginx/sites-available/$domain"