Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- listen [::]:80;
- server_name mysite;
- root /var/www/mautic;
- index index.php index.html index.htm index.nginx-debian.html;
- location / {
- #try_files $uri $uri/ =404;
- try_files $uri $uri/ /index.php$uri$args;
- }
- location ~ .php$ {
- include snippets/fastcgi-php.conf;
- fastcgi_pass unix:/run/php/php7.4-fpm.sock;
- }
- location ~* ^/index.php {
- fastcgi_split_path_info ^(.+.php)(/.+)$;
- fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include fastcgi_params;
- fastcgi_buffer_size 128k;
- fastcgi_buffers 256 16k;
- fastcgi_busy_buffers_size 256k;
- fastcgi_temp_file_write_size 256k;
- }
- #location ~ email/(.*).gif {
- # try_files $uri /index.php?$args;
- #}
- }
- server {
- listen 443 ssl;
- listen [::]:443 ssl;
- server_name mysite;
- ssl_certificate /etc/nginx/keys/mysite.crt;
- ssl_certificate_key /etc/nginx/keys/mysite.key;
- ssl_protocols TLSv1.2;
- ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
- ssl_prefer_server_ciphers off;
- ssl_session_timeout 1d;
- ssl_session_cache shared:MozSSL:10m; # about 40000 sessions
- ssl_session_tickets off;
- root /var/www/mautic;
- index index.php index.html index.htm index.nginx-debian.html;
- location / {
- #try_files $uri $uri/ /index.php?q=$uri&$args =404;
- try_files $uri $uri/ /index.php$uri$args;
- }
- location ~ .php$ {
- include snippets/fastcgi-php.conf;
- fastcgi_pass unix:/run/php/php7.4-fpm.sock;
- }
- location ~* ^/index.php {
- fastcgi_split_path_info ^(.+.php)(/.+)$;
- fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include fastcgi_params;
- fastcgi_buffer_size 128k;
- fastcgi_buffers 256 16k;
- fastcgi_busy_buffers_size 256k;
- fastcgi_temp_file_write_size 256k;
- }
- #location ~ email/(.*).gif {
- # try_files $uri /index.php?$args;
- #}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement