34 lines
842 B
Plaintext
34 lines
842 B
Plaintext
|
|
#w0bm.com
|
|
server {
|
|
server_name _;
|
|
|
|
listen 8090;
|
|
|
|
root /opt/w0bm/public;
|
|
client_max_body_size 500M;
|
|
|
|
location ~ \.php$ {
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
fastcgi_index index.php;
|
|
include fastcgi.conf;
|
|
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_script_name;
|
|
#fastcgi_param GEOIP_ADDR $remote_addr;
|
|
#fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
fastcgi_pass unix:/run/php/php7.1-fpm.sock;
|
|
}
|
|
location ~* \.(?:css|js)$ {
|
|
gzip on;
|
|
expires 1y;
|
|
add_header Cache-Control "public";
|
|
}
|
|
location ~* \.(?:jpg|jpeg|gif|png|ico|svg)$ {
|
|
expires 1M;
|
|
access_log off;
|
|
add_header Cache-Control "public";
|
|
}
|
|
location / {
|
|
try_files $uri $uri/ /index.php?$args;
|
|
}
|
|
|
|
} |