Created
November 27, 2022 07:02
-
-
Save serverok/1ef2092d67b5b495e2af547c9dc04a2d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 167.114.61.116:80; | |
listen 443 ssl; | |
ssl_certificate /etc/ssl/scriptinstallation.in.crt; | |
ssl_certificate_key /etc/ssl/scriptinstallation.in.key; | |
server_name www.scriptinstallation.in; | |
access_log /var/log/nginx/scriptinstallation.in.log; | |
root /home/scriptinstallation.in/public_html; | |
index index.php; | |
client_max_body_size 5m; | |
client_body_timeout 60; | |
location / { | |
try_files $uri $uri/ @rewrite; | |
} | |
location @rewrite { | |
rewrite ^/(.*).html$ /index.php?name=$1&$args; | |
} | |
location ~ \.php$ { | |
fastcgi_keep_conn on; | |
fastcgi_pass unix:/var/run/php5-fpm.sock; | |
fastcgi_index index.php; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
include /etc/nginx/fastcgi_params; | |
} | |
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ { | |
expires max; | |
log_not_found off; | |
} | |
location ^~ /cache/ { | |
deny all; | |
} | |
location ^~ /.git { | |
deny all; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment