Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 103.129.222.194:443 ssl;
- root /usr/share/nginx/webserver/gonit;
- index index.html index.htm index.nginx-debian.html index.php;
- server_name www.gonitechnology.com;
- # ssl on;
- ssl_certificate /etc/cloudflare/Gonit.pem;
- ssl_certificate_key /etc/cloudflare/Gonit.key;
- location / {
- if (!-e $request_filename){
- rewrite ^(.*)$ /$1.php;
- }
- }
- location /id {
- if (!-e $request_filename){
- rewrite ^(.*)$ /$1.php;
- rewrite /id/lihat-pekerjaan/([^/]*)/([^/]*)/([^/]*)$ /id/lihat-pekerjaan.php?id=$1&date=$2&slug=$3 break;
- }
- error_page 400 401 402 403 404 405 406 407 408 409 410 500 501 502 503 504 505 506 507 508 509 510 https://www.gonitechnology.com/id/error;
- }
- location ~ \.php$ {
- try_files $uri = 404;
- include fastcgi_params;
- fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_intercept_errors on;
- fastcgi_split_path_info ^(.+\.php)(.*)$;
- fastcgi_hide_header X-Powered-By;
- }
- location ~ /\.ht {
- deny all;
- }
- location ~ \.css {
- add_header Content-Type text/css;
- }
- location ~ \.js {
- add_header Content-Type application/x-javascript;
- }
- location ~ \.(jpg|jpeg|gif|png|ico|html|xml|txt)$ {
- }
- }
- server {
- listen 103.129.222.194:443 ssl;
- server_name gonitechnology.com;
- return 301 $scheme://www.gonitechnology.com$request_uri;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement