Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen *:80;
- server_name erp.local.expresscredit.co.zm;
- root /home/anduser/www/mango_erp_zm/public;
- index index.html index.php tindex.php;
- error_log /home/anduser/www/logs/mango_erp_zm/error.log;
- access_log /home/anduser/www/logs/mango_erp_zm/access.log combined;
- location ~ /.well-known {
- allow all;
- }
- location ~ /\. {
- deny all;
- access_log off;
- log_not_found off;
- }
- location = /favicon.ico {
- log_not_found off;
- access_log off;
- }
- location = /robots.txt {
- rewrite /robots.txt /robots.php;
- allow all;
- log_not_found off;
- access_log off;
- }
- location ~* \.(jpg|jpeg|gif|png|bmp|ico|pdf|flv|svg|swf|exe|html|htm|txt|css|js|pjpeg|woff|ttf|eot|doc|docx)$ {
- access_log off;
- log_not_found off;
- expires 360d;
- add_header Access-Control-Allow-Origin *;
- }
- location ~ \.php$ {
- try_files /385f4dba8548ecb04fc442d620c01520.htm @php;
- }
- location / {
- try_files $uri $uri/ /index.php?$args;
- }
- location @php {
- try_files $uri =404;
- include /etc/nginx/fastcgi_params;
- fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_intercept_errors on;
- fastcgi_param APPLICATION_ENV development;
- fastcgi_param COUNTRY_ENV zm;
- fastcgi_param BEANSTALK_PORT 11300;
- fastcgi_read_timeout 2400;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement