diff --git a/resources/templates/provision/grandstream/gxw40xx/{$mac}.xml b/resources/templates/provision/grandstream/gxw40xx/{$mac}.xml
index 5583032feb..e79d12eec1 100644
--- a/resources/templates/provision/grandstream/gxw40xx/{$mac}.xml
+++ b/resources/templates/provision/grandstream/gxw40xx/{$mac}.xml
@@ -59,7 +59,14 @@
{/if}
+ {if $grandstream_config_server_path=="none"}
+
+ {elseif isset($grandstream_config_server_path)}
+ {$grandstream_config_server_path}
+ {else}
{$domain_name}{$project_path}/app/provision
+ {/if}
+