Skip to content

Instantly share code, notes, and snippets.

View mrsof's full-sized avatar
💭
I may be slow to respond.

Sof mrsof

💭
I may be slow to respond.
  • France
  • 00:44 (UTC +02:00)
View GitHub Profile
@mrsof
mrsof / php.conf
Last active April 25, 2020 10:12 — forked from ethanpil/wp-secure.conf
Wordpress Security for NginX
# Normal PHP scripts
location ~ \.php$ {
# Verify that the file exists, redirect to index if not
try_files $uri $uri/ $fastcgi_script_name /index.php$uri&$args =404;
#fastcgi_keep_conn on;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
groupadd -g 54321 oinstall
groupadd -g 54322 dba
groupadd -g 54323 oper
useradd -u 54321 -g oinstall -G dba,oper -m -s binbash oracle
passwd oracle