Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 18040;
- server_name myownserver;
- root /home/admirdante/www;
- index index.php index.html index.htm;
- charset utf-8;
- access_log off;
- error_log /dev/null;
- location ~ [^/]\.php(/|$) {
- fastcgi_split_path_info ^(.+?\.php)(/.*)$;
- if (!-f $document_root$fastcgi_script_name) {
- return 404;
- }
- # Mitigate https://httpoxy.org/ vulnerabilities
- fastcgi_param HTTP_PROXY "";
- fastcgi_index index.php;
- # include the fastcgi_param setting
- include conf/fastcgi_params;
- # SCRIPT_FILENAME parameter is used for PHP FPM determining
- # the script name. If it is not set in fastcgi_params file,
- # i.e. /etc/nginx/fastcgi_params or in the parent contexts,
- # please comment off following line:
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_pass unix:/etc/seedbox/user/admirdante/var/php7.0-fpm.sock;
- auth_basic "Private Area";
- auth_basic_user_file /home/admirdante/www/.htpasswd;
- }
- include proxy.d/*.conf;
- include error-pages.conf;
- location / {
- autoindex on;
- auth_basic "Private Area";
- auth_basic_user_file /home/admirdante/www/.htpasswd;
- }
- location ~ /\.ht {
- deny all;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement