Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- listen 443 ssl;
- ssl_certificate /etc/ssl/certs/dev.pem;
- ssl_certificate_key /etc/ssl/certs/dev.key;
- disable_symlinks off;
- client_max_body_size 50M;
- client_body_buffer_size 128k;
- charset utf-8;
- root /home/database/www/;
- server_name dev7new.dbservers.net ;
- index index.php;
- location ~* /\. {
- deny all;
- }
- # deny accessing php files for the /assets directory
- location ~ ^/assets/.*\.php$ {
- deny all;
- }
- location / {
- access_log /var/log/nginx/database.az.access.log;
- error_log /var/log/nginx/database.az.error.log;
- autoindex off;
- try_files $uri $uri/ /index.php?$args;
- }
- location ~ \.php$ {
- access_log off; #/var/log/nginx/access.log;
- log_not_found off;
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
- fastcgi_pass unix:/var/run/database.az.php7.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include fastcgi_params;
- try_files $uri =404;
- }
- location /nginx_ping {
- stub_status on;
- access_log off;
- allow 5.133.228.173;
- allow 85.132.13.146;
- deny all;
- include fastcgi_params;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_pass unix:/var/run/database.az.php7.sock;
- }
- location /nginx_status {
- stub_status on;
- access_log off;
- allow 5.133.228.173;
- allow 85.132.13.146;
- deny all;
- include fastcgi_params;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_pass unix:/var/run/database.az.php7.sock;
- }
- }
- server {
- listen 80;
- server_name dev7new.dbservers.net www.dev7new.dbservers.net;
- rewrite /(.*)$ https://dev7new.dbservers.net/$1 permanent;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement