diff --git a/nginx.conf b/nginx.conf index bb7b463..492e7fb 100644 --- a/nginx.conf +++ b/nginx.conf @@ -23,8 +23,6 @@ http { listen 80; server_name my.app; - root /app; - location / { root /usr/share/nginx/html; try_files $uri $uri/ =404; diff --git a/www/app.html b/www/app.html index d511639..b3137b0 100644 --- a/www/app.html +++ b/www/app.html @@ -5,5 +5,8 @@

Application HTML

+ +
+ \ No newline at end of file diff --git a/www/app.js b/www/app.js new file mode 100644 index 0000000..52c1322 --- /dev/null +++ b/www/app.js @@ -0,0 +1,7 @@ +function helloFromJS() { + document.getElementById('app-js').innerHTML = 'Application JS'; +} + +window.onload = () => { + helloFromJS(); +} \ No newline at end of file