1 parent 190ce21 commit 6705cfdCopy full SHA for 6705cfd
1 file changed
.github/workflows/ovh.yaml
@@ -70,8 +70,18 @@ jobs:
70
mkdir -p ${HOME}/.ssh/
71
ssh-keyscan "${OVH_HOSTNAME}" >> "${HOME}/.ssh/known_hosts"
72
cat > .htaccess <<EOF
73
- Options -Indexes
+ Options -ExecCGI -Indexes
74
ErrorDocument 403 https://${MAIN_WEBSITE}
75
+
76
+ RemoveHandler .php .phtml .phar .cgi .pl .py
77
+ RemoveType .php .phtml .phar
78
79
+ <FilesMatch "\.(php|phtml|phar|cgi|pl|py)$">
80
+ Require all denied
81
+ </FilesMatch>
82
+ <IfModule mod_php.c>
83
+ php_flag engine off
84
+ </IfModule>
85
EOF
86
lftp --env-password -u ${OVH_USERNAME} sftp://${OVH_HOSTNAME} \
87
-e "put .htaccess -o /home/${OVH_USERNAME}/pulls/.htaccess"
0 commit comments