We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e24366c commit 786138fCopy full SHA for 786138f
virtualhost-nginx.sh
@@ -144,7 +144,7 @@ if [ "$action" == 'create' ]
144
ln -s $sitesAvailable$domain $sitesEnable$domain
145
146
### restart Nginx
147
- service nginx restart
+ systemctl reload nginx
148
149
### show the finished message
150
echo -e $"Complete! \nYou now have a new Virtual Host \nYour new host is: http://$domain \nAnd its located at $rootDir"
@@ -170,7 +170,7 @@ if [ "$action" == 'create' ]
170
rm $sitesEnable$domain
171
172
173
174
175
### Delete virtual host rules files
176
rm $sitesAvailable$domain
0 commit comments