Skip to content

dejitaru/subdomain-nginx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

subdomain-nginx

Bash script to create or delete a domain for nginx and basic php and nginx configuration

How to use it

make the file executable, so it can be run from a terminal

chown +x subdomain.sh

Adding a domain

./subdomain.sh add mydomain.com

Removing a domain

./subdomain.sh remove mydomain.com

After removing domain it will ask if you also want to remove the files(located in /var/www/mydomain.com and its own folder)

To use it globally

If you want to use it globally, move the script to your $PATH folder. To find your $PATH folder execute:

echo $PATH

About

Bash script to create a subdomain for nginx and basic php and nginx configuration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages