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 e7b6be8 commit 9f5021eCopy full SHA for 9f5021e
nodeapp.php
@@ -140,6 +140,15 @@ public function priv_suspend_web_domain( $args ) {
140
$user = $args[0];
141
$domain = $args[1];
142
$nodeapp_folder = "/home/$user/web/$domain/nodeapp";
143
+
144
+ // Remove prior nginx config files; duplicate location "/" will cause nginx to fail
145
+ if ( file_exists( "/home/$user/conf/web/$domain/nginx.ssl.conf_nodeapp" ) ) {
146
+ unlink( "/home/$user/conf/web/$domain/nginx.ssl.conf_nodeapp" );
147
+ }
148
+ if ( file_exists( "/home/$user/conf/web/$domain/nginx.conf_nodeapp" ) ) {
149
+ unlink( "/home/$user/conf/web/$domain/nginx.conf_nodeapp" );
150
151
152
$this->shutdown_apps( $nodeapp_folder );
153
return $args;
154
}
0 commit comments