-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from tufanbarisyildirim/issue-17
Rework variable & keyword
- Loading branch information
Showing
6 changed files
with
216 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
location / { | ||
set $serve_URL $fullurl${uri}index.html; | ||
try_files $serve_URL $uri $uri/ /index.php$is_args$args; | ||
} | ||
# deny access to xmlrpc.php - https://kinsta.com/blog/xmlrpc-php/ | ||
location ~* ^/xmlrpc.php$ { | ||
return 403; | ||
} | ||
location ~ \.php$ { | ||
include snippets/fastcgi-php.conf; | ||
fastcgi_param PHP_VALUE "open_basedir=$document_root:/tmp;\nerror_log=/public_html/logs/demo1-php_errors.log;"; | ||
fastcgi_pass unix:/run/php/php7.4-fpm.sock; | ||
} | ||
location /wp-content/uploads/ { | ||
location ~ .(aspx|php|jsp|cgi)$ { | ||
return 410; | ||
} | ||
} | ||
#location ~ \.pdf$ { rewrite .* /custom/pdf_auth.php; } | ||
location ~* \.(css|gif|ico|jpeg|jpg|js|png|woff|woff2|ttf|ttc|otf|eot)$ { | ||
# https://nginx.org/en/docs/http/ngx_http_headers_module.html | ||
expires 30d; | ||
# https://nginx.org/en/docs/http/ngx_http_core_module.html#log_not_found | ||
log_not_found off; | ||
} | ||
# deny access to .htaccess files | ||
location ~ /\.ht { | ||
deny all; | ||
} | ||
location ~ ^/(status)$ { | ||
# https://www.tecmint.com/enable-monitor-php-fpm-status-in-nginx/ | ||
allow 127.0.0.1; | ||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
fastcgi_index index.php; | ||
include fastcgi_params; | ||
fastcgi_pass unix:/run/php/php7.4-fpm.sock; | ||
} | ||
location /.well-known/acme-challenge { | ||
alias /public_html/certbot_temp/.well-known/acme-challenge; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
location / { | ||
set $serve_URL $fullurl${uri}index.html; | ||
try_files $serve_URL $uri $uri/ /index.php$is_args$args; | ||
|
||
} | ||
|
||
location ~* ^/xmlrpc.php$ { return 403; } # deny access to xmlrpc.php - https://kinsta.com/blog/xmlrpc-php/ | ||
|
||
location ~ \.php$ { | ||
|
||
include snippets/fastcgi-php.conf; | ||
fastcgi_param PHP_VALUE "open_basedir=$document_root:/tmp;\nerror_log=/public_html/logs/demo1-php_errors.log;"; | ||
fastcgi_pass unix:/run/php/php7.4-fpm.sock; | ||
|
||
} | ||
|
||
location /wp-content/uploads/ { | ||
|
||
location ~ .(aspx|php|jsp|cgi)$ { return 410; } | ||
#location ~ \.pdf$ { rewrite .* /custom/pdf_auth.php; } | ||
|
||
} | ||
|
||
location ~* \.(css|gif|ico|jpeg|jpg|js|png|woff|woff2|ttf|ttc|otf|eot)$ { | ||
|
||
expires 30d; # https://nginx.org/en/docs/http/ngx_http_headers_module.html | ||
log_not_found off; # https://nginx.org/en/docs/http/ngx_http_core_module.html#log_not_found | ||
|
||
} | ||
|
||
location ~ /\.ht { deny all; } # deny access to .htaccess files | ||
|
||
location ~ ^/(status)$ { | ||
# https://www.tecmint.com/enable-monitor-php-fpm-status-in-nginx/ | ||
allow 127.0.0.1; | ||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
fastcgi_index index.php; | ||
include fastcgi_params; | ||
fastcgi_pass unix:/run/php/php7.4-fpm.sock; | ||
} | ||
|
||
location /.well-known/acme-challenge { | ||
alias /public_html/certbot_temp/.well-known/acme-challenge; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
location / { | ||
set $serve_URL $fullurl${uri}index.html; | ||
try_files $serve_URL $uri $uri/ /index.php$is_args$args; | ||
|
||
} | ||
|
||
location ~* ^/xmlrpc.php$ { return 403; } # deny access to xmlrpc.php - https://kinsta.com/blog/xmlrpc-php/ | ||
|
||
location ~ \.php$ { | ||
|
||
include snippets/fastcgi-php.conf; | ||
fastcgi_param PHP_VALUE "open_basedir=$document_root:/tmp;\nerror_log=/public_html/logs/demo1-php_errors.log;"; | ||
fastcgi_pass unix:/run/php/php7.4-fpm.sock; | ||
|
||
} | ||
|
||
location /wp-content/uploads/ { | ||
|
||
location ~ .(aspx|php|jsp|cgi)$ { return 410; } | ||
#location ~ \.pdf$ { rewrite .* /custom/pdf_auth.php; } | ||
|
||
} | ||
|
||
location ~* \.(css|gif|ico|jpeg|jpg|js|png|woff|woff2|ttf|ttc|otf|eot)$ { | ||
|
||
expires 30d; # https://nginx.org/en/docs/http/ngx_http_headers_module.html | ||
log_not_found off; # https://nginx.org/en/docs/http/ngx_http_core_module.html#log_not_found | ||
|
||
} | ||
|
||
location ~ /\.ht { deny all; } # deny access to .htaccess files | ||
|
||
location ~ ^/(status)$ { | ||
# https://www.tecmint.com/enable-monitor-php-fpm-status-in-nginx/ | ||
allow 127.0.0.1; | ||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
fastcgi_index index.php; | ||
include fastcgi_params; | ||
fastcgi_pass unix:/run/php/php7.4-fpm.sock; | ||
} | ||
|
||
location /.well-known/acme-challenge { | ||
alias /public_html/certbot_temp/.well-known/acme-challenge; | ||
} |