Skip to content

Instantly share code, notes, and snippets.

@marcus-crane
Created April 14, 2017 09:11
Show Gist options
  • Save marcus-crane/690131cae235a64a538a0bce4169f53a to your computer and use it in GitHub Desktop.
Save marcus-crane/690131cae235a64a538a0bce4169f53a to your computer and use it in GitHub Desktop.
Super basic script for symlinking nginx configs. Usage: ./symconf {filename}
#!/bin/bash
sudo ln -s /etc/nginx/sites-available/$1 /etc/nginx/sites-enabled/$1
@marcus-crane
Copy link
Author

This works with apache2 of course. Just replace nginx with apache2 since the directory structures are (mostly) identical

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment