
server {listen 80;server_name omo.moe;return 301 https://$server_name$request_uri;if (!-e $request_filename) {rewrite ^(.*)$ /index.php$1 last;}}server {listen 80;listen [::]:80 default_server;root /dir/you/set;index index.html index.htm index.php;#charset koi8-r;access_log /var/log/nginx/dormain.com.access.log main;
listen 443 ssl http2 default_server;ssl on;ssl_certificate "/dir/you/set/cer.crt";ssl_certificate_key "/dir/you/set/key.key";ssl_session_timeout 10m;ssl_protocols TLSv1 TLSv1.1 TLSv1.2;ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;ssl_prefer_server_ciphers on;
error_page 404 /404.html;error_page 500 502 503 504 /50x.html;location = /50x.html {root /usr/share/nginx/html;}
location ~ .php {fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;fastcgi_index index.php;include fastcgi_params;fastcgi_split_path_info ^((?U).+.php)(/?.+)$;fastcgi_param PATH_INFO $fastcgi_path_info;fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;}location ~ ^.+.php {fastcgi_split_path_info ^(.+.php)(.*)$;fastcgi_param PATH_INFO $fastcgi_path_info;fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;}location ~ /.ht {deny all;}location ~ .*.(gif|jpg|jpeg|png|bmp|swf)${expires 15d;}location ~ .*.(js|css)?${expires 1d;}}