Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name localhost;
- add_header X-Frame-Options SAMEORIGIN;
- add_header X-Content-Type-Options nosniff;
- add_header X-XSS-Protection "1; mode=block";
- add_header Strict-Transport-Security "max-age=31536000; includeSubdomains;";
- #charset koi8-r;
- access_log /var/log/nginx/access.log main;
- error_log /var/log/nginx/error.log;
- root /usr/share/nginx/html/passbolt/app/webroot;
- index index.php;
- location / {
- try_files $uri $uri/ /index.php?$args;
- }
- #error_page 404 /404.html;
- # redirect server error pages to the static page /50x.html
- #
- error_page 500 502 503 504 /50x.html;
- location = /50x.html {
- root /usr/share/nginx/html;
- }
- # proxy the PHP scripts to Apache listening on 127.0.0.1:80
- #
- #location ~ \.php$ {
- # proxy_pass http://127.0.0.1;
- #}
- # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
- #
- location ~ \.php$ {
- try_files $uri =404;
- include /etc/nginx/fastcgi_params;
- fastcgi_pass unix:/run/php-fpm/www_71.sock;
- fastcgi_index index.php;
- #fastcgi_split_path_info ^(.+\.php)(.+)$;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- #include fastcgi_params;
- #fastcgi_param SERVER_NAME $http_host;
- }
- location ~* \.(jpe?g|woff|woff2|ttf|gif|png|bmp|ico|css|js|json|pdf|zip|htm|html|docx?|xlsx?|pptx?|txt|wav|swf|svg|avi|mp\d)$ {
- #access_log off;
- #log_not_found off;
- try_files $uri /app/webroot/$uri /index.php?$args;
- }
- # deny access to .htaccess files, if Apache's document root
- # concurs with nginx's one
- #
- #location ~ /\.ht {
- # deny all;
- #}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement