default nginx config

server {
    listen 80;
    listen [::]:80;
    index index.html index.htm;
    root /usr/share/nginx/html;
    server_name restuwahyu-tech.com www.restuwahyu-tech.com;
    return 301 https://$host$request_uri;
 
    location / {
       proxy_pass http://nodejs:8080;
    }
 
    location ~ /.well-known/acme-challenge{
      allow all;
      root /usr/share/nginx/html;
    }
}
 
server {
     listen 443 ssl http2;
     listen [::]:443 ssl http2;
     server_name restuwahyu-tech.com;
     index index.html index.htm;
     root /usr/share/nginx/html;
 
     access_log /var/logs/nginx/access;
     error_log /var/logs/nginx/error;
 
     ssl_certificate /etc/nginx/ssl/live/restuwahyu-tech.com/fullchain.pem;
     ssl_certificate_key /etc/nginx/ssl/live/restuwahyu-tech.com/privkey.pem;
     ssl_session_timeout 1d;
     ssl_session_cache shared:SSL:10m;
     ssl_session_tickets off;
     ssl_dhparam /etc/nginx/dhparam/dhparam-2048.pem;
     ssl_buffer_size 8k;
     ssl_protocols TLSv1.2 TLSv1.3;
     ssl_prefer_server_ciphers off;
     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_stapling on;
     ssl_stapling_verify on;
 
     add_header X-Frame-Options           "SAMEORIGIN" always;
     add_header X-XSS-Protection          "1; mode=block" always;
     add_header X-Content-Type-Options    "nosniff" always;
     add_header Referrer-Policy           "no-referrer-when-downgrade" always;
     add_header Content-Security-Policy   "default-src 'self' http: https: data: blob: 'unsafe-inline'" always;
     add_header Strict-Transport-Security "max-age=63072000" always;
 
     resolver 9.9.9.9;
     resolver_timeout 2s;
 
     location / {
      proxy_pass http://nodejs:8080;
    }

4
2
CDM 80 points

                                    # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
        location ~ \.php$ {
            fastcgi_pass   127.0.0.1:9000;
            fastcgi_index  index.php;
            fastcgi_param  SCRIPT_FILENAME  /webroot/theos.in/http$fastcgi_script_name;
            include        fastcgi_params;
        }

4 (2 Votes)
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
what is nginx check config nginx nginx how to open your nginx config file basic config nginx nginx open config file nginx configurator nginx how to check config simple config nginx nginx include config file where is nginx config located simple nginx configaration nginx custom config nginx 1.15 config check config file in nginx nginx config if nginx config for path nginx config version setting nginx.conf example of nginx config file nginx configtes nginx config di rectory enable nginx conf nginx config formatter nginx configuration for angular nginx custom configuration format nginx config nginx config @ what config file to use for nginx acessing nginx config custom nginx config file create nginx config file get nginx config file how nginx config files work nginx config for html code nginx node js config nginx basic configuration nginx config file directory nginx config node js nginx change config file nginx configuration file explained nginx configuration file example where nginx config file located nginx change config for site nginx configuration tutorial server config nginx config server nginx config nginx tutorial configure nginx where is config file located connfig nginx path how to nginx configuration nginx+custom config acees nginx config nginx web configuraton linux nginx config file nginx config files location nginx config react setting up nginx conf nginx configure odoo conf in nginx configuration section contao nginx config nginx-config.conf server nginx change config nginx configs config nginx for yourls nginx enable new config setup nginx conf nginx configuration files how to get nginx config file open nginx config understanding nginx configuration nginx see config config files nginx angular configuration with nginx nginx default config path nginx config in terminal nginx config terminal how to use conf nginx nginx confi config file nginx nginx initial configuration view nginx config server nginx config server nginx configurators nginx config domine how to view nginx config file nginx config s nginx generate config nginx config whare nginx start config nginx set conf file nginx.config nginx.conf example nginx config for .net 5 site nginx html config file nginx confih nginx set .conf nginx config reference how to write nginx conf config nginx directory config server nginx nginx config http nginx configuration file /etc/nginx/nginx.conf add nginx config command nginx settings nodejs nginx config nginx basic config example nginx linux config nginx configuration guide proper nginx config nginx config guide nginx.conf settings where is my nginx config file simple nginx config file how to config nginx server standard nginx config nginx standard config config nginx default nginx conf files basic nginx conf nginx include file in config config file of nginx nginx configure www nginx file configuration nginx update config enable a nginx config nginx config file path nginx config español how is nginx conf work configuring nginx where is nginx config file nginx add server config nginx configuration file in linux nginx nodejs config nginx configuartaion nginx config index change nginx config file how to enable conf in nginx example nginx configuration nginx config php linux nginx config nginx server config example nginx web.config adding nginx configuratons nginx configtest nginx config locations configurar nginx nginx server configs sample nginx config nginx config check change nginx config nginx confog apache/nginx config nginx which config file is used where to specify nginx config nginx config for angular nginx configuration documentation start nginx with config file nginx.conf: how to set nginx config custom config nginx nginx custom conf nginx conf example angular nginx config server what is nginx configuration file configurate nginx run ojet using nginx config nginx configure file in ojet nginx configure file nginx configura nginx configure in ojet nginx configuration in ojet how to confidgure nginx nginx config editor nginx check config syntax nginx config variables nginx server configuration nginx hhtps config nginx specify configuration file nginx use config file nginx get configuration nginx express config nginx config web nginx config !-e nginx exemple config nginx default configuration nginx "config.json" sample nginx config structure configuration nginx how to open nginx config file nginx config file walkthrough nginx config file language nginx check config nginx import config file nginx configure nginx configu applying nginx config nginx set config file run nginx with config nginx configuration file tutorial nginxconfig.io nginx .conf nginx config t nginx configuration example nginx config for react app nginx add new config file config nginx where we can configure the nginx conf nginx load config file nginx config tutorial config nginx path check nginx config file nginx default config file nginx example config nginx config documentation basic configuration nginx nginx conmfiguration file syntax how to create nginx config file nginx default config files nginx config file understand nginx how to configure nginx.conf nginx config setup nginx sample config nginx site config example nginx server config file where is the nginx config file nginx basic config nginx edit config nginx create config file nginx config file tutoria l configurer nginx how to edit nginx config nginx config for index.html nginx config directory nginx config file syntax nginx config file syntax check view nginx config node nginx config edit nginx config nginx add new configuration where is nginx config nginx custom nginx config nginx website config how to access nginx config file nginx config file default nginx site confix how to configure nginx nginx server config nginx config example nginx read config file nginx html config nginx config files location / nginx config angular example nginx config default nginx config file nginx config files default nginx config simple nginx config nginx config show what is the config file for nginx nginx specify config file nginx enable config configure nginx nginx simple config what is the nginx config file where nginx config nginx angular config what is configure for nginx nginx config file exampel nginx default config example nginx configuration filees angular nginx config nginx use custom config file ./configure nginx configuration nginx.conf how to configure nginx nginx config file nginx config file location nginx config file example open nginx config file nginx config path nginx conf file nginx configuration file nginx configureation nginx site config nginx default config set nginx config Nginx configuration nginx conf nginx config kubernetes nginx config location make nginx config default nginx config
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source