diff options
-rwxr-xr-x | scripts/httpd-configure.sh | 12 | ||||
-rwxr-xr-x | scripts/httpd-restart.sh | 3 | ||||
-rwxr-xr-x | scripts/httpd-start.sh | 3 | ||||
-rwxr-xr-x | scripts/httpd-stop.sh | 3 |
4 files changed, 21 insertions, 0 deletions
diff --git a/scripts/httpd-configure.sh b/scripts/httpd-configure.sh new file mode 100755 index 0000000..b7e4744 --- /dev/null +++ b/scripts/httpd-configure.sh @@ -0,0 +1,12 @@ +#!/bin/sh -x + +cat > /etc/httpd/conf.d/tet.conf << EOF +Alias /tet/ "/root/CS/tet/" + +<Directory "/root/CS/tet"> + Options Indexes MultiViews FollowSymLinks + AllowOverride None + Order allow,deny + Allow from all +</Directory> +EOF diff --git a/scripts/httpd-restart.sh b/scripts/httpd-restart.sh new file mode 100755 index 0000000..f9aa02e --- /dev/null +++ b/scripts/httpd-restart.sh @@ -0,0 +1,3 @@ +#!/bin/sh -x + +service httpd restart diff --git a/scripts/httpd-start.sh b/scripts/httpd-start.sh new file mode 100755 index 0000000..03ee293 --- /dev/null +++ b/scripts/httpd-start.sh @@ -0,0 +1,3 @@ +#!/bin/sh -x + +service httpd start diff --git a/scripts/httpd-stop.sh b/scripts/httpd-stop.sh new file mode 100755 index 0000000..9d47507 --- /dev/null +++ b/scripts/httpd-stop.sh @@ -0,0 +1,3 @@ +#!/bin/sh -x + +service httpd stop |