Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- }
- server {
- listen Censored;
- server_name Censored.ovh www.Censored.ovh;
- root /home/admin/web/Censored.ovh/public_html;
- index index.php index.html index.htm;
- access_log /var/log/nginx/domains/Censored.ovh.log combined;
- access_log /var/log/nginx/domains/Censored.ovh.bytes bytes;
- error_log /var/log/nginx/domains/Censored.ovh.error.log error;
- location / {
- location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
- expires max;
- }
- location ~ /(data|conf|bin|inc)/ {
- deny all;
- }
- location ~ /\.ht {
- deny all;
- }
- }
- location ~ [^/]\.php(/|$) {
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- if (!-f $document_root$fastcgi_script_name) {
- return 404;
- }
- fastcgi_pass 127.0.0.1:9001;
- fastcgi_index index.php;
- include /etc/nginx/fastcgi_params;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement