Compare commits
2 Commits
671bfc5a99
...
5de2b67275
| Author | SHA1 | Date | |
|---|---|---|---|
|
5de2b67275
|
|||
|
1857bd66c5
|
@@ -79,7 +79,9 @@ if [ -f /ssh/authorized_keys ] ; then
|
|||||||
chown "${USERNAME}:${GROUPNAME}" /ssh/authorized_keys
|
chown "${USERNAME}:${GROUPNAME}" /ssh/authorized_keys
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chmod 0700 "${WEBROOT}/.ssh"
|
if [ -d "${PATH_WEBROOT}/.ssh" ] ; then
|
||||||
|
chmod 0700 "${PATH_WEBROOT}/.ssh"
|
||||||
|
fi
|
||||||
/usr/sbin/sshd -e
|
/usr/sbin/sshd -e
|
||||||
|
|
||||||
cat > /etc/nginx/conf.d/user.conf <<EOF
|
cat > /etc/nginx/conf.d/user.conf <<EOF
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ worker_processes auto;
|
|||||||
pcre_jit on;
|
pcre_jit on;
|
||||||
|
|
||||||
# Configures default error logger.
|
# Configures default error logger.
|
||||||
error_log /data/logs/nginx-error.log warn;
|
error_log /var/log/nginx/error.log warn;
|
||||||
|
|
||||||
# Includes files with directives to load dynamic modules.
|
# Includes files with directives to load dynamic modules.
|
||||||
include /etc/nginx/modules/*.conf;
|
include /etc/nginx/modules/*.conf;
|
||||||
@@ -96,7 +96,7 @@ http {
|
|||||||
'"$http_user_agent" "$http_x_forwarded_for"';
|
'"$http_user_agent" "$http_x_forwarded_for"';
|
||||||
|
|
||||||
# Sets the path, format, and configuration for a buffered log write.
|
# Sets the path, format, and configuration for a buffered log write.
|
||||||
access_log /data/logs/nginx-access.log main;
|
access_log /var/log/nginx/access.log main;
|
||||||
|
|
||||||
|
|
||||||
# Includes virtual hosts configs.
|
# Includes virtual hosts configs.
|
||||||
|
|||||||
Reference in New Issue
Block a user