Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
3 files changed, 17 insertions, 0 deletions
-rw-r--r--devrix-job-board.conf6
-rwxr-xr-xmove-to-www.sh10
-rw-r--r--src/index.php1
diff --git a/devrix-job-board.conf b/devrix-job-board.conf
new file mode 100644
index 0000000..12bee1c
--- /dev/null
+++ b/devrix-job-board.conf
@@ -0,0 +1,6 @@
+<VirtualHost *:80>
+ ServerAdmin webmaster@localhost
+ DocumentRoot /var/www/devrix-job-board
+ ServerName djb.local
+ ServerAlias djb.local
+</VirtualHost>
diff --git a/move-to-www.sh b/move-to-www.sh
new file mode 100755
index 0000000..c427606
--- /dev/null
+++ b/move-to-www.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+DEFAULT_DIR="/var/www/devrix-job-board/"
+
+if [ ! -d "$DEFAULT_DIR" ]; then
+ sudo -u www-data mkdir $DEFAULT_DIR
+fi
+
+sudo cp -R ./src/. $DEFAULT_DIR
+sudo chown -R www-data:www-data $DEFAULT_DIR*
diff --git a/src/index.php b/src/index.php
new file mode 100644
index 0000000..d87d760
--- /dev/null
+++ b/src/index.php
@@ -0,0 +1 @@
+<p>Hello</p>