Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name 10.233.217.137;
- #charset koi8-r; access_log /var/log/nginx/host.access.log main;
- add_header X-Frame-Options DENY;
- add_header X-Content-Type-Options nosniff;
- add_header X-XSS-Protection "1; mode=block";
- add_header Cache-Control no-cache,no-store,private;
- #root /etc/nginx/html;
- index index.php index.html index.htm;
- location / {
- try_files $uri $uri/ $uri.html $uri.php$is_args$query_string;
- }
- location /fsm_api/public {
- try_files $uri $uri/ $uri.html /fsm_api/public/index.php?$query_string;
- }
- #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:80;
- #}
- # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
- #
- location ~ \.php$ {
- try_files $uri =404;
- #fastcgi_split_path_info ^(.+\.php)(/.+)$;
- #root html/fsm;
- fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include fastcgi_params;
- #fastcgi_intercept_errors on;
- }
- # 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