July 3, 2023 12:19 am est
Guys: I am catching up to the problem, but I will be following this one closely as I am also configuring. I will be testing. In the interim these are drafts. I will make edits after the Independence Day holiday. I will add a section specifically for node.js http://greg.gy/ssl http://greg.gy/machine http://greg.gy/ssl/install http://colorsorted.com/mg/ Greg On Saturday, June 24, 2023, Kaushal Shriyan <kaushalshri...@gmail.com> wrote: > > On Thu, Jun 22, 2023 at 5:42 AM Richard <lists-apache@listmail.innovat > e.net> wrote: > >> >> >> > Date: Wednesday, June 21, 2023 20:14:40 +0000 >> > From: Richard >> > >> > >> >> Date: Thursday, June 22, 2023 00:13:34 +0530 >> >> From: Kaushal Shriyan <kaushalshri...@gmail.com> >> >> >> >> When i hit https://nodejs.mydomain.com/demo/index.html I see the >> >> below in both httpd error and access logs >> >> >> >># pwd >> >> /var/log/httpd >> >># cat error_log >> >> [Thu Jun 22 00:06:34.161122 2023] [suexec:notice] [pid 16995:tid >> >> 16995] AH01232: suEXEC mechanism enabled (wrapper: >> >> /usr/sbin/suexec) [Thu Jun 22 00:06:34.196360 2023] [http2:warn] >> >> [pid 16995:tid 16995] AH10034: The mpm module (prefork.c) is not >> >> supported by mod_http2. The mpm determines how things are >> >> processed in your server. HTTP/2 has more demands in this regard >> >> and the currently selected mpm will just not do. This is an >> >> advisory warning. Your server will continue to work, but the >> >> HTTP/2 protocol will be inactive. >> >> [Thu Jun 22 00:06:34.197101 2023] [lbmethod_heartbeat:notice] [pid >> >> 16995:tid 16995] AH02282: No slotmem from mod_heartmonitor >> >> [Thu Jun 22 00:06:34.243545 2023] [mpm_prefork:notice] [pid >> >> 16995:tid 16995] AH00163: Apache/2.4.57 (IUS) OpenSSL/1.0.2k-fips >> >> PHP/8.1.20 configured -- resuming normal operations >> >> [Thu Jun 22 00:06:34.243596 2023] [core:notice] [pid 16995:tid >> >> 16995] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND' >> >> >> >> >> >># cat access_log >> >> 172.16.16.45 - drupaladmin [22/Jun/2023:00:06:45 +0530] "GET >> >> /demo/index.html HTTP/1.1" 404 25644 "-" "Mozilla/5.0 (Macintosh; >> >> Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) >> >> Chrome/114.0.0.0 Safari/537.36" >> >> 172.16.16.45 - drupaladmin [22/Jun/2023:00:06:45 +0530] "GET >> >> /demo/index.html HTTP/1.1" 404 25644 "-" "Mozilla/5.0 (Macintosh; >> >> Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) >> >> Chrome/114.0.0.0 Safari/537.36" >> > >> > Leaving aside other potential issues, the timestamps on your >> > error_log entries are from: >> > >> > Jun 22 00:06:34 >> > >> > while the ones with the 404 in your access_log are from: >> > >> > 22/Jun/2023:00:06:45 >> > >> > ~10 minutes later. I.e., they do not appear to be for the same >> > event. >> > >> > The error_log entries look like server startup error messages, >> > rather than ones related to a browser request. Also, given the >> > timestamp formats, I'm suspecting that they aren't even from the >> > same apache server/machine instance. >> > >> > Look at the entries in the error_log that are specific to the >> > access_log 404 errors. That will give you more detail from that side >> > of things. >> > >> >> correction ... >> >> > ~10 minutes later. I.e., they do not appear to be for the >> > same event. >> >> should be: >> >> > ~10 seconds later ... >> >> regardless, the error_log entries aren't for the access_log 404 >> requests/events. >> >> >> >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org >> For additional commands, e-mail: users-h...@httpd.apache.org >> >> > Hi, > > OS :- CentOS Linux release 7.9.2009 (Core) > # node --version > *v16.20.0* > # httpd -v > Server version: *Apache/2.4.57 (IUS)* > Server built: Apr 7 2023 14:49:47 > # > #cd /etc/httpd/conf.d/ > #cat httpdfrontend.conf > <VirtualHost *:80> > ServerName nodejs.mydomain.com > Redirect / https://nodejs.mydomain.com/ > </VirtualHost> > <VirtualHost *:443> > DocumentRoot /var/www/html/web > ServerName nodejs.mydomain.com > Header add Access-Control-Allow-Origin "*" > SSLEngine on > SSLCertificateFile /etc/letsencrypt/live/nodejs.m > ydomain.com/cert.pem > SSLCertificateKeyFile /etc/letsencrypt/live/nodejs.m > ydomain.com/privkey.pem > SSLCertificateChainFile /etc/letsencrypt/live/nodejs.m > ydomain.com/chain.pem > Header always set Strict-Transport-Security "max-age=63072000; > includeSubDomains" > > <Directory "/var/www/html/web"> > DirectoryIndex index.html index.php > Options FollowSymLinks > AllowOverride All > Require valid-user > AuthType Basic > AuthName "Restricted Content" > AuthUserFile /var/www/html/web/.htpasswd > </Directory> > </VirtualHost> > > #cd /etc/httpd/conf.d/ > # cat nodejsbackendssl.conf > <VirtualHost *:80> > <Location /> > ProxyPass http://localhost:8000/ > </Location> > </VirtualHost> > > # netstat -anp | grep 8000 > tcp6 0 0 :::8000 :::* LISTEN > 23679/node > tcp6 0 0 192.168.0.116:8000 104.152.52.207:46601 > ESTABLISHED 23679/node > tcp6 0 0 192.168.0.116:8000 172.16.16.45:50467 > ESTABLISHED 23679/node > # > > https://nodejs.mydomain.com/demo/index.html -> returns 404 > http://nodejs.mydomain.com:8000/demo/index.html -> returns the content > with Non Secure on the browser. > > Please suggest and guide me. Thanks in advance. > > Best Regards, > > Kaushal > > -- Sent from my iPhone