Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- root /var/web/www;
- # Add index.php to the list if you are using PHP
- index index.php index.html index.htm index.nginx-debian.html;
- server_name ganertoriradio.live www.ganertoriradio.live;
- error_page 404 /custom_404.html;
- location = /custom_404.html {
- root /home/pro/common/error_pages;
- internal;
- }
- location / {
- # First attempt to serve request as file, then
- # as directory, then fall back to displaying a 404.
- try_files $uri $uri/ =404;
- }
- # pass PHP scripts to FastCGI server
- #
- location ~ \.php$ {
- include snippets/fastcgi-php.conf;
- # # With php-fpm (or other unix sockets):
- fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;
- # # With php-cgi (or other tcp sockets):
- # fastcgi_pass 127.0.0.1:9000;
- }
- # deny access to .htaccess files, if Apache's document root
- # concurs with nginx's one
- #
- #location ~ /\.ht {
- # deny all;
- #}
- }
- server {
- listen 443 ssl;
- server_name ganertoriradio.live www.ganertoriradio.live;
- ssl on;
- ssl_certificate /home/pro/certs/ganertoriradio/ganertoriradio.live.pem;
- ssl_certificate_key /home/pro/certs/ganertoriradio/ganertoriradio.live.key;
- root /var/web/www;
- index index.php index.html index.htm index.nginx-debian.html;
- gzip on;
- gzip_vary on;
- gzip_types text/html application/x-javascript text/css application/javascript text/javascript text/plain text/xml application/json application/vnd.ms-fontobject application/x-font-opentype application/x-font-truetype application/x-font-ttf application/xml font/eot font/opentype font/otf image/svg+xml image/vnd.microsoft.icon;
- gzip_disable "MSIE [1-6]\.";
- client_max_body_size 50m;
- location ~ \.php$ {
- try_files $uri /index.php =404;
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
- fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_read_timeout 900;
- include fastcgi_params;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement