/
etc
/
nginx
/
sites-available
/
Upload File
HOME
## # You should look at the following URL's in order to grasp a solid understanding # of Nginx configuration files in order to fully unleash the power of Nginx. # https://www.nginx.com/resources/wiki/start/ # https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/ # https://wiki.debian.org/Nginx/DirectoryStructure # # In most cases, administrators will remove this file from sites-enabled/ and # leave it as reference inside of sites-available where it will continue to be # updated by the nginx packaging team. # # This file will automatically load configuration files provided by other # applications, such as Drupal or Wordpress. These applications will be made # available underneath a path with that package name, such as /drupal8. # # Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples. ## # Default server configuration # server { listen 80 default_server; listen [::]:80 default_server; # SSL configuration # # listen 443 ssl default_server; # listen [::]:443 ssl default_server; # # Note: You should disable gzip for SSL traffic. # See: https://bugs.debian.org/773332 # # Read up on ssl_ciphers to ensure a secure configuration. # See: https://bugs.debian.org/765782 # # Self signed certs generated by the ssl-cert package # Don't use them in a production server! # # include snippets/snakeoil.conf; root /var/www/html; # Add index.php to the list if you are using PHP index index.html index.htm index.nginx-debian.html; server_name _; 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.4-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; #} } # Virtual Host configuration for example.com # # You can move that to a different file under sites-available/ and symlink that # to sites-enabled/ to enable it. # #server { # listen 80; # listen [::]:80; # # server_name example.com; # # root /var/www/example.com; # index index.html; # # location / { # try_files $uri $uri/ =404; # } #} server { gzip on; gzip_http_version 1.0; gzip_comp_level 5; gzip_min_length 1100; gzip_buffers 4 8k; gzip_proxied any; gzip_types text/css text/javascript text/xml text/plain text/x-component application/javascript application/json application/xml application/rss+xml font/truetype font/opentype application/vnd.ms-fontobject image/svg+xml; gzip_static on; gzip_proxied expired no-cache no-store private auth; gzip_disable "MSIE [1-6]\."; gzip_vary on; client_body_timeout 5s; client_header_timeout 5s; client_max_body_size 10M; location ~* \.(ico|css|js|gif|jpe?g|png|svg)$ { expires max; add_header Pragma public; add_header Cache-Control "public, must-revalidate, proxy-revalidate"; } access_log /var/log/nginx/myideas_access.log; error_log /var/log/nginx/myideas_error.log; root /var/www/myideas/; index index.php; server_name myideas.pt www.myideas.pt; location / { try_files $uri $uri/ /index.php?$args; } # Only allow images to be viewed. location /var/www/myideas/wp-content/uploads/ { types { image/gif gif; image/jpeg jpeg jpg; image/png png; text/plain txt; } default_type application/octet-stream; location ~ \.php$ { break; } } location ~* \.(eot|ttf|woff|woff2)$ { add_header Access-Control-Allow-Origin *; } location ~ \.user\.ini$ { deny all; } location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/var/run/php/php8.2-fpm.sock; fastcgi_index index.php; fastcgi_buffers 128 4096k; fastcgi_buffer_size 4096k; fastcgi_read_timeout 600; include fastcgi.conf; } listen 443 ssl; # managed by Certbot ssl_certificate /etc/letsencrypt/live/www.myideas.pt/fullchain.pem; # managed by Certbot ssl_certificate_key /etc/letsencrypt/live/www.myideas.pt/privkey.pem; # managed by Certbot include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot } server { # Enable gzip compression for better performance gzip on; gzip_comp_level 5; gzip_min_length 1100; gzip_types text/html; gzip_static on; gzip_vary on; # Client body and header timeout client_body_timeout 5s; client_header_timeout 5s; client_max_body_size 10M; # Custom 404 error page error_page 404 /error.html; # Static file caching location ~* \.(ico|css|js|gif|jpe?g|png|svg|mp4|woff|woff2)$ { expires max; add_header Cache-Control "public, must-revalidate, proxy-revalidate"; } # Serve only HTML files location ~* \.html$ { try_files $uri =404; add_header Cache-Control "public, must-revalidate, proxy-revalidate"; expires max; } # Root directory and index root /var/www/candidaturas_turismofundos_pt/; index index.html; server_name candidaturas.turismofundos.pt; listen 443 ssl; # managed by Certbot ssl_certificate /etc/letsencrypt/live/candidaturas.turismofundos.pt/fullchain.pem; # managed by Certbot ssl_certificate_key /etc/letsencrypt/live/candidaturas.turismofundos.pt/privkey.pem; # managed by Certbot include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot } server { # Enable gzip compression for better performance gzip on; gzip_comp_level 5; gzip_min_length 1100; gzip_types text/html; gzip_static on; gzip_vary on; # Client body and header timeout client_body_timeout 5s; client_header_timeout 5s; client_max_body_size 10M; # Custom 404 error page error_page 404 /error.html; # Static file caching location ~* \.(ico|css|js|gif|jpe?g|png|svg|mp4|woff|woff2)$ { expires max; add_header Cache-Control "public, must-revalidate, proxy-revalidate"; } # Serve only HTML files location ~* \.html$ { try_files $uri =404; add_header Cache-Control "public, must-revalidate, proxy-revalidate"; expires max; } # Root directory and index root /var/www/revivenatura_turismofundos_pt/; index index.html; server_name revivenatura.turismofundos.pt; listen 443 ssl; # managed by Certbot ssl_certificate /etc/letsencrypt/live/revivenatura.turismofundos.pt/fullchain.pem; # managed by Certbot ssl_certificate_key /etc/letsencrypt/live/revivenatura.turismofundos.pt/privkey.pem; # managed by Certbot include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot } server { #add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always; gzip on; gzip_http_version 1.0; gzip_comp_level 5; gzip_min_length 1100; gzip_buffers 4 8k; gzip_proxied any; gzip_types text/css text/javascript text/xml text/plain text/x-component application/javascript application/json application/xml application/rss+xml font/truetype font/opentype application/vnd.ms-fontobject image/svg+xml; gzip_static on; gzip_proxied expired no-cache no-store private auth; gzip_disable "MSIE [1-6]\."; gzip_vary on; client_body_timeout 5s; client_header_timeout 5s; client_max_body_size 20M; error_page 404 /error.html; location ~ /wp-content/(?<path>.+)\.(?<ext>jpe?g|png|gif)$ { if ($http_accept !~* "image/webp") { break; } add_header Vary Accept; add_header Cache-Control "private" always; expires 365d; try_files /wp-content/uploads-webpc/$path.$ext.webp $uri =404; } location ~* \.(ico|css|js|gif|jpe?g|png|svg|mp4|woff|woff2)$ { expires max; add_header Pragma public; add_header Cache-Control "public, must-revalidate, proxy-revalidate"; } root /var/www/turismonew2024/; index index.php; server_name fomento-sgoic.pt www.fomento-sgoic.pt turismofundos.digitalpath.pt www.turismofundos.digitalpath.pt; location ~* \.(eot|ttf|woff|woff2)$ { add_header Access-Control-Allow-Origin *; } # location / { # try_files $uri $uri/ /index.php?$args; # } set $cache_uri $request_uri; # POST requests and urls with a query string should always go to PHP if ($request_method = POST) { set $cache_uri 'null cache'; } # Don't cache uris containing the following segments if ($request_uri ~* "(/wp-admin/|/xmlrpc.php|/wp-(app|cron|login|register|mail).php|wp-.*.php|/feed/|index.php|wp-comments-popup.php|wp-links-opml.php|wp-locations.php|sitemap(_index)?.xml|[a-z0-9_-]+-sitemap([0-9]+)?.xml)") { set $cache_uri 'null cache'; } # Don't use the cache for logged in users or recent commenters if ($http_cookie ~* "comment_author|wordpress_[a-f0-9]+|wp-postpass|wordpress_logged_in") { set $cache_uri 'null cache'; } # Use cached or actual file if they exists, otherwise pass request to WordPress location / { # index index.php; try_files "/wp-content/cache/wpo-cache/$http_host${cache_uri}index.html" $uri $uri/ /index.php?$args; } location ~* ^/wp-content/uploads/.*\.php$ { deny all; } location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/var/run/php/php7.4-fpm.sock; fastcgi_index index.php; include fastcgi.conf; fastcgi_read_timeout 600; fastcgi_buffers 16 16k; fastcgi_buffer_size 32k; } listen 443 ssl; # managed by Certbot ssl_certificate /etc/letsencrypt/live/fomento-sgoic.pt/fullchain.pem; # managed by Certbot ssl_certificate_key /etc/letsencrypt/live/fomento-sgoic.pt/privkey.pem; # managed by Certbot include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot } server { #add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always; gzip on; gzip_http_version 1.0; gzip_comp_level 5; gzip_min_length 1100; gzip_buffers 4 8k; gzip_proxied any; gzip_types text/css text/javascript text/xml text/plain text/x-component application/javascript application/json application/xml application/rss+xml font/truetype font/opentype application/vnd.ms-fontobject image/svg+xml; gzip_static on; gzip_proxied expired no-cache no-store private auth; gzip_disable "MSIE [1-6]\."; gzip_vary on; client_body_timeout 5s; client_header_timeout 5s; client_max_body_size 10M; access_log /var/log/nginx/turismofundos_access.log; error_log /var/log/nginx/turismofundos_error.log; error_page 404 /error.html; location ~ /wp-content/(?<path>.+)\.(?<ext>jpe?g|png|gif)$ { if ($http_accept !~* "image/webp") { break; } add_header Vary Accept; add_header Cache-Control "private" always; expires 365d; try_files /wp-content/uploads-webpc/$path.$ext.webp $uri =404; } location ~* \.(ico|css|js|gif|jpe?g|png|svg|mp4|woff|woff2)$ { expires max; add_header Pragma public; add_header Cache-Control "public, must-revalidate, proxy-revalidate"; } root /var/www/turismonew/; index index.php; server_name turismofundos.pt www.turismofundos.pt; location ~* \.(eot|ttf|woff|woff2)$ { add_header Access-Control-Allow-Origin *; } # location / { # try_files $uri $uri/ /index.php?$args; # } # Block PHP execution in the uploads directory location ~* /wp-content/uploads/.*\.php$ { deny all; } set $cache_uri $request_uri; # POST requests and urls with a query string should always go to PHP if ($request_method = POST) { set $cache_uri 'null cache'; } # Don't cache uris containing the following segments if ($request_uri ~* "(/wp-admin/|/xmlrpc.php|/wp-(app|cron|login|register|mail).php|wp-.*.php|/feed/|index.php|wp-comments-popup.php|wp-links-opml.php|wp-locations.php|sitemap(_index)?.xml|[a-z0-9_-]+-sitemap([0-9]+)?.xml)") { set $cache_uri 'null cache'; } # Don't use the cache for logged in users or recent commenters if ($http_cookie ~* "comment_author|wordpress_[a-f0-9]+|wp-postpass|wordpress_logged_in") { set $cache_uri 'null cache'; } # Use cached or actual file if they exists, otherwise pass request to WordPress location / { # index index.php; try_files "/wp-content/cache/wpo-cache/$http_host${cache_uri}index.html" $uri $uri/ /index.php?$args; } location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/var/run/php/php7.4-fpm.sock; fastcgi_index index.php; include fastcgi.conf; fastcgi_read_timeout 600; fastcgi_buffers 16 16k; fastcgi_buffer_size 32k; } listen 443 ssl; # managed by Certbot ssl_certificate /etc/letsencrypt/live/turismofundos.pt/fullchain.pem; # managed by Certbot ssl_certificate_key /etc/letsencrypt/live/turismofundos.pt/privkey.pem; # managed by Certbot include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot } server { #add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always; gzip on; gzip_http_version 1.0; gzip_comp_level 5; gzip_min_length 1100; gzip_buffers 4 8k; gzip_proxied any; gzip_types text/css text/javascript text/xml text/plain text/x-component application/javascript application/json application/xml application/rss+xml font/truetype font/opentype application/vnd.ms-fontobject image/svg+xml; gzip_static on; gzip_proxied expired no-cache no-store private auth; gzip_disable "MSIE [1-6]\."; gzip_vary on; client_body_timeout 5s; client_header_timeout 5s; client_max_body_size 10M; error_page 404 /error.html; location ~ /wp-content/(?<path>.+)\.(?<ext>jpe?g|png|gif)$ { if ($http_accept !~* "image/webp") { break; } add_header Vary Accept; add_header Cache-Control "private" always; expires 365d; try_files /wp-content/uploads-webpc/$path.$ext.webp $uri =404; } location ~* \.(ico|css|js|gif|jpe?g|png|svg|mp4|woff|woff2)$ { expires max; add_header Pragma public; add_header Cache-Control "public, must-revalidate, proxy-revalidate"; } root /var/www/infosyncro/; index index.php; server_name infosyncro.digitalpath.pt; location ~* \.(eot|ttf|woff|woff2)$ { add_header Access-Control-Allow-Origin *; } # location / { # try_files $uri $uri/ /index.php?$args; # } set $cache_uri $request_uri; # POST requests and urls with a query string should always go to PHP if ($request_method = POST) { set $cache_uri 'null cache'; } # Don't cache uris containing the following segments if ($request_uri ~* "(/wp-admin/|/xmlrpc.php|/wp-(app|cron|login|register|mail).php|wp-.*.php|/feed/|index.php|wp-comments-popup.php|wp-links-opml.php|wp-locations.php|sitemap(_index)?.xml|[a-z0-9_-]+-sitemap([0-9]+)?.xml)") { set $cache_uri 'null cache'; } # Don't use the cache for logged in users or recent commenters if ($http_cookie ~* "comment_author|wordpress_[a-f0-9]+|wp-postpass|wordpress_logged_in") { set $cache_uri 'null cache'; } # Use cached or actual file if they exists, otherwise pass request to WordPress location / { # index index.php; try_files "/wp-content/cache/wpo-cache/$http_host${cache_uri}index.html" $uri $uri/ /index.php?$args; } location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/var/run/php/php7.4-fpm.sock; fastcgi_index index.php; include fastcgi.conf; fastcgi_read_timeout 600; fastcgi_buffers 16 16k; fastcgi_buffer_size 32k; } listen 443 ssl; # managed by Certbot ssl_certificate /etc/letsencrypt/live/infosyncro.digitalpath.pt/fullchain.pem; # managed by Certbot ssl_certificate_key /etc/letsencrypt/live/infosyncro.digitalpath.pt/privkey.pem; # managed by Certbot include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot } server { gzip on; gzip_http_version 1.0; gzip_comp_level 5; gzip_min_length 1100; gzip_buffers 4 8k; gzip_proxied any; gzip_types text/css text/javascript text/xml text/plain text/x-component application/javascript application/json application/xml application/rss+xml font/truetype font/opentype application/vnd.ms-fontobject image/svg+xml; gzip_static on; gzip_proxied expired no-cache no-store private auth; gzip_disable "MSIE [1-6]\."; gzip_vary on; client_body_timeout 5s; client_header_timeout 5s; location ~* \.(ico|css|js|gif|jpe?g|png)$ { expires max; add_header Pragma public; add_header Cache-Control "public, must-revalidate, proxy-revalidate"; } root /var/www/biocabaz_new/; index index.php; server_name biocabaz.pt www.biocabaz.pt; location = / { try_files $uri $uri/web /web/index.php?$args; } location ~* /web/wp-conteudos/uploads/.*\.php$ { deny all; } location /web { index index.php; try_files $uri $uri/ /web/index.php?$args; } location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/var/run/php/php8.2-fpm.sock; fastcgi_index index.php; fastcgi_buffers 128 4096k; fastcgi_buffer_size 4096k; include fastcgi.conf; } listen [::]:443 ssl; # managed by Certbot listen 443 ssl; # managed by Certbot ssl_certificate /etc/letsencrypt/live/biocabaz.pt/fullchain.pem; # managed by Certbot ssl_certificate_key /etc/letsencrypt/live/biocabaz.pt/privkey.pem; # managed by Certbot include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot } server { proxy_read_timeout 300; proxy_connect_timeout 300; proxy_send_timeout 300; gzip on; gzip_http_version 1.0; gzip_comp_level 5; gzip_min_length 1100; gzip_buffers 4 8k; gzip_proxied any; gzip_types text/css text/javascript text/xml text/plain text/x-component application/javascript application/json application/xml application/rss+xml font/truetype font/opentype application/vnd.ms-fontobject image/svg+xml; gzip_static on; gzip_proxied expired no-cache no-store private auth; gzip_disable "MSIE [1-6]\."; gzip_vary on; client_body_timeout 5s; client_header_timeout 5s; client_max_body_size 400M; location ~ /wp-content/(?<path>.+)\.(?<ext>jpe?g|png|gif)$ { if ($http_accept !~* "image/webp") { break; } add_header Vary Accept; add_header Cache-Control "private" always; expires 365d; try_files /wp-content/uploads-webpc/$path.$ext.webp $uri =404; } location ~* \.(ico|css|js|gif|svg|mp4|woff|woff2)$ { expires max; add_header Pragma public; add_header Cache-Control "public, must-revalidate, proxy-revalidate"; } access_log /var/log/nginx/baudefruta_access.log; error_log /var/log/nginx/baudefruta_error.log; root /var/www/baudefruta/; index index.php; location = /wp-login.php { if ($arg_action = register) { return 403; } } server_name baudefruta.pt www.baudefruta.pt; set $cache_uri $request_uri; # POST requests and URLs with a query string should always go to PHP if ($request_method = POST) { set $cache_uri 'null cache'; } if ($query_string != "") { set $cache_uri 'null cache'; } # Don't cache URIs containing the following segments if ($request_uri ~* "(/wp-admin/|/xmlrpc.php|/wp-(app|cron|login|register|mail).php |wp-.*.php|/feed/|index.php|wp-comments-popup.php |wp-links-opml.php|wp-locations.php |sitemap(_index)?.xml |[a-z0-9_-]+-sitemap([0-9]+)?.xml)") { set $cache_uri 'null cache'; } # Don't use the cache for logged-in users or recent commenters if ($http_cookie ~* "comment_author|wordpress_[a-f0-9]+ |wp-postpass|wordpress_logged_in") { set $cache_uri 'null cache'; } # Use cached or actual file if it exists, otherwise pass request to WordPress location / { try_files /wp-content/cache/supercache/$http_host/$cache_uri/index-https.html try_files $uri $uri/ /index.php?$args; } location = /favicon.ico { log_not_found off; access_log off; } location = /robots.txt { log_not_found off; access_log off; } # Cache static files for as long as possible location ~*.(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|css|rss|atom|js|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf)$ { expires max; log_not_found off; access_log off; } location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/var/run/php/php8.2-fpm.sock; fastcgi_index index.php; fastcgi_buffers 128 4096k; fastcgi_buffer_size 4096k; fastcgi_read_timeout 600; include fastcgi.conf; } listen 443 ssl; # managed by Certbot ssl_certificate /etc/letsencrypt/live/baudefruta.pt/fullchain.pem; # managed by Certbot ssl_certificate_key /etc/letsencrypt/live/baudefruta.pt/privkey.pem; # managed by Certbot include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot } server { proxy_read_timeout 300; proxy_connect_timeout 300; proxy_send_timeout 300; gzip on; gzip_http_version 1.0; gzip_comp_level 5; gzip_min_length 1100; gzip_buffers 4 8k; gzip_proxied any; gzip_types text/css text/javascript text/xml text/plain text/x-component application/javascript application/json application/xml application/rss+xml font/truetype font/opentype application/vnd.ms-fontobject image/svg+xml; gzip_static on; gzip_proxied expired no-cache no-store private auth; gzip_disable "MSIE [1-6]\."; gzip_vary on; client_body_timeout 5s; client_header_timeout 5s; client_max_body_size 400M; location ~ /wp-content/(?<path>.+)\.(?<ext>jpe?g|png|gif)$ { if ($http_accept !~* "image/webp") { break; } add_header Vary Accept; add_header Cache-Control "private" always; expires 365d; try_files /wp-content/uploads-webpc/$path.$ext.webp $uri =404; } location ~* \.(ico|css|js|gif|svg|mp4|woff|woff2)$ { expires max; add_header Pragma public; add_header Cache-Control "public, must-revalidate, proxy-revalidate"; } root /var/www/innowave/; index index.php; server_name innowave.tech www.innowave.tech; set $cache_uri $request_uri; # POST requests and URLs with a query string should always go to PHP if ($request_method = POST) { set $cache_uri 'null cache'; } if ($query_string != "") { set $cache_uri 'null cache'; } # Don't cache URIs containing the following segments if ($request_uri ~* "(/wp-admin/|/xmlrpc.php|/wp-(app|cron|login|register|mail).php |wp-.*.php|/feed/|index.php|wp-comments-popup.php |wp-links-opml.php|wp-locations.php |sitemap(_index)?.xml |[a-z0-9_-]+-sitemap([0-9]+)?.xml)") { set $cache_uri 'null cache'; } # Don't use the cache for logged-in users or recent commenters if ($http_cookie ~* "comment_author|wordpress_[a-f0-9]+ |wp-postpass|wordpress_logged_in") { set $cache_uri 'null cache'; } # Use cached or actual file if it exists, otherwise pass request to WordPress location / { try_files /wp-content/cache/supercache/$http_host/$cache_uri/index-https.html try_files $uri $uri/ /index.php?$args; } location = /favicon.ico { log_not_found off; access_log off; } location = /robots.txt { log_not_found off; access_log off; } # Cache static files for as long as possible location ~*.(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|css|rss|atom|js|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf)$ { expires max; log_not_found off; access_log off; } location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/var/run/php/php7.4-fpm.sock; fastcgi_index index.php; fastcgi_buffers 128 4096k; fastcgi_buffer_size 4096k; fastcgi_read_timeout 600; include fastcgi.conf; } listen 443 ssl; # managed by Certbot ssl_certificate /etc/letsencrypt/live/innowave.tech/fullchain.pem; # managed by Certbot ssl_certificate_key /etc/letsencrypt/live/innowave.tech/privkey.pem; # managed by Certbot include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot } server { if ($host = parabrincar.pt) { return 301 https://$host$request_uri; } # managed by Certbot if ($host = www.parabrincar.pt) { return 301 https://$host$request_uri; } # managed by Certbot listen 80; listen [::]:80; server_name parabrincar.pt www.parabrincar.pt; return 404; # managed by Certbot } server { if ($host = www.biocabaz.pt) { return 301 https://$host$request_uri; } # managed by Certbot if ($host = biocabaz.pt) { return 301 https://$host$request_uri; } # managed by Certbot listen 80; listen [::]:80; server_name biocabaz.pt www.biocabaz.pt; return 404; # managed by Certbot } server { # SSL configuration # # listen 443 ssl default_server; # listen [::]:443 ssl default_server; # # Note: You should disable gzip for SSL traffic. # See: https://bugs.debian.org/773332 # # Read up on ssl_ciphers to ensure a secure configuration. # See: https://bugs.debian.org/765782 # # Self signed certs generated by the ssl-cert package # Don't use them in a production server! # # include snippets/snakeoil.conf; root /var/www/html; # Add index.php to the list if you are using PHP index index.html index.htm index.nginx-debian.html; server_name www.2020.pt; # managed by Certbot 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.4-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; #} listen [::]:443 ssl; # managed by Certbot listen 443 ssl; # managed by Certbot ssl_certificate /etc/letsencrypt/live/www.2020.pt/fullchain.pem; # managed by Certbot ssl_certificate_key /etc/letsencrypt/live/www.2020.pt/privkey.pem; # managed by Certbot include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot } server { if ($host = www.2020.pt) { return 301 https://$host$request_uri; } # managed by Certbot listen 80 ; listen [::]:80 ; server_name www.2020.pt; return 404; # managed by Certbot } server { if ($host = infosyncro.digitalpath.pt) { return 301 https://$host$request_uri; } # managed by Certbot server_name infosyncro.digitalpath.pt; listen 80; return 404; # managed by Certbot } server { if ($host = turismofundos.pt) { return 301 https://$host$request_uri; } # managed by Certbot if ($host = www.fomento-sgoic.pt) { return 301 https://$host$request_uri; } # managed by Certbot if ($host = fomento-sgoic.pt) { return 301 https://$host$request_uri; } # managed by Certbot if ($host = www.turismofundos.pt) { return 301 https://$host$request_uri; } # managed by Certbot server_name fomento-sgoic.pt www.fomento-sgoic.pt turismofundos.pt www.turismofundos.pt; listen 80; return 404; # managed by Certbot } server { if ($host = turismofundos.digitalpath.pt) { return 301 https://$host$request_uri; } # managed by Certbot server_name turismofundos.digitalpath.pt www.turismofundos.digitalpath.pt; listen 80; return 404; # managed by Certbot } server { if ($host = www.baudefruta.pt) { return 301 https://$host$request_uri; } # managed by Certbot if ($host = baudefruta.pt) { return 301 https://$host$request_uri; } # managed by Certbot server_name baudefruta.pt www.baudefruta.pt; listen 80; return 404; # managed by Certbot } server { # SSL configuration # # listen 443 ssl default_server; # listen [::]:443 ssl default_server; # # Note: You should disable gzip for SSL traffic. # See: https://bugs.debian.org/773332 # # Read up on ssl_ciphers to ensure a secure configuration. # See: https://bugs.debian.org/765782 # # Self signed certs generated by the ssl-cert package # Don't use them in a production server! # # include snippets/snakeoil.conf; root /var/www/html; # Add index.php to the list if you are using PHP index index.html index.htm index.nginx-debian.html; server_name www.innowave.tech; # managed by Certbot 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.4-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; #} listen [::]:443 ssl; # managed by Certbot listen 443 ssl; # managed by Certbot ssl_certificate /etc/letsencrypt/live/innowave.tech/fullchain.pem; # managed by Certbot ssl_certificate_key /etc/letsencrypt/live/innowave.tech/privkey.pem; # managed by Certbot include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot } server { if ($host = innowave.tech) { return 301 https://$host$request_uri; } # managed by Certbot server_name innowave.tech www.innowavve.tech; listen 80; return 404; # managed by Certbot } server { if ($host = www.innowave.tech) { return 301 https://$host$request_uri; } # managed by Certbot listen 80 ; listen [::]:80 ; server_name www.innowave.tech; return 404; # managed by Certbot } server { if ($host = myideas.pt) { return 301 https://$host$request_uri; } # managed by Certbot if ($host = www.myideas.pt) { return 301 https://$host$request_uri; } # managed by Certbot server_name myideas.pt www.myideas.pt; listen 80; return 404; # managed by Certbot } server { if ($host = revivenatura.turismofundos.pt) { return 301 https://$host$request_uri; } # managed by Certbot server_name revivenatura.turismofundos.pt; listen 80; return 404; # managed by Certbot } server { if ($host = candidaturas.turismofundos.pt) { return 301 https://$host$request_uri; } # managed by Certbot server_name candidaturas.turismofundos.pt; listen 80; return 404; # managed by Certbot }