Welcome! Log In Create A New Profile

Advanced

Re: SSI configulations issues

Anonymous User
April 18, 2021 08:44AM
Hi Francis,

I am sorry. I saw it has been disabled after clearing my google chrome caches.
It was not enough to simply reloading the pages.

Thank you for helping me

Regards,
Yusui

----- Original Message -----
> From: "tommys_project@yahoo.co.jp" <tommys_project@yahoo.co.jp>
> To: "nginx@nginx.org" <nginx@nginx.org>
> Cc:
> Date: 2021/4/18, Sun 09:57
> Subject: Re: SSI configulations issues
>
> Hi Francis,
>
> Yes I removed both and successfully restarted.
> I got results of nginx -T as the following but looks nginx does not load ssi
> settings at all..
> Unchanged configulation files during I tried ssi setting were chopped from the
> following results because of too long.
>
> root@host:~# nginx -T|grep -i ssi
> nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
> nginx: configuration file /etc/nginx/nginx.conf test is successful
>     application/vnd.openxmlformats-officedocument.wordprocessingml.document
>     ssl_session_cache    shared:SSL:1m;
>     ssl_session_timeout  5m;
>     ssl_session_cache    shared:SSL:1m;
>     ssl_session_timeout  5m;
>     ssl_session_cache    shared:SSL:1m;
>     ssl_session_timeout  5m;
>     ssl_session_cache    shared:SSL:1m;
>     ssl_session_timeout  5m;;
> root@host:~# nginx -T
> nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
> nginx: configuration file /etc/nginx/nginx.conf test is successful
> # configuration file /etc/nginx/nginx.conf:
>
> user  nginx nginx;
> worker_processes  1;
>
> #error_log  logs/error.log;
> #error_log  logs/error.log  notice;
> #error_log  logs/error.log  info;
>
> #pid        logs/nginx.pid;
>
>
> events {
>     worker_connections  1024;
> }
>
>
> http {
>     include       mime.types;
>     default_type  application/octet-stream;
>     server_tokens off;
>
>     #log_format  main  '$remote_addr - $remote_user [$time_local]
> "$request" '
>     #                  '$status $body_bytes_sent "$http_referer"
> '
>     #                  '"$http_user_agent"
> "$http_x_forwarded_for"';
>
>     #access_log  logs/access.log  main;
>
>     sendfile        on;
>     #tcp_nopush     on;
>
>     #keepalive_timeout  0;
>     keepalive_timeout  65;
>
>     #gzip  on;
>     include /etc/nginx/sites-enabled/*;
>
>     # Cloudflare IP address List for CDN
>     set_real_ip_from 173.245.48.0/20;
>     set_real_ip_from 103.21.244.0/22;
>     set_real_ip_from 103.22.200.0/22;
>     set_real_ip_from 103.31.4.0/22;
>     set_real_ip_from 141.101.64.0/18;
>     set_real_ip_from 108.162.192.0/18;
>     set_real_ip_from 190.93.240.0/20;
>     set_real_ip_from 188.114.96.0/20;
>     set_real_ip_from 197.234.240.0/22;
>     set_real_ip_from 198.41.128.0/17;
>     set_real_ip_from 162.158.0.0/15;
>     set_real_ip_from 104.16.0.0/12;
>     set_real_ip_from 172.64.0.0/13;
>     set_real_ip_from 131.0.72.0/22;
>     set_real_ip_from 2400:cb00::/32;
>     set_real_ip_from 2606:4700::/32;
>     set_real_ip_from 2803:f800::/32;
>     set_real_ip_from 2405:b500::/32;
>     set_real_ip_from 2405:8100::/32;
>     set_real_ip_from 2a06:98c0::/29;
>     set_real_ip_from 2c0f:f248::/32;
>     real_ip_header CF-Connecting-IP;
>
> }
>
> # configuration file /etc/nginx/mime.types:
>
> types {
>     text/html                                        html htm shtml;
>     text/css                                         css;
>     text/xml                                         xml;
>     image/gif                                        gif;
>     image/jpeg                                       jpeg jpg;
>     application/javascript                           js;
>     application/atom+xml                             atom;
>     application/rss+xml                              rss;
>
>     text/mathml                                      mml;
>     text/plain                                       txt;
>     text/vnd.sun.j2me.app-descriptor                 jad;
>     text/vnd.wap.wml                                 wml;
>     text/x-component                                 htc;
>
>     image/png                                        png;
>     image/svg+xml                                    svg svgz;
>     image/tiff                                       tif tiff;
>     image/vnd.wap.wbmp                               wbmp;
>     image/webp                                       webp;
>     image/x-icon                                     ico;
>     image/x-jng                                      jng;
>     image/x-ms-bmp                                   bmp;
>
>     font/woff                                        woff;
>     font/woff2                                       woff2;
>
>     application/java-archive                         jar war ear;
>     application/json                                 json;
>     application/mac-binhex40                         hqx;
>     application/msword                               doc;
>     application/pdf                                  pdf;
>     application/postscript                           ps eps ai;
>     application/rtf                                  rtf;
>     application/vnd.apple.mpegurl                    m3u8;
>     application/vnd.google-earth.kml+xml             kml;
>     application/vnd.google-earth.kmz                 kmz;
>     application/vnd.ms-excel                         xls;
>     application/vnd.ms-fontobject                    eot;
>     application/vnd.ms-powerpoint                    ppt;
>     application/vnd.oasis.opendocument.graphics      odg;
>     application/vnd.oasis.opendocument.presentation  odp;
>     application/vnd.oasis.opendocument.spreadsheet   ods;
>     application/vnd.oasis.opendocument.text          odt;
>     application/vnd.openxmlformats-officedocument.presentationml.presentation
>                                                      pptx;
>     application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
>                                                      xlsx;
>     application/vnd.openxmlformats-officedocument.wordprocessingml.document
>                                                      docx;
>     application/vnd.wap.wmlc                         wmlc;
>     application/x-7z-compressed                      7z;
>     application/x-cocoa                              cco;
>     application/x-java-archive-diff                  jardiff;
>     application/x-java-jnlp-file                     jnlp;
>     application/x-makeself                           run;
>     application/x-perl                               pl pm;
>     application/x-pilot                              prc pdb;
>     application/x-rar-compressed                     rar;
>     application/x-redhat-package-manager             rpm;
>     application/x-sea                                sea;
>     application/x-shockwave-flash                    swf;
>     application/x-stuffit                            sit;
>     application/x-tcl                                tcl tk;
>     application/x-x509-ca-cert                       der pem crt;
>     application/x-xpinstall                          xpi;
>     application/xhtml+xml                            xhtml;
>     application/xspf+xml                             xspf;
>     application/zip                                  zip;
>
>     application/octet-stream                         bin exe dll;
>     application/octet-stream                         deb;
>     application/octet-stream                         dmg;
>     application/octet-stream                         iso img;
>     application/octet-stream                         msi msp msm;
>
>     audio/midi                                       mid midi kar;
>     audio/mpeg                                       mp3;
>     audio/ogg                                        ogg;
>     audio/x-m4a                                      m4a;
>     audio/x-realaudio                                ra;
>
>     video/3gpp                                       3gpp 3gp;
>     video/mp2t                                       ts;
>     video/mp4                                        mp4;
>     video/mpeg                                       mpeg mpg;
>     video/quicktime                                  mov;
>     video/webm                                       webm;
>     video/x-flv                                      flv;
>     video/x-m4v                                      m4v;
>     video/x-mng                                      mng;
>     video/x-ms-asf                                   asx asf;
>     video/x-ms-wmv                                   wmv;
>     video/x-msvideo                                  avi;
> }
>
> # configuration file /etc/nginx/fastcgi_params:
>
> fastcgi_param  QUERY_STRING       $query_string;
> fastcgi_param  REQUEST_METHOD     $request_method;
> fastcgi_param  CONTENT_TYPE       $content_type;
> fastcgi_param  CONTENT_LENGTH     $content_length;
>
> fastcgi_param  SCRIPT_NAME        $fastcgi_script_name;
> fastcgi_param  REQUEST_URI        $request_uri;
> fastcgi_param  DOCUMENT_URI       $document_uri;
> fastcgi_param  DOCUMENT_ROOT      $document_root;
> fastcgi_param  SERVER_PROTOCOL    $server_protocol;
> fastcgi_param  REQUEST_SCHEME     $scheme;
> fastcgi_param  HTTPS              $https if_not_empty;
>
> fastcgi_param  GATEWAY_INTERFACE  CGI/1.1;
> fastcgi_param  SERVER_SOFTWARE    nginx/$nginx_version;
>
> fastcgi_param  REMOTE_ADDR        $remote_addr;
> fastcgi_param  REMOTE_PORT        $remote_port;
> fastcgi_param  SERVER_ADDR        $server_addr;
> fastcgi_param  SERVER_PORT        $server_port;
> fastcgi_param  SERVER_NAME        $server_name;
>
> # PHP only, required if PHP was built with --enable-force-cgi-redirect
> fastcgi_param  REDIRECT_STATUS    200;
>
> # configuration file /etc/nginx/sites-enabled/default:
> server {
>     listen       80;
>     server_name  www.mydomain.com;
>
>     #charset koi8-r;
>
>     #access_log  logs/host.access.log  main;
>     access_log  /var/log/nginx/access.log;
>     error_log   /var/log/nginx/error.log;
>
>     location / {
>         root   /var/www/html;
>         index  index.php index.cgi index.html index.htm default.html
> default.htm;
>     }
>     location ~ ^/~(.+?)(/.*)?\.(php)$ {
>         alias /home/$1/public_html$2.$3;
>         fastcgi_pass   127.0.0.1:9000;
>         fastcgi_index  index.php;
>         fastcgi_param  SCRIPT_FILENAME $document_root;
>         include        /etc/nginx/fastcgi_params;
>     }
>
>     location ~ ^/~(.+?)(/.*)?\.(pl|cgi)$ {
>         alias /home/$1/public_html$2.$3;
>         fastcgi_pass   127.0.0.1:8999;
>         fastcgi_index  index.cgi;
>         fastcgi_param  SCRIPT_FILENAME $document_root;
>         include        /etc/nginx/fastcgi_params;
>     }
>
>     location ~ ^/~(.+?)(/.*)?$ {
>         alias /home/$1/public_html$2;
>         index  index.php index.cgi index.html index.htm default.html
> default.htm;
>         autoindex on;
>     }
>
>     location ~ \.php$ {
>         root           /var/www/html;
>         fastcgi_pass   127.0.0.1:9000;
>         fastcgi_index  index.php;
>         fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
>         include        /etc/nginx/fastcgi_params;
>     }
>
>     location ~ \.pl|cgi$ {
>         root           /var/www/html;
>         fastcgi_pass   127.0.0.1:8999;
>         fastcgi_index  index.cgi;
>         fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
>         include        /etc/nginx/fastcgi_params;
>     }
>
>     error_page  404              /404.html;
>     location = /404.html {
>         root /var/www/error_pages; internal;
>     }
>
>     # redirect server error pages to the static page /50x.html
>     #
>     error_page   500 502 503 504  /50x.html;
>     location = /50x.html {
>         root   /var/www/error_pages;
>     }
>
>     # proxy the PHP scripts to Apache listening on 127.0.0.1:80
>     #
>     #location ~ \.php$ {
>     #    proxy_pass   http://127.0.0.1;
>     #}
>
>     # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
>     #
>     #location ~ \.php$ {
>     #    root           html;
>     #    fastcgi_pass   127.0.0.1:9000;
>     #    fastcgi_index  index.php;
>     #    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
>     #    include        fastcgi_params;
>     #}
>
>     # deny access to .htaccess files, if Apache's document root
>     # concurs with nginx's one
>     #
>     #location ~ /\.ht {
>     #    deny  all;
>     #}
> }
> server {
>     listen       80;
>     server_name  mydomain.com;
>     return 301 http://www.mydomain.com$request_uri;
> }
>
> server {
>     listen       80;
>     server_name  mail.mydomain.com;
>     return 400;
> }
>
> server {
>     listen       80;
>     server_name  yt.mydomain.com;
>     return 400;
> }
>
>
> 2021年4月18日(日) 2:33 Francis Daly <francis@daoine.org>:
>>
>> On Sun, Apr 18, 2021 at 01:21:14AM +0900, tommys_project@yahoo.co.jp wrote:
>> > I deleted "ssi  on;" and "ssi_last_modified on;"
> from the configulations and execute "sudo systemctl restart nginx" but
> looks ssi is still enabled and test.html outputs values as ssi...
>> >
>> > What should I do to restore to being disabled?
>>
>> The config you showed first had "ssi on" in two places.
>>
>> If you remove both, and successfully restart the nginx that is reading
>> that config file, then nginx should not be looking for <!--# ssi
>> directives anywhere.
>>
>> "nginx -T" should test the config, and print what config it is
> actually
>> reading. Maybe the output of that will show why things are working the
>> way that they are?
>>
>>          f
>> --
>> Francis Daly        francis@daoine.org
>> _______________________________________________
>> nginx mailing list
>> nginx@nginx.org
>> http://mailman.nginx.org/mailman/listinfo/nginx
>
> Regards,
> Yusui
>

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

SSI configulations issues

Anonymous User April 17, 2021 12:42AM

Re: SSI configulations issues

Francis Daly April 17, 2021 05:28AM

Re: SSI configulations issues

Anonymous User April 17, 2021 09:34AM

Re: SSI configulations issues

Francis Daly April 17, 2021 10:22AM

Re: SSI configulations issues

Anonymous User April 17, 2021 12:22PM

Re: SSI configulations issues

Francis Daly April 17, 2021 01:34PM

Re: SSI configulations issues

Anonymous User April 17, 2021 08:58PM

Re: SSI configulations issues

Anonymous User April 18, 2021 08:44AM

Re: SSI configulations issues

Francis Daly April 19, 2021 05:16AM

Re: SSI configulations issues

Anonymous User April 20, 2021 11:20AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 80
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready