Hi Frank. I stripped out a bunch of the comments. For each test server, I have apache.conf berat.conf for the "/var/www/html/berat" the test app causing issues *** /var/log/apache/error.log tail -200 enough to compare each server/run and some overview/steps. I can easily provide access to the working "clone" if that would help. i'm leery of granting access to the test srvr that's screwing up, as it has stuff that's in flux right now! each of the test should give the same output, which would be the content/data, not the index/dir listing. To begin, the test app I'm running is fom github, generating a nextjs app, that is served by Apache via "http://127.0.0.1:3000". (The app is https://github.com/berat/waitlist-landing-page). The two/2 servers:: http://198.211.116.12/berat The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later. the working srvr... (this happens when the nextjs pm2 server isn't running.. when the next/pm2 server is running, the site displays data) the tst srvr that's screwing up.. http://161.35.5.174/berat/ Index of /berat [ICO] Name Last modified Size Description [PARENTDIR] Parent Directory - [TXT] README.md 2024-07-21 22:20 1.0K [DIR] app/ 2024-07-21 22:20 - . . . the dir listing, instead of the "err" statement The 2 test instances are comprised of Apache, the "/var/www/html" dir, as well as the associated test web apps. The only app I'm having an issue with for now, is the "berat" app. The existing apps for the "http://198.211.116.12/berat" test site are apache2.conf /etc/apache2/apache2.conf cat /etc/apache2/apache2.conf # NOTE! If you intend to place this on an NFS (or otherwise network) # mounted filesystem then please read the Mutex documentation (available # at <URL:http://httpd.apache.org/docs/2.4/mod/core.html#mutex>); # you will save yourself a lot of trouble. # # Do NOT add a slash at the end of the directory path. # #ServerRoot "/etc/apache2" # # The accept serialization lock file MUST BE STORED ON A LOCAL DISK. # #Mutex file:${APACHE_LOCK_DIR} default # # The directory where shm and other runtime files will be stored. # DefaultRuntimeDir ${APACHE_RUN_DIR} # # PidFile: The file in which the server should record its process # identification number when it starts. # This needs to be set in /etc/apache2/envvars # PidFile ${APACHE_PID_FILE} # # Timeout: The number of seconds before receives and sends time out. # Timeout 300 # # KeepAlive: Whether or not to allow persistent connections (more than # one request per connection). Set to "Off" to deactivate. # KeepAlive On # # MaxKeepAliveRequests: The maximum number of requests to allow # during a persistent connection. Set to 0 to allow an unlimited amount. # We recommend you leave this number high, for maximum performance. # MaxKeepAliveRequests 100 # # KeepAliveTimeout: Number of seconds to wait for the next request from the # same client on the same connection. # KeepAliveTimeout 5 # These need to be set in /etc/apache2/envvars User ${APACHE_RUN_USER} Group ${APACHE_RUN_GROUP} # # HostnameLookups: Log the names of clients or just their IP addresses # e.g., www.apache.org (on) or 204.62.129.132 (off). # The default is off because it'd be overall better for the net if people # had to knowingly turn this feature on, since enabling it means that # each client request will result in AT LEAST one lookup request to the # nameserver. # HostnameLookups Off # ErrorLog: The location of the error log file. # If you do not specify an ErrorLog directive within a <VirtualHost> # container, error messages relating to that virtual host will be # logged here. If you *do* define an error logfile for a <VirtualHost> # container, that host's errors will be logged there and not here. # ErrorLog ${APACHE_LOG_DIR}/error.log # # LogLevel: Control the severity of messages logged to the error_log. # Available values: trace8, ..., trace1, debug, info, notice, warn, # error, crit, alert, emerg. # It is also possible to configure the log level for particular modules, e.g. # "LogLevel info ssl:warn" # LogLevel warn # Include module configuration: IncludeOptional mods-enabled/*.load IncludeOptional mods-enabled/*.conf # Include list of ports to listen on Include ports.conf # Sets the default security model of the Apache2 HTTPD server. It does # not allow access to the root filesystem outside of /usr/share and /var/www. # The former is used by web applications packaged in Debian, # the latter may be used for local directories served by the web server. If # your system is serving content from a sub-directory in /srv you must allow # access here, or in any related virtual host. <Directory /> Options FollowSymLinks AllowOverride None Require all denied </Directory> <Directory /usr/share> AllowOverride None Require all granted </Directory> <Directory /var/www/> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory> #<Directory /srv/> # Options Indexes FollowSymLinks # AllowOverride None # Require all granted #</Directory> # AccessFileName: The name of the file to look for in each directory # for additional configuration directives. See also the AllowOverride # directive. # AccessFileName .htaccess # # The following lines prevent .htaccess and .htpasswd files from being # viewed by Web clients. # <FilesMatch "^\.ht"> Require all denied </FilesMatch> # # The following directives define some format nicknames for use with # a CustomLog directive. # # These deviate from the Common Log Format definitions in that they use %O # (the actual bytes sent including headers) instead of %b (the size of the # requested file), because the latter makes it impossible to detect partial # requests. # # Note that the use of %{X-Forwarded-For}i instead of %h is not recommended. # Use mod_remoteip instead. # LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%h %l %u %t \"%r\" %>s %O" common LogFormat "%{Referer}i -> %U" referer LogFormat "%{User-agent}i" agent # Include of directories ignores editors' and dpkg's backup files, # see README.Debian for details. # Include generic snippets of statements IncludeOptional conf-enabled/*.conf # Include the virtual host configurations: IncludeOptional sites-enabled/*.conf -------------------------------------------------------------- ------------------------ /etc/apache2/sites-available/berat.conf (this works http://198.211.116.12/berat) cat berat.conf <VirtualHost *:80> ServerAdmin foo@xxxxxxxxx ServerName temp22 ServerAlias temp # # #strip down.. to check against the http://161.35.5.174/ # berat.conf_work_jul24_24 is real/valid DocumentRoot /var/www/html/berat #test for styles.. #does order matter??? -- the actual ip is used to test.. #test RewriteEngine On #test for styles.. ##--- leave this alone.. it works jul22/24 ## gets the 200 code for the content.. ProxyPass /berat http://127.0.0.1:3000/ ProxyPassReverse /berat http://127.0.0.1:3000/ #test #ttest substitute below RewriteEngine On SetOutputFilter INFLATE;proxy-html;SUBSTITUTE;DEFLATE; ProxyHTMLInterp On ProxyHTMLExtended Off AddOutputFilterByType SUBSTITUTE text/html #text/xml text/javascript application/json Substitute "s|/_next/static/|\.\./\.next/static/|" Substitute "s|/_next/image\?url=\%2Fhero.jpg\&w=1920\&q=75|\.\./public/hero1|i" #DocumentRoot /var/www/html/berat <Directory /var/www/html/berat> Header Set Pragma "no-cache" Header Set Expires "Thu, 1 Jan 1970 00:00:00 GMT" Header Set Cache-Control "max-age=0, no-store, no-cache, must-revalidate" Header Unset ETag FileETag None # DirectoryIndex index.html index.php # Options -Indexes +FollowSymLinks +MultiViews Options +FollowSymLinks +MultiViews AllowOverride All #Options -MultiViews #i think or 2.4 Order allow,deny #i think for 2.4 Allow from all #use for 2.4? Require all granted ##Options -Indexes +FollowSymLinks +MultiViews AllowOverride All Require all granted </Directory> LogLevel debug ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost> -------------------------------- a2ensite berat a2dissite berat the /var/log/apache/error.log data [Thu Jul 25 20:04:21.221158 2024] [mpm_prefork:notice] [pid 111046] AH00171: Graceful restart requested, doing restart AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message [Thu Jul 25 20:04:21.385059 2024] [mpm_prefork:notice] [pid 111046] AH00163: Apache/2.4.58 (Ubuntu) configured -- resuming normal operations [Thu Jul 25 20:04:21.385087 2024] [core:notice] [pid 111046] AH00094: Command line: '/usr/sbin/apache2' [Thu Jul 25 20:04:21.394351 2024] [proxy:debug] [pid 111060] proxy_util.c(2154): AH00925: initializing worker http://127.0.0.1:3000/ shared [Thu Jul 25 20:04:21.394401 2024] [proxy:debug] [pid 111060] proxy_util.c(2214): AH00927: initializing worker http://127.0.0.1:3000/ local [Thu Jul 25 20:04:21.394445 2024] [proxy:debug] [pid 111060] proxy_util.c(2262): AH00931: initialized single connection worker in child 111060 for (127.0.0.1:3000) [Thu Jul 25 20:04:21.396919 2024] [proxy:debug] [pid 111061] proxy_util.c(2154): AH00925: initializing worker http://127.0.0.1:3000/ shared [Thu Jul 25 20:04:21.396954 2024] [proxy:debug] [pid 111061] proxy_util.c(2214): AH00927: initializing worker http://127.0.0.1:3000/ local [Thu Jul 25 20:04:21.396997 2024] [proxy:debug] [pid 111061] proxy_util.c(2262): AH00931: initialized single connection worker in child 111061 for (127.0.0.1:3000) [Thu Jul 25 20:04:21.403405 2024] [proxy:debug] [pid 111062] proxy_util.c(2154): AH00925: initializing worker http://127.0.0.1:3000/ shared [Thu Jul 25 20:04:21.403444 2024] [proxy:debug] [pid 111062] proxy_util.c(2214): AH00927: initializing worker http://127.0.0.1:3000/ local [Thu Jul 25 20:04:21.403502 2024] [proxy:debug] [pid 111062] proxy_util.c(2262): AH00931: initialized single connection worker in child 111062 for (127.0.0.1:3000) [Thu Jul 25 20:04:21.408401 2024] [proxy:debug] [pid 111063] proxy_util.c(2154): AH00925: initializing worker http://127.0.0.1:3000/ shared [Thu Jul 25 20:04:21.408445 2024] [proxy:debug] [pid 111063] proxy_util.c(2214): AH00927: initializing worker http://127.0.0.1:3000/ local [Thu Jul 25 20:04:21.408486 2024] [proxy:debug] [pid 111063] proxy_util.c(2262): AH00931: initialized single connection worker in child 111063 for (127.0.0.1:3000) [Thu Jul 25 20:04:21.410821 2024] [proxy:debug] [pid 111064] proxy_util.c(2154): AH00925: initializing worker http://127.0.0.1:3000/ shared [Thu Jul 25 20:04:21.410928 2024] [proxy:debug] [pid 111064] proxy_util.c(2214): AH00927: initializing worker http://127.0.0.1:3000/ local [Thu Jul 25 20:04:21.410977 2024] [proxy:debug] [pid 111064] proxy_util.c(2262): AH00931: initialized single connection worker in child 111064 for (127.0.0.1:3000) [Thu Jul 25 20:04:25.224807 2024] [authz_core:debug] [pid 111060] mod_authz_core.c(843): [client 162.234.196.167:46916] AH01628: authorization result: granted (no directives) [Thu Jul 25 20:04:25.224930 2024] [proxy:debug] [pid 111060] mod_proxy.c(1521): [client 162.234.196.167:46916] AH01143: Running scheme http handler (attempt 0) [Thu Jul 25 20:04:25.224939 2024] [proxy:debug] [pid 111060] proxy_util.c(2576): AH00942: http: has acquired connection for (127.0.0.1:3000) [Thu Jul 25 20:04:25.224946 2024] [proxy:debug] [pid 111060] proxy_util.c(2641): [client 162.234.196.167:46916] AH00944: connecting http://127.0.0.1:3000/ to 127.0.0.1:3000 [Thu Jul 25 20:04:25.225088 2024] [proxy:debug] [pid 111060] proxy_util.c(2864): [client 162.234.196.167:46916] AH00947: connected / to 127.0.0.1:3000 [Thu Jul 25 20:04:25.225677 2024] [proxy:debug] [pid 111060] proxy_util.c(3336): AH02824: http: connection established with 127.0.0.1:3000 (127.0.0.1:3000) [Thu Jul 25 20:04:25.225721 2024] [proxy:debug] [pid 111060] proxy_util.c(3525): AH00962: http: connection complete to 127.0.0.1:3000 (127.0.0.1) [Thu Jul 25 20:04:25.233354 2024] [proxy:debug] [pid 111060] proxy_util.c(2592): AH00943: http: has released connection for (127.0.0.1:3000) [Thu Jul 25 20:04:25.233392 2024] [deflate:debug] [pid 111060] mod_deflate.c(1678): [client 162.234.196.167:46916] AH01398: Zlib: Inflated 4803 to 19132 : URL /berat [Thu Jul 25 20:04:25.234105 2024] [deflate:debug] [pid 111060] mod_deflate.c(904): [client 162.234.196.167:46916] AH01384: Zlib: Compressed 19034 to 4786 : URL /berat [Thu Jul 25 20:04:25.349308 2024] [authz_core:debug] [pid 111060] mod_authz_core.c(815): [client 162.234.196.167:46916] AH01626: authorization result of Require all granted: granted, referer: http://198.211.116.12/berat [Thu Jul 25 20:04:25.349352 2024] [authz_core:debug] [pid 111060] mod_authz_core.c(815): [client 162.234.196.167:46916] AH01626: authorization result of <RequireAny>: granted, referer: http://198.211.116.12/berat [Thu Jul 25 20:04:25.350369 2024] [deflate:debug] [pid 111060] mod_deflate.c(904): [client 162.234.196.167:46916] AH01384: Zlib: Compressed 12708 to 3660 : URL /.next/static/css/8782c426ebf74cea.css, referer: http://198.211.116.12/berat [Thu Jul 25 20:04:25.380016 2024] [authz_core:debug] [pid 111061] mod_authz_core.c(815): [client 162.234.196.167:46918] AH01626: authorization result of Require all granted: granted, referer: http://198.211.116.12/berat [Thu Jul 25 20:04:25.380067 2024] [authz_core:debug] [pid 111061] mod_authz_core.c(815): [client 162.234.196.167:46918] AH01626: authorization result of <RequireAny>: granted, referer: http://198.211.116.12/berat [Thu Jul 25 20:04:25.387519 2024] [authz_core:debug] [pid 111062] mod_authz_core.c(815): [client 162.234.196.167:46926] AH01626: authorization result of Require all granted: granted, referer: http://198.211.116.12/berat [Thu Jul 25 20:04:25.388629 2024] [authz_core:debug] [pid 111062] mod_authz_core.c(815): [client 162.234.196.167:46926] AH01626: authorization result of <RequireAny>: granted, referer: http://198.211.116.12/berat [Thu Jul 25 20:04:25.389106 2024] [deflate:debug] [pid 111062] mod_deflate.c(904): [client 162.234.196.167:46926] AH01384: Zlib: Compressed 462 to 202 : URL /.next/static/chunks/main-app-badde648f9fc44dc.js, referer: http://198.211.116.12/berat [Thu Jul 25 20:04:25.389966 2024] [authz_core:debug] [pid 111063] mod_authz_core.c(815): [client 162.234.196.167:46922] AH01626: authorization result of Require all granted: granted, referer: http://198.211.116.12/berat [Thu Jul 25 20:04:25.389995 2024] [authz_core:debug] [pid 111063] mod_authz_core.c(815): [client 162.234.196.167:46922] AH01626: authorization result of <RequireAny>: granted, referer: http://198.211.116.12/berat [Thu Jul 25 20:04:25.391768 2024] [authz_core:debug] [pid 111060] mod_authz_core.c(815): [client 162.234.196.167:46916] AH01626: authorization result of Require all granted: granted, referer: http://198.211.116.12/berat [Thu Jul 25 20:04:25.391789 2024] [authz_core:debug] [pid 111060] mod_authz_core.c(815): [client 162.234.196.167:46916] AH01626: authorization result of <RequireAny>: granted, referer: http://198.211.116.12/berat [Thu Jul 25 20:04:25.392002 2024] [deflate:debug] [pid 111060] mod_deflate.c(904): [client 162.234.196.167:46916] AH01384: Zlib: Compressed 2347 to 1131 : URL /.next/static/chunks/app/layout-970fdbbe11a1c665.js, referer: http://198.211.116.12/berat [Thu Jul 25 20:04:25.394869 2024] [authz_core:debug] [pid 111064] mod_authz_core.c(815): [client 162.234.196.167:46924] AH01626: authorization result of Require all granted: granted, referer: http://198.211.116.12/berat [Thu Jul 25 20:04:25.394916 2024] [authz_core:debug] [pid 111064] mod_authz_core.c(815): [client 162.234.196.167:46924] AH01626: authorization result of <RequireAny>: granted, referer: http://198.211.116.12/berat [Thu Jul 25 20:04:25.399951 2024] [deflate:debug] [pid 111061] mod_deflate.c(904): [client 162.234.196.167:46918] AH01384: Zlib: Compressed 172831 to 53730 : URL /.next/static/chunks/fd9d1056-b6e16a5f15b47ad4.js, referer: http://198.211.116.12/berat [Thu Jul 25 20:04:25.400701 2024] [deflate:debug] [pid 111064] mod_deflate.c(904): [client 162.234.196.167:46924] AH01384: Zlib: Compressed 34265 to 11323 : URL /.next/static/chunks/974-4383d5ee376368de.js, referer: http://198.211.116.12/berat [Thu Jul 25 20:04:25.403109 2024] [deflate:debug] [pid 111063] mod_deflate.c(904): [client 162.234.196.167:46922] AH01384: Zlib: Compressed 123338 to 31586 : URL /.next/static/chunks/23-5a9ad72ddaa28de5.js, referer: http://198.211.116.12/berat [Thu Jul 25 20:04:25.417488 2024] [proxy:debug] [pid 111065] proxy_util.c(2154): AH00925: initializing worker http://127.0.0.1:3000/ shared [Thu Jul 25 20:04:25.417621 2024] [proxy:debug] [pid 111065] proxy_util.c(2214): AH00927: initializing worker http://127.0.0.1:3000/ local [Thu Jul 25 20:04:25.417671 2024] [proxy:debug] [pid 111065] proxy_util.c(2262): AH00931: initialized single connection worker in child 111065 for (127.0.0.1:3000) [Thu Jul 25 20:04:25.418052 2024] [authz_core:debug] [pid 111065] mod_authz_core.c(815): [client 162.234.196.167:46920] AH01626: authorization result of Require all granted: granted, referer: http://198.211.116.12/berat [Thu Jul 25 20:04:25.418077 2024] [authz_core:debug] [pid 111065] mod_authz_core.c(815): [client 162.234.196.167:46920] AH01626: authorization result of <RequireAny>: granted, referer: http://198.211.116.12/berat [Thu Jul 25 20:04:25.418934 2024] [deflate:debug] [pid 111065] mod_deflate.c(904): [client 162.234.196.167:46920] AH01384: Zlib: Compressed 12367 to 3954 : URL /.next/static/chunks/app/page-bc2ef30bd179ff7c.js, referer: http://198.211.116.12/berat [Thu Jul 25 20:04:25.437427 2024] [authz_core:debug] [pid 111060] mod_authz_core.c(815): [client 162.234.196.167:46916] AH01626: authorization result of Require all granted: granted, referer: http://198.211.116.12/berat [Thu Jul 25 20:04:25.437458 2024] [authz_core:debug] [pid 111060] mod_authz_core.c(815): [client 162.234.196.167:46916] AH01626: authorization result of <RequireAny>: granted, referer: http://198.211.116.12/berat [Thu Jul 25 20:04:25.437579 2024] [core:info] [pid 111060] [client 162.234.196.167:46916] AH00128: File does not exist: /var/www/html/berat/_next/image, referer: http://198.211.116.12/berat [Thu Jul 25 20:04:25.437845 2024] [authz_core:debug] [pid 111064] mod_authz_core.c(815): [client 162.234.196.167:46924] AH01626: authorization result of Require all granted: granted, referer: http://198.211.116.12/berat [Thu Jul 25 20:04:25.437855 2024] [authz_core:debug] [pid 111064] mod_authz_core.c(815): [client 162.234.196.167:46924] AH01626: authorization result of <RequireAny>: granted, referer: http://198.211.116.12/berat [Thu Jul 25 20:04:25.438148 2024] [deflate:debug] [pid 111064] mod_deflate.c(904): [client 162.234.196.167:46924] AH01384: Zlib: Compressed 3557 to 1647 : URL /.next/static/chunks/webpack-04c090bf27c652c8.js, referer: http://198.211.116.12/berat [Thu Jul 25 20:04:25.439061 2024] [authz_core:debug] [pid 111062] mod_authz_core.c(815): [client 162.234.196.167:46926] AH01626: authorization result of Require all granted: granted, referer: http://198.211.116.12/berat [Thu Jul 25 20:04:25.439075 2024] [authz_core:debug] [pid 111062] mod_authz_core.c(815): [client 162.234.196.167:46926] AH01626: authorization result of <RequireAny>: granted, referer: http://198.211.116.12/berat [Thu Jul 25 20:04:25.439177 2024] [core:info] [pid 111062] [client 162.234.196.167:46926] AH00128: File does not exist: /var/www/html/berat/logo.svg, referer: http://198.211.116.12/berat [Thu Jul 25 20:04:25.459724 2024] [authz_core:debug] [pid 111065] mod_authz_core.c(815): [client 162.234.196.167:46920] AH01626: authorization result of Require all granted: granted, referer: http://198.211.116.12/berat [Thu Jul 25 20:04:25.459832 2024] [authz_core:debug] [pid 111065] mod_authz_core.c(815): [client 162.234.196.167:46920] AH01626: authorization result of <RequireAny>: granted, referer: http://198.211.116.12/berat [Thu Jul 25 20:04:25.459989 2024] [core:info] [pid 111065] [client 162.234.196.167:46920] AH00128: File does not exist: /var/www/html/berat/_next/image, referer: http://198.211.116.12/berat [Thu Jul 25 20:04:25.471760 2024] [authz_core:debug] [pid 111064] mod_authz_core.c(815): [client 162.234.196.167:46924] AH01626: authorization result of Require all granted: granted, referer: http://198.211.116.12/berat [Thu Jul 25 20:04:25.471789 2024] [authz_core:debug] [pid 111064] mod_authz_core.c(815): [client 162.234.196.167:46924] AH01626: authorization result of <RequireAny>: granted, referer: http://198.211.116.12/berat [Thu Jul 25 20:04:25.471905 2024] [core:info] [pid 111064] [client 162.234.196.167:46924] AH00128: File does not exist: /var/www/html/berat/down.svg, referer: http://198.211.116.12/berat [Thu Jul 25 20:04:25.515516 2024] [authz_core:debug] [pid 111061] mod_authz_core.c(815): [client 162.234.196.167:46918] AH01626: authorization result of Require all granted: granted, referer: http://198.211.116.12/.next/static/css/8782c426ebf74cea.css [Thu Jul 25 20:04:25.515587 2024] [authz_core:debug] [pid 111061] mod_authz_core.c(815): [client 162.234.196.167:46918] AH01626: authorization result of <RequireAny>: granted, referer: http://198.211.116.12/.next/static/css/8782c426ebf74cea.css [Thu Jul 25 20:04:25.515712 2024] [core:info] [pid 111061] [client 162.234.196.167:46918] AH00128: File does not exist: /var/www/html/berat/.next/static/.next/static/media/c9a5bc6a7c948fb0-s.p.woff2, referer: http://198.211.116.12/.next/static/css/8782c426ebf74cea.css [Thu Jul 25 20:04:25.933396 2024] [authz_core:debug] [pid 111061] mod_authz_core.c(815): [client 162.234.196.167:46918] AH01626: authorization result of Require all granted: granted, referer: http://198.211.116.12/berat [Thu Jul 25 20:04:25.933427 2024] [authz_core:debug] [pid 111061] mod_authz_core.c(815): [client 162.234.196.167:46918] AH01626: authorization result of <RequireAny>: granted, referer: http://198.211.116.12/berat [Thu Jul 25 20:04:25.933532 2024] [core:info] [pid 111061] [client 162.234.196.167:46918] AH00128: File does not exist: /var/www/html/berat/_vercel/insights/script.js, referer: http://198.211.116.12/berat [Thu Jul 25 20:04:26.421232 2024] [proxy:debug] [pid 111066] proxy_util.c(2154): AH00925: initializing worker http://127.0.0.1:3000/ shared [Thu Jul 25 20:04:26.421281 2024] [proxy:debug] [pid 111066] proxy_util.c(2214): AH00927: initializing worker http://127.0.0.1:3000/ local [Thu Jul 25 20:04:26.421321 2024] [proxy:debug] [pid 111066] proxy_util.c(2262): AH00931: initialized single connection worker in child 111066 for (127.0.0.1:3000) [Thu Jul 25 20:04:27.424104 2024] [proxy:debug] [pid 111067] proxy_util.c(2154): AH00925: initializing worker http://127.0.0.1:3000/ shared [Thu Jul 25 20:04:27.424151 2024] [proxy:debug] [pid 111067] proxy_util.c(2214): AH00927: initializing worker http://127.0.0.1:3000/ local [Thu Jul 25 20:04:27.424190 2024] [proxy:debug] [pid 111067] proxy_util.c(2262): AH00931: initialized single connection worker in child 111067 for (127.0.0.1:3000) [Thu Jul 25 20:04:28.427917 2024] [proxy:debug] [pid 111068] proxy_util.c(2154): AH00925: initializing worker http://127.0.0.1:3000/ shared [Thu Jul 25 20:04:28.427964 2024] [proxy:debug] [pid 111068] proxy_util.c(2214): AH00927: initializing worker http://127.0.0.1:3000/ local [Thu Jul 25 20:04:28.428006 2024] [proxy:debug] [pid 111068] proxy_util.c(2262): AH00931: initialized single connection worker in child 111068 for (127.0.0.1:3000) [Thu Jul 25 20:04:29.432280 2024] [proxy:debug] [pid 111069] proxy_util.c(2154): AH00925: initializing worker http://127.0.0.1:3000/ shared [Thu Jul 25 20:04:29.432348 2024] [proxy:debug] [pid 111069] proxy_util.c(2214): AH00927: initializing worker http://127.0.0.1:3000/ local [Thu Jul 25 20:04:29.432409 2024] [proxy:debug] [pid 111069] proxy_util.c(2262): AH00931: initialized single connection worker in child 111069 for (127.0.0.1:3000) [Thu Jul 25 20:04:30.436130 2024] [proxy:debug] [pid 111070] proxy_util.c(2154): AH00925: initializing worker http://127.0.0.1:3000/ shared [Thu Jul 25 20:04:30.436182 2024] [proxy:debug] [pid 111070] proxy_util.c(2214): AH00927: initializing worker http://127.0.0.1:3000/ local [Thu Jul 25 20:04:30.436224 2024] [proxy:debug] [pid 111070] proxy_util.c(2262): AH00931: initialized single connection worker in child 111070 for (127.0.0.1:3000) ================================================= The existing apps for the "http://161.35.5.174/berat" test site are ( apache2.conf /etc/apache2/apache2.conf cat ../apache2.conf # Global configuration # # # ServerRoot: The top of the directory tree under which the server's # configuration, error, and log files are kept. # # # Do NOT add a slash at the end of the directory path. # #ServerRoot "/etc/apache2" # # The accept serialization lock file MUST BE STORED ON A LOCAL DISK. # #Mutex file:${APACHE_LOCK_DIR} default # # The directory where shm and other runtime files will be stored. # DefaultRuntimeDir ${APACHE_RUN_DIR} # # PidFile: The file in which the server should record its process # identification number when it starts. # This needs to be set in /etc/apache2/envvars # PidFile ${APACHE_PID_FILE} # # Timeout: The number of seconds before receives and sends time out. # Timeout 300 # # KeepAlive: Whether or not to allow persistent connections (more than # one request per connection). Set to "Off" to deactivate. # KeepAlive On # # MaxKeepAliveRequests: The maximum number of requests to allow # during a persistent connection. Set to 0 to allow an unlimited amount. # We recommend you leave this number high, for maximum performance. # MaxKeepAliveRequests 100 # # KeepAliveTimeout: Number of seconds to wait for the next request from the # same client on the same connection. # KeepAliveTimeout 5 # These need to be set in /etc/apache2/envvars User ${APACHE_RUN_USER} Group ${APACHE_RUN_GROUP} # # HostnameLookups: Log the names of clients or just their IP addresses # e.g., www.apache.org (on) or 204.62.129.132 (off). # The default is off because it'd be overall better for the net if people # had to knowingly turn this feature on, since enabling it means that # each client request will result in AT LEAST one lookup request to the # nameserver. # HostnameLookups Off # ErrorLog: The location of the error log file. # If you do not specify an ErrorLog directive within a <VirtualHost> # container, error messages relating to that virtual host will be # logged here. If you *do* define an error logfile for a <VirtualHost> # container, that host's errors will be logged there and not here. # ErrorLog ${APACHE_LOG_DIR}/error.log # # LogLevel: Control the severity of messages logged to the error_log. # Available values: trace8, ..., trace1, debug, info, notice, warn, # error, crit, alert, emerg. # It is also possible to configure the log level for particular modules, e.g. # "LogLevel info ssl:warn" # LogLevel warn # Include module configuration: IncludeOptional mods-enabled/*.load IncludeOptional mods-enabled/*.conf # Include list of ports to listen on Include ports.conf # Sets the default security model of the Apache2 HTTPD server. It does # not allow access to the root filesystem outside of /usr/share and /var/www. # The former is used by web applications packaged in Debian, # the latter may be used for local directories served by the web server. If # your system is serving content from a sub-directory in /srv you must allow # access here, or in any related virtual host. <Directory /> Options FollowSymLinks AllowOverride None Require all denied </Directory> <Directory /usr/share> AllowOverride None Require all granted </Directory> <Directory /var/www/> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory> #<Directory /srv/> # Options Indexes FollowSymLinks # AllowOverride None # Require all granted #</Directory> # AccessFileName: The name of the file to look for in each directory # for additional configuration directives. See also the AllowOverride # directive. # AccessFileName .htaccess # # The following lines prevent .htaccess and .htpasswd files from being # viewed by Web clients. # <FilesMatch "^\.ht"> Require all denied </FilesMatch> # # The following directives define some format nicknames for use with # a CustomLog directive. # # Note that the use of %{X-Forwarded-For}i instead of %h is not recommended. # Use mod_remoteip instead. # LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%h %l %u %t \"%r\" %>s %O" common LogFormat "%{Referer}i -> %U" referer LogFormat "%{User-agent}i" agent # Include of directories ignores editors' and dpkg's backup files, # see README.Debian for details. # Include generic snippets of statements IncludeOptional conf-enabled/*.conf # Include the virtual host configurations: IncludeOptional sites-enabled/*.conf ------------------------------------------ /etc/apache2/sites-available/berat.conf (doesn't work... dir list/ndx) cat berat.conf <VirtualHost *:80> ServerAdmin foo@xxxxxxxxx ServerName temp22 ServerAlias temp # # as test.. run from html2 # all other apps are in html # this is the same as the "clone" vhost #jul25/24 #stripped out DocumentRoot /var/www/html/berat #test for styles.. #does order matter??? -- the actual ip is used to test.. RewriteEngine On ## gets the 200 code for the content.. ProxyPass /berat http://127.0.0.1:3000/ ProxyPassReverse /berat http://127.0.0.1:3000/ #test #ttest substitute below RewriteEngine On SetOutputFilter INFLATE;proxy-html;SUBSTITUTE;DEFLATE; ProxyHTMLInterp On ProxyHTMLExtended Off AddOutputFilterByType SUBSTITUTE text/html Substitute "s|/_next/static/|\.\./\.next/static/|" Substitute "s|/_next/image\?url=\%2Fhero.jpg\&w=1920\&q=75|\.\./public/hero1|i" <Directory /var/www/html/berat> Header Set Pragma "no-cache" Header Set Expires "Thu, 1 Jan 1970 00:00:00 GMT" Header Set Cache-Control "max-age=0, no-store, no-cache, must-revalidate" Header Unset ETag FileETag None # DirectoryIndex index.html index.php Options +FollowSymLinks +MultiViews AllowOverride All #i think or 2.4 Order allow,deny #i think for 2.4 Allow from all #use for 2.4? Require all granted </Directory> LogLevel debug ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost> ------------------------------------------ a2ensite berat a2dissite berat the /var/log/apache/error.log data [Thu Jul 25 22:40:14.915931 2024] [proxy:debug] [pid 7492] proxy_util.c(2154): AH00925: initializing worker http://127.0.0.1:3000/ shared [Thu Jul 25 22:40:14.916024 2024] [proxy:debug] [pid 7492] proxy_util.c(2214): AH00927: initializing worker http://127.0.0.1:3000/ local [Thu Jul 25 22:40:14.916088 2024] [proxy:debug] [pid 7492] proxy_util.c(2262): AH00931: initialized single connection worker in child 7492 for (127.0.0.1:3000) [Thu Jul 25 22:40:14.919848 2024] [proxy:debug] [pid 7493] proxy_util.c(2154): AH00925: initializing worker http://127.0.0.1:3000/ shared [Thu Jul 25 22:40:14.919911 2024] [proxy:debug] [pid 7493] proxy_util.c(2214): AH00927: initializing worker http://127.0.0.1:3000/ local [Thu Jul 25 22:40:14.919953 2024] [proxy:debug] [pid 7493] proxy_util.c(2262): AH00931: initialized single connection worker in child 7493 for (127.0.0.1:3000) [Thu Jul 25 22:40:14.956882 2024] [mpm_prefork:notice] [pid 7490] AH00163: Apache/2.4.58 (Ubuntu) configured -- resuming normal operations [Thu Jul 25 22:40:14.956956 2024] [core:notice] [pid 7490] AH00094: Command line: '/usr/sbin/apache2' [Thu Jul 25 22:40:14.959526 2024] [proxy:debug] [pid 7494] proxy_util.c(2154): AH00925: initializing worker http://127.0.0.1:3000/ shared [Thu Jul 25 22:40:14.959584 2024] [proxy:debug] [pid 7494] proxy_util.c(2214): AH00927: initializing worker http://127.0.0.1:3000/ local [Thu Jul 25 22:40:14.959644 2024] [proxy:debug] [pid 7494] proxy_util.c(2262): AH00931: initialized single connection worker in child 7494 for (127.0.0.1:3000) [Thu Jul 25 22:40:14.960088 2024] [proxy:debug] [pid 7496] proxy_util.c(2154): AH00925: initializing worker http://127.0.0.1:3000/ shared [Thu Jul 25 22:40:14.960134 2024] [proxy:debug] [pid 7496] proxy_util.c(2214): AH00927: initializing worker http://127.0.0.1:3000/ local [Thu Jul 25 22:40:14.960189 2024] [proxy:debug] [pid 7496] proxy_util.c(2262): AH00931: initialized single connection worker in child 7496 for (127.0.0.1:3000) [Thu Jul 25 22:40:14.960650 2024] [proxy:debug] [pid 7495] proxy_util.c(2154): AH00925: initializing worker http://127.0.0.1:3000/ shared [Thu Jul 25 22:40:14.960695 2024] [proxy:debug] [pid 7495] proxy_util.c(2214): AH00927: initializing worker http://127.0.0.1:3000/ local [Thu Jul 25 22:40:14.960751 2024] [proxy:debug] [pid 7495] proxy_util.c(2262): AH00931: initialized single connection worker in child 7495 for (127.0.0.1:3000) [Thu Jul 25 22:40:29.374636 2024] [authz_core:debug] [pid 7493] mod_authz_core.c(815): [client 162.234.196.167:34294] AH01626: authorization result of Require all granted: granted [Thu Jul 25 22:40:29.374685 2024] [authz_core:debug] [pid 7493] mod_authz_core.c(815): [client 162.234.196.167:34294] AH01626: authorization result of <RequireAny>: granted [Thu Jul 25 22:40:29.375068 2024] [authz_core:debug] [pid 7493] mod_authz_core.c(815): [client 162.234.196.167:34294] AH01626: authorization result of Require all granted: granted [Thu Jul 25 22:40:29.375080 2024] [authz_core:debug] [pid 7493] mod_authz_core.c(815): [client 162.234.196.167:34294] AH01626: authorization result of <RequireAny>: granted [Thu Jul 25 22:40:29.376034 2024] [authz_core:debug] [pid 7493] mod_authz_core.c(815): [client 162.234.196.167:34294] AH01626: authorization result of Require all granted: granted [Thu Jul 25 22:40:29.376063 2024] [authz_core:debug] [pid 7493] mod_authz_core.c(815): [client 162.234.196.167:34294] AH01626: authorization result of <RequireAny>: granted [Thu Jul 25 22:40:29.377091 2024] [authz_core:debug] [pid 7493] mod_authz_core.c(815): [client 162.234.196.167:34294] AH01626: authorization result of Require all granted: granted [Thu Jul 25 22:40:29.377105 2024] [authz_core:debug] [pid 7493] mod_authz_core.c(815): [client 162.234.196.167:34294] AH01626: authorization result of <RequireAny>: granted [Thu Jul 25 22:40:29.377376 2024] [authz_core:debug] [pid 7493] mod_authz_core.c(815): [client 162.234.196.167:34294] AH01626: authorization result of Require all granted: granted [Thu Jul 25 22:40:29.377383 2024] [authz_core:debug] [pid 7493] mod_authz_core.c(815): [client 162.234.196.167:34294] AH01626: authorization result of <RequireAny>: granted [Thu Jul 25 22:40:29.377785 2024] [authz_core:debug] [pid 7493] mod_authz_core.c(815): [client 162.234.196.167:34294] AH01626: authorization result of Require all granted: granted [Thu Jul 25 22:40:29.377794 2024] [authz_core:debug] [pid 7493] mod_authz_core.c(815): [client 162.234.196.167:34294] AH01626: authorization result of <RequireAny>: granted [Thu Jul 25 22:40:29.378009 2024] [authz_core:debug] [pid 7493] mod_authz_core.c(815): [client 162.234.196.167:34294] AH01626: authorization result of Require all granted: granted [Thu Jul 25 22:40:29.378013 2024] [authz_core:debug] [pid 7493] mod_authz_core.c(815): [client 162.234.196.167:34294] AH01626: authorization result of <RequireAny>: granted [Thu Jul 25 22:40:29.378590 2024] [deflate:debug] [pid 7493] mod_deflate.c(904): [client 162.234.196.167:34294] AH01384: Zlib: Compressed 3604 to 692 : URL / [Thu Jul 25 22:40:29.522509 2024] [authz_core:debug] [pid 7494] mod_authz_core.c(815): [client 162.234.196.167:34296] AH01626: authorization result of Require all granted: granted [Thu Jul 25 22:40:29.522544 2024] [authz_core:debug] [pid 7494] mod_authz_core.c(815): [client 162.234.196.167:34296] AH01626: authorization result of <RequireAny>: granted [Thu Jul 25 22:40:29.522699 2024] [core:info] [pid 7494] [client 162.234.196.167:34296] AH00128: File does not exist: /var/www/html/berat/favicon.ico [Thu Jul 25 22:40:29.980110 2024] [proxy:debug] [pid 7499] proxy_util.c(2154): AH00925: initializing worker http://127.0.0.1:3000/ shared [Thu Jul 25 22:40:29.980177 2024] [proxy:debug] [pid 7499] proxy_util.c(2214): AH00927: initializing worker http://127.0.0.1:3000/ local [Thu Jul 25 22:40:29.980249 2024] [proxy:debug] [pid 7499] proxy_util.c(2262): AH00931: initialized single connection worker in child 7499 for (127.0.0.1:3000) ------------------------------------------ so... basically, the app running on the "http://198.211.116.12/berat" shows the "page" the app running on the "http://161.35.5.174/berat" shows the dir ndx!!! as far as I can tell, the same files are in both test srvrs. as to the "data" from the "nextjs" srvr (pms) this is generated by running pm2 start npm --name "waitlist-landing-page" -- start from the cmdline while in the /var/www/html/berat dir to validate, you can run "curl http://127.0.0.1:3000" which displays the actual data/content that is/should be inserted in the page. I suspect the issue will be something subtle. But I can't see it. The /var/www/html dir has a number of other test sites, but these shouldn't be an issue... There is only the one "berat" test app the's enabled -- "a2ensite berat" Each server has the same installed apache "mods" as well. The error logs start at the beginning where I did the "system restart", followed by selecting the URL... On Wed, Jul 24, 2024 at 9:46 AM Frank Gingras <thumbs@xxxxxxxxxx> wrote: > > > > On Wed, Jul 24, 2024 at 6:53 AM bruce <badouglas@xxxxxxxxx> wrote: >> >> Have rwo.3 test ubuntu servers - digital ocean. >> >> 1st server contains the initial list of webapps to test. >> Apps reside in /var/www/html/... >> Apps have >> chown www-data:www-data >> chmod 755 >> >> The tgt app >> /var/www/html/berat >> >> The vhosts reside >> /etc/apache2/sites-available >> berat.conf >> >> The 2nd test srvr is a "clone" of the 1st. So the action/webapps >> should run the same. >> >> However, running into a weird issue. >> >> The test "berat" uses a reverse proxy with a node app, to generate >> content for the app. >> When the node server isn't running, the app should display an err. >> >> test srvr1 >> >> http://161.35.5.174/berat/ >> Index of /berat >> [ICO] Name Last modified Size Description >> [PARENTDIR] Parent Directory - >> [TXT] README.md 2024-07-21 22:20 1.0K >> [DIR] app/ 2024-07-21 22:20 - >> . >> . >> . >> >> the dir listing, instead of the "err" statement >> >> >> -from the 2nd server >> http://198.211.116.12/berat >> The server is temporarily unable to service your request due to >> maintenance downtime or capacity problems. Please try again later. >> >> the working srvr... >> >> test srvr2 >> >> >> Initially I ran both tests from the "/var/www/html/berat" dir. >> >> But due to the issue with having the "dir" index/listing, I started >> trying to figure out why. >> >> I copied/tested the 1st srvr to the /var/www/html2/berat, changing the >> berat.conf vhost for the docroot/directory as a test process. >> >> No diff, still get the dir ndx/listing. >> >> At this point, took a closer look at the err log >> tail -50 /var/log/apache/error.log >> >> And I see a diff. -- don't know why, or what it means:: >> >> tst srvr1: --err >> [Wed Jul 24 07:44:05.039030 2024] [mpm_prefork:notice] [pid 192785] >> AH00163: Apache/2.4.58 (Ubuntu) configured -- resuming normal >> operations >> [Wed Jul 24 07:44:05.039068 2024] [core:notice] [pid 192785] AH00094: >> Command line: '/usr/sbin/apache2' >> [Wed Jul 24 07:44:05.048560 2024] [proxy:debug] [pid 198793] >> proxy_util.c(2154): AH00925: initializing worker >> http://127.0.0.1:3000/ shared >> [Wed Jul 24 07:44:05.048620 2024] [proxy:debug] [pid 198793] >> proxy_util.c(2214): AH00927: initializing worker >> http://127.0.0.1:3000/ local >> [Wed Jul 24 07:44:05.048677 2024] [proxy:debug] [pid 198793] >> proxy_util.c(2262): AH00931: initialized single connection worker in >> child 198793 for (127.0.0.1:3000) >> [Wed Jul 24 07:44:05.050566 2024] [proxy:debug] [pid 198794] >> proxy_util.c(2154): AH00925: initializing worker >> http://127.0.0.1:3000/ shared >> [Wed Jul 24 07:44:05.050610 2024] [proxy:debug] [pid 198794] >> proxy_util.c(2214): AH00927: initializing worker >> http://127.0.0.1:3000/ local >> [Wed Jul 24 07:44:05.050665 2024] [proxy:debug] [pid 198794] >> proxy_util.c(2262): AH00931: initialized single connection worker in >> child 198794 for (127.0.0.1:3000) >> [Wed Jul 24 07:44:05.056574 2024] [proxy:debug] [pid 198795] >> proxy_util.c(2154): AH00925: initializing worker >> http://127.0.0.1:3000/ shared >> [Wed Jul 24 07:44:05.056618 2024] [proxy:debug] [pid 198795] >> proxy_util.c(2214): AH00927: initializing worker >> http://127.0.0.1:3000/ local >> [Wed Jul 24 07:44:05.056671 2024] [proxy:debug] [pid 198795] >> proxy_util.c(2262): AH00931: initialized single connection worker in >> child 198795 for (127.0.0.1:3000) >> [Wed Jul 24 07:44:05.061509 2024] [proxy:debug] [pid 198796] >> proxy_util.c(2154): AH00925: initializing worker >> http://127.0.0.1:3000/ shared >> [Wed Jul 24 07:44:05.061550 2024] [proxy:debug] [pid 198796] >> proxy_util.c(2214): AH00927: initializing worker >> http://127.0.0.1:3000/ local >> [Wed Jul 24 07:44:05.061593 2024] [proxy:debug] [pid 198796] >> proxy_util.c(2262): AH00931: initialized single connection worker in >> child 198796 for (127.0.0.1:3000) >> [Wed Jul 24 07:44:05.062739 2024] [proxy:debug] [pid 198797] >> proxy_util.c(2154): AH00925: initializing worker >> http://127.0.0.1:3000/ shared >> [Wed Jul 24 07:44:05.062771 2024] [proxy:debug] [pid 198797] >> proxy_util.c(2214): AH00927: initializing worker >> http://127.0.0.1:3000/ local >> [Wed Jul 24 07:44:05.062814 2024] [proxy:debug] [pid 198797] >> proxy_util.c(2262): AH00931: initialized single connection worker in >> child 198797 for (127.0.0.1:3000) >> [Wed Jul 24 07:44:45.362991 2024] [authz_core:debug] [pid 198795] >> mod_authz_core.c(815): [client 162.234.196.167:57200] AH01626: >> authorization result of Require all granted: granted >> *********<<<<<<<< >> [Wed Jul 24 07:44:45.363050 2024] [authz_core:debug] [pid 198795] >> mod_authz_core.c(815): [client 162.234.196.167:57200] AH01626: >> authorization result of <RequireAny>: granted >> [Wed Jul 24 07:44:45.363391 2024] [authz_core:debug] [pid 198795] >> mod_authz_core.c(815): [client 162.234.196.167:57200] AH01626: >> authorization result of Require all granted: granted >> [Wed Jul 24 07:44:45.363499 2024] [authz_core:debug] [pid 198795] >> mod_authz_core.c(815): [client 162.234.196.167:57200] AH01626: >> authorization result of <RequireAny>: granted >> >> >> >> tst srvr2: --working >> [Wed Jul 24 07:42:58.603344 2024] [mpm_prefork:notice] [pid 91665] >> AH00163: Apache/2.4.58 (Ubuntu) configured -- resuming normal >> operations >> [Wed Jul 24 07:42:58.603420 2024] [core:notice] [pid 91665] AH00094: >> Command line: '/usr/sbin/apache2' >> [Wed Jul 24 07:42:58.605463 2024] [proxy:debug] [pid 91670] >> proxy_util.c(2154): AH00925: initializing worker >> http://127.0.0.1:3000/ shared >> [Wed Jul 24 07:42:58.605510 2024] [proxy:debug] [pid 91670] >> proxy_util.c(2214): AH00927: initializing worker >> http://127.0.0.1:3000/ local >> [Wed Jul 24 07:42:58.605546 2024] [proxy:debug] [pid 91670] >> proxy_util.c(2262): AH00931: initialized single connection worker in >> child 91670 for (127.0.0.1:3000) >> [Wed Jul 24 07:42:58.607920 2024] [proxy:debug] [pid 91671] >> proxy_util.c(2154): AH00925: initializing worker >> http://127.0.0.1:3000/ shared >> [Wed Jul 24 07:42:58.607954 2024] [proxy:debug] [pid 91671] >> proxy_util.c(2214): AH00927: initializing worker >> http://127.0.0.1:3000/ local >> [Wed Jul 24 07:42:58.607989 2024] [proxy:debug] [pid 91671] >> proxy_util.c(2262): AH00931: initialized single connection worker in >> child 91671 for (127.0.0.1:3000) >> [Wed Jul 24 07:43:03.630662 2024] [authz_core:debug] [pid 91667] >> mod_authz_core.c(843): [client 162.234.196.167:46026] AH01628: >> authorization result: granted (no directives) *************<<<<<< >> [Wed Jul 24 07:43:03.630780 2024] [proxy:debug] [pid 91667] >> mod_proxy.c(1521): [client 162.234.196.167:46026] AH01143: Running >> scheme http handler (attempt 0) >> [Wed Jul 24 07:43:03.630789 2024] [proxy:debug] [pid 91667] >> proxy_util.c(2576): AH00942: http: has acquired connection for >> (127.0.0.1:3000) >> [Wed Jul 24 07:43:03.630796 2024] [proxy:debug] [pid 91667] >> proxy_util.c(2641): [client 162.234.196.167:46026] AH00944: connecting >> http://127.0.0.1:3000/ to 127.0.0.1:3000 >> [Wed Jul 24 07:43:03.630940 2024] [proxy:debug] [pid 91667] >> proxy_util.c(2864): [client 162.234.196.167:46026] AH00947: connected >> / to 127.0.0.1:3000 >> >> >> >> the test vhost is >> (docroot/dir is diff based on testing in the dirs) >> <VirtualHost *:80> >> ServerAdmin foo@xxxxxxxxx >> ServerName temp22 >> ServerAlias temp >> # >> # as test.. run from html2 >> # all other apps are in html >> # this is the same as the "clone" vhost >> DocumentRoot /var/www/html2/berat >> >> #test for styles.. >> #does order matter??? -- the actual ip is used to test.. >> >> #ProxyPass /_next/static/ http://198.211.116.12/berat/.next/static/ >> #ProxyPassReverse /_next/static http://198.211.116.12/berat/.next/static/ >> >> >> #a ProxyPass /_next/static/css >> http://198.211.116.12/berat/.next/static/css/ >> #a ProxyPassReverse /_next/static/css >> http://198.211.116.12/berat/.next/static/css/ >> >> #a ProxyPass /_next/static/chunks/app/ >> http://198.211.116.12/berat/.next/static/chunks/app/ >> #a ProxyPassReverse /_next/static/chunks/app >> http://198.211.116.12/berat/.next/static/chunks/app/ >> >> #a ProxyPass /_next/static/chunks/ >> http://198.211.116.12/berat/.next/static/chunks/ >> #a ProxyPassReverse /_next/static/chunks >> http://198.211.116.12/berat/.next/static/chunks/ >> >> #a ProxyPass /_next/static/media/ >> http://198.211.116.12/berat/.next/static/media/ >> #a ProxyPassReverse /_next/static/media >> http://198.211.116.12/berat/.next/static/media/ >> >> #ProxyPass http://161.35.5.174/down.svg >> http://161.35.5.174/berat/public/down.svg >> #ProxyPassReverse http://161.35.5.174/down.svg >> http://161.35.5.174/berat/public/down.svg >> >> #a ProxyPass "/down.svg" http://161.35.5.174/berat/public/down.svg >> #a ProxyPassReverse "/down.svg" http://161.35.5.174/berat/public/down.svg >> >> #a ProxyPass "/logo.svg" http://161.35.5.174/berat/public/logo.svg >> #a ProxyPassReverse "/logo.svg" http://161.35.5.174/berat/public/logo.svg >> >> #ProxyPass "/_next/image" http://161.35.5.174/berat/.next/image >> #ProxyPassReverse "/_next/image" http://161.35.5.174/berat/.next/image >> >> >> #aa ProxyPass /_next/image/ http://161.35.5.174/berat/public/hero1 >> #http://161.35.5.174/berat/public >> # ProxyPassReverse /_next/image/ http://161.35.5.174/berat/public/hero1 >> #http://161.35.5.174/berat/public >> >> >> #ProxyPass / http://161.35.5.174/berat/public/ >> #ProxyPassReverse / http://161.35.5.174/berat/public/ >> >> >> # ProxyPass "hero.jpg&w=640&q=75" http://161.35.5.174/berat/public/hero1 >> # ProxyPassReverse "hero.jpg&w=640&q=75" >> http://161.35.5.174/berat/public/hero1 >> >> # ProxyPass /_next/image?url=/hero.jpg&w=1920&q=75 >> http://161.35.5.174/berat/public/hero2 >> # ProxyPassReverse /_next/image?url=/hero.jpg&w=1920&q=75 >> http://161.35.5.174/berat/public/hero2 >> >> # ProxyPass /_next/image?url=/hero.jpg&w=1080&q=75 >> http://161.35.5.174/berat/public/hero2 >> # ProxyPassReverse /_next/image?url=/hero.jpg&w=1080&q=75 >> http://161.35.5.174/berat/public/hero2 >> >> # ProxyPass "/_next/image?url=%2Fhero.jpg&w=750&q=75" >> http://161.35.5.174/berat/public/hero1 >> # ProxyPassReverse "/_next/image?url=%2Fhero.jpg&w=750&q=75" >> http://161.35.5.174/berat/public/hero1 >> >> # ProxyPass /_next/image?url=/hero.jpg&w=640&q=75 >> http://161.35.5.174/berat/public/hero2 >> # ProxyPassReverse /_next/image?url=/hero.jpg&w=640&q=75 >> http://161.35.5.174/berat/public/hero2 >> >> # ProxyPass "/_next/image?url=%2Fhero.jpg&w=750&q=75" >> http://161.35.5.174/berat/public/hero1 >> # ProxyPassReverse "/_next/image?url=%2Fhero.jpg&w=750&q=75" >> http://161.35.5.174/berat/public/hero1 >> >> # ProxyPass "/_next/image?url=/hero.jpg&w=640&q=75" >> http://161.35.5.174/berat/public/hero2 >> # ProxyPassReverse "/_next/image?url=/hero.jpg&w=640&q=75" >> http://161.35.5.174/berat/public/hero2 >> >> # ProxyPass "/_next/image?url=%2Fhero.jpg&w=640&q=75" >> http://161.35.5.174/berat/public/hero1 >> # ProxyPassReverse "/_next/image?url=%2Fhero.jpg&w=640&q=75" >> http://161.35.5.174/berat/public/hero1 >> >> #a ProxyPass /_next/image/ http://161.35.5.174/berat/publicfoo/ >> #a ProxyPassReverse /_next/image http://161.35.5.174/berat/publicfoo/ >> >> #ProxyPass /_next/static/media/ >> http://161.35.5.174/berat/.next/static/media/ >> #ProxyPassReverse /_next/static/media >> http://161.35.5.174/berat/.next/static/media/ >> >> >> # ProxyPass "/_next/image/" qqqqq >> # ProxyPassReverse "/_next/image/" qqqqq >> >> >> >> #/_next/image?url=%2Fhero.jpg&w=750&q=75 >> # /_next/image?url=%2Fhero.jpg&w=1920&q=75 >> #/_next/image?url=%2Fhero.jpg&w=1920&q=75 >> >> #/_next/image?url=%2Fhero.jpg&w=640&q=75 >> #/_next/image?url=%2Fhero.jpg&w=1080&q=75 >> >> # Substitute >> "s|/_next/image?url=%2Fhero.jpg&w=750&q=75|http://161.35.5.174/berat/public/hero1|i" >> # Substitute >> "s|/_next/image?url=%2Fhero.jpg&w=1920&q=75|http://161.35.5.174/berat/public/hero1|i" >> >> # ProxyHTMLEnable on >> >> # AddOutputFilterByType SUBSTITUTE text/html text/xml >> text/javascript application/json >> #a Substitute "s|1920|77777|i" >> #a Substitute "s|648|64888|i" >> >> # Substitute "s|Ideal Experience|BBBBBBBBBBBB|i" >> >> >> #Substitute >> "s|/_next/image?url=%2Fhero.jpg&w=640&q=75|http://161.35.5.174/berat/public/hero2|i" >> #Substitute >> "s|/_next/image?url=\%2Fhero.jpg\&w=640\&q=75|http://161.35.5.174/berat/public/hero2|i" >> >> # Substitute >> "s|/_next/image?url=%2Fhero.jpg&w=1080&q=75|http://161.35.5.174/berat/public/hero2|i" >> >> #Substitute "s|http://uat.site.co.jp/|http://jp.uat.site2uk.co.uk/|i" >> >> #a AddOutputFilterByType SUBSTITUTE text/html text/xml >> text/javascript application/json >> >> #test >> RewriteEngine On >> #a RewriteCond %{HTTP:Connection} Upgrade [NC] >> #a RewriteCond %{HTTP:Upgrade} websocket [NC] >> #a RewriteRule /(.*) ws://127.0.0.1:3000/$1 [P,L] >> >> #a Substitute "s|1920|77777|i" >> #a Substitute "s|648|64888|i" >> >> >> #test for styles.. >> >> #ww ProxyPass /berat http://127.0.0.1:3000/ >> #ww ProxyPassReverse /berat http://127.0.0.1:3000/ >> >> ##--- leave this alone.. it works jul22/24 >> ## gets the 200 code for the content.. >> ProxyPass /berat http://127.0.0.1:3000/ >> ProxyPassReverse /berat http://127.0.0.1:3000/ >> >> # ProxyPass /_next/static/chunks/ >> http://198.211.116.12/berat/.next/static/chunks/ >> # ProxyPassReverse /_next/static/chunks >> http://198.211.116.12/berat/.next/static/chunks/ >> >> #test >> >> #ttest substitute below >> RewriteEngine On >> SetOutputFilter INFLATE;proxy-html;SUBSTITUTE;DEFLATE; >> ProxyHTMLInterp On >> ProxyHTMLExtended Off >> >> >> AddOutputFilterByType SUBSTITUTE text/html >> #text/xml text/javascript application/json >> #Substitute "s|Ideal Experience|zz zz BBBBBBBBBBBB|" >> Substitute "s|/_next/static/|\.\./\.next/static/|" >> >> #Substitute "s|/_next/static/chunks|\.\./\.next/static/chunks|" >> #ProxyPass /_next/static/ http://198.211.116.12/berat/.next/static/ >> >> #Substitute >> "s|/_next/image?url=%2Fhero.jpg&w=640&q=75|http://161.35.5.174/berat/public/hero2|i" >> # Substitute >> "s|/_next/image?url=\%2Fhero.jpg\&w=640\&q=75|\.\./public/hero2|i" >> >> # Substitute >> "s|/_next/image?url=%2Fhero.jpg&w=750&q=75|http://161.35.5.174/berat/public/hero1|i" >> # Substitute >> "s|/_next/image?url=\%2Fhero.jpg\&w=1920\&q=75|\.\./public/hero1|i" >> Substitute >> "s|/_next/image\?url=\%2Fhero.jpg\&w=1920\&q=75|\.\./public/hero1|i" >> >> # Substitute >> "s|/_next/image?url=\%2Fhero.jpg\&w=750\&q=75|\.\./public/hero1|i" >> # Substitute >> "s|/_next/image?url=\%2Fhero.jpg\&w=1920\&q=75|\.\./public/hero1|i" >> >> #http://198.211.116.12 >> #/_next/image?url=%2Fhero.jpg&w=1920&q=75 >> >> >> #EnableSendfile off >> # test above >> >> #a RewriteCond %{HTTP:Connection} Upgrade [NC] >> #a RewriteCond %{HTTP:Upgrade} websocket [NC] >> #a RewriteRule /(.*) ws://127.0.0.1:3000/$1 [P,L] >> >> >> #a AddOutputFilterByType SUBSTITUTE text/html text/xml >> text/javascript application/json >> #a Substitute "s|1920|7777744|i" >> #a Substitute "s|648|6488811|i" >> >> >> >> #test2 >> #ProxyPass /_next/image/ http://161.35.5.174/berat/public/hero1 >> #http://161.35.5.174/berat/public >> #ProxyPassReverse /_next/image/ http://161.35.5.174/berat/public/hero1 >> #http://161.35.5.174/berat/public >> >> >> # ProxyPass "/_next/image?url=%2Fhero.jpg&w=750&q=75" >> http://161.35.5.174/berat/public/hero1 >> # ProxyPassReverse "/_next/image?url=%2Fhero.jpg&w=750&q=75" >> http://161.35.5.174/berat/public/hero1 >> >> # ProxyPass "/_next/image?url=/hero.jpg&w=640&q=75" >> http://161.35.5.174/berat/public/hero2 >> # ProxyPassReverse "/_next/image?url=/hero.jpg&w=640&q=75" >> http://161.35.5.174/berat/public/hero2 >> >> >> >> #DocumentRoot /var/www/html/berat >> >> >> <Directory /var/www/html2/berat> >> >> Header Set Pragma "no-cache" >> Header Set Expires "Thu, 1 Jan 1970 00:00:00 GMT" >> Header Set Cache-Control "max-age=0, no-store, no-cache, must-revalidate" >> Header Unset ETag >> FileETag None >> >> #ProxyRequests Off >> #ProxyPreserveHost On >> #<Proxy *> >> # Require all granted >> #</Proxy> >> >> #ProxyPass / http://127.0.0.1:3000/ >> >> #ProxyPassReverse / http://127.0.0.1:3000/ >> >> # DirectoryIndex index.html index.php >> >> # Options -Indexes +FollowSymLinks +MultiViews >> Options +FollowSymLinks +MultiViews >> >> AllowOverride All >> #Options -MultiViews >> #i think or 2.4 Order allow,deny >> #i think for 2.4 Allow from all >> >> #use for 2.4? >> Require all granted >> ##Options -Indexes +FollowSymLinks +MultiViews >> AllowOverride All Require all granted >> >> >> ##Options Indexes FollowSymLinks MultiViews >> ##Options -Indexes FollowSymlinks >> #Options FollowSymlinks >> #AllowOverride All >> ##Order allow,deny >> ##allow from all >> #Require all granted >> >> >> >> >> </Directory> >> >> ##Alias "/berat" "/var/www/html/berat/" >> >> >> LogLevel debug >> ErrorLog ${APACHE_LOG_DIR}/error.log >> CustomLog ${APACHE_LOG_DIR}/access.log combined >> </VirtualHost> >> >> >> as far as I can determine, the enabled/installed mods for apache are >> the same on both systems. >> >> >> any thoughts/comments for why the test servers would have diff >> displays for same code? >> >> the url(s) is actual test servers >> >> >> On Tue, Jul 23, 2024 at 7:00 PM Frank Gingras <thumbs@xxxxxxxxxx> wrote: >> > >> > >> > >> > On Tue, Jul 23, 2024 at 6:39 PM bruce <badouglas@xxxxxxxxx> wrote: >> >> >> >> My issue? >> >> >> >> I'm trying to understand why having what appears to be two copies of >> >> the same setup has one showing the dir/index, with the other showing >> >> the err that i expect.. >> >> >> >> http://198.211.116.12/berat >> >> The server is temporarily unable to service your request due to >> >> maintenance downtime or capacity problems... >> >> >> >> the working srvr... >> >> >> >> ------------------------------------------ >> >> >> >> http://161.35.5.174/berat/ >> >> Index of /berat >> >> [ICO] Name Last modified Size Description >> >> [PARENTDIR] Parent Directory - >> >> [TXT] README.md 2024-07-21 22:20 1.0K >> >> [DIR] app/ 2024-07-21 22:20 - >> >> . >> >> . >> >> . >> >> >> >> the dir listing, instead of the "err" statement >> >> -from the 2nd/err server >> >> >> >> >> >> they should be the same output. >> >> >> >> the 2 systems are using the ipaddress as they're tmp servers.. >> >> >> >> On Tue, Jul 23, 2024 at 5:25 PM Frank Gingras <thumbs@xxxxxxxxxx> wrote: >> >> > >> >> > >> >> > >> >> > On Tue, Jul 23, 2024 at 5:16 PM bruce <badouglas@xxxxxxxxx> wrote: >> >> >> >> >> >> Hi Frank.. >> >> >> >> >> >> The 2 test servers..have pretty much the same test sites/dirs in the >> >> >> /var/www/html dir... >> >> >> >> >> >> They have the same config files. I basically did a clone of the srvr >> >> >> from digital ocean.. >> >> >> >> >> >> As a curiosity, I did a shutdown/restart of both test apache server, >> >> >> thinking the "tail -300 /var/logs/apache/error.log" would have pretty >> >> >> much the same output... >> >> >> >> >> >> I was wrong.. >> >> >> the error apache is... >> >> >> [Tue Jul 23 21:05:02.477041 2024] [proxy:debug] [pid 189806] >> >> >> proxy_util.c(2214): AH00927: initializing worker >> >> >> http://161.35.5.174/berat/.next/static/chunks/ local >> >> >> [Tue Jul 23 21:05:02.477180 2024] [proxy:debug] [pid 189806] >> >> >> proxy_util.c(2262): AH00931: initialized single connection worker in >> >> >> child 189806 for (161.35.5.174:80) >> >> >> [Tue Jul 23 21:05:02.477194 2024] [proxy:debug] [pid 189806] >> >> >> proxy_util.c(2154): AH00925: initializing worker >> >> >> http://161.35.5.174/berat/.next/static/media/ shared >> >> >> [Tue Jul 23 21:05:02.477210 2024] [proxy:debug] [pid 189806] >> >> >> proxy_util.c(2214): AH00927: initializing worker >> >> >> http://161.35.5.174/berat/.next/static/media/ local >> >> >> [Tue Jul 23 21:05:02.477254 2024] [proxy:debug] [pid 189806] >> >> >> proxy_util.c(2262): AH00931: initialized single connection worker in >> >> >> child 189806 for (161.35.5.174:80) >> >> >> [Tue Jul 23 21:05:02.477259 2024] [proxy:debug] [pid 189806] >> >> >> proxy_util.c(2154): AH00925: initializing worker >> >> >> http://161.35.5.174/berat/public/down.svg shared >> >> >> [Tue Jul 23 21:05:02.477263 2024] [proxy:debug] [pid 189806] >> >> >> proxy_util.c(2214): AH00927: initializing worker >> >> >> http://161.35.5.174/berat/public/down.svg local >> >> >> [Tue Jul 23 21:05:02.477302 2024] [proxy:debug] [pid 189806] >> >> >> proxy_util.c(2262): AH00931: initialized single connection worker in >> >> >> child 189806 for (161.35.5.174:80) >> >> >> [Tue Jul 23 21:05:02.477318 2024] [proxy:debug] [pid 189806] >> >> >> proxy_util.c(2154): AH00925: initializing worker >> >> >> http://161.35.5.174/berat/public/logo.svg shared >> >> >> [Tue Jul 23 21:05:02.477329 2024] [proxy:debug] [pid 189806] >> >> >> proxy_util.c(2214): AH00927: initializing worker >> >> >> http://161.35.5.174/berat/public/logo.svg local >> >> >> [Tue Jul 23 21:05:02.477368 2024] [proxy:debug] [pid 189806] >> >> >> proxy_util.c(2262): AH00931: initialized single connection worker in >> >> >> child 189806 for (161.35.5.174:80) >> >> >> [Tue Jul 23 21:05:02.477373 2024] [proxy:debug] [pid 189806] >> >> >> proxy_util.c(2154): AH00925: initializing worker >> >> >> http://161.35.5.174/berat/publicfoo/ shared >> >> >> [Tue Jul 23 21:05:02.477377 2024] [proxy:debug] [pid 189806] >> >> >> proxy_util.c(2214): AH00927: initializing worker >> >> >> http://161.35.5.174/berat/publicfoo/ local >> >> >> [Tue Jul 23 21:05:02.477408 2024] [proxy:debug] [pid 189806] >> >> >> proxy_util.c(2262): AH00931: initialized single connection worker in >> >> >> child 189806 for (161.35.5.174:80) >> >> >> [Tue Jul 23 21:05:02.477413 2024] [proxy:debug] [pid 189806] >> >> >> proxy_util.c(2154): AH00925: initializing worker >> >> >> http://127.0.0.1:3000/ shared >> >> >> [Tue Jul 23 21:05:02.477424 2024] [proxy:debug] [pid 189806] >> >> >> proxy_util.c(2214): AH00927: initializing worker >> >> >> http://127.0.0.1:3000/ local >> >> >> [Tue Jul 23 21:05:02.477459 2024] [proxy:debug] [pid 189806] >> >> >> proxy_util.c(2262): AH00931: initialized single connection worker in >> >> >> child 189806 for (127.0.0.1:3000) >> >> >> [Tue Jul 23 21:05:02.477465 2024] [proxy:debug] [pid 189806] >> >> >> proxy_util.c(2154): AH00925: initializing worker >> >> >> http://127.0.0.1:3000/ shared >> >> >> [Tue Jul 23 21:05:02.477475 2024] [proxy:debug] [pid 189806] >> >> >> proxy_util.c(2214): AH00927: initializing worker >> >> >> http://127.0.0.1:3000/ local >> >> >> [Tue Jul 23 21:05:02.477508 2024] [proxy:debug] [pid 189806] >> >> >> proxy_util.c(2262): AH00931: initialized single connection worker in >> >> >> child 189806 for (127.0.0.1:3000) >> >> >> >> >> >> >> >> >> >> >> >> the working apache is: >> >> >> result of Require all granted: granted >> >> >> [Tue Jul 23 20:16:46.352097 2024] [authz_core:debug] [pid 76009] >> >> >> mod_authz_core.c(815): [client 143.110.222.166:57950] AH01626: >> >> >> authorization result of <RequireAny>: granted >> >> >> [Tue Jul 23 20:16:46.352584 2024] [authz_core:debug] [pid 76009] >> >> >> mod_authz_core.c(815): [client 143.110.222.166:57950] AH01626: >> >> >> authorization result of Require all granted: granted >> >> >> [Tue Jul 23 20:16:46.352596 2024] [authz_core:debug] [pid 76009] >> >> >> mod_authz_core.c(815): [client 143.110.222.166:57950] AH01626: >> >> >> authorization result of <RequireAny>: granted >> >> >> [Tue Jul 23 20:16:46.352810 2024] [authz_core:debug] [pid 76009] >> >> >> mod_authz_core.c(815): [client 143.110.222.166:57950] AH01626: >> >> >> authorization result of Require all granted: granted >> >> >> [Tue Jul 23 20:16:46.352815 2024] [authz_core:debug] [pid 76009] >> >> >> mod_authz_core.c(815): [client 143.110.222.166:57950] AH01626: >> >> >> authorization result of <RequireAny>: granted >> >> >> [Tue Jul 23 20:16:46.353448 2024] [deflate:debug] [pid 76009] >> >> >> mod_deflate.c(904): [client 143.110.222.166:57950] AH01384: Zlib: >> >> >> Compressed 4677 to 787 : URL / >> >> >> [Tue Jul 23 20:59:59.913291 2024] [mpm_prefork:notice] [pid 58743] >> >> >> AH00170: caught SIGWINCH, shutting down gracefully >> >> >> [Tue Jul 23 21:00:00.314389 2024] [proxy:debug] [pid 83188] >> >> >> proxy_util.c(2154): AH00925: initializing worker >> >> >> http://127.0.0.1:3000/ shared >> >> >> [Tue Jul 23 21:00:00.314465 2024] [proxy:debug] [pid 83188] >> >> >> proxy_util.c(2214): AH00927: initializing worker >> >> >> http://127.0.0.1:3000/ local >> >> >> [Tue Jul 23 21:00:00.314514 2024] [proxy:debug] [pid 83188] >> >> >> proxy_util.c(2262): AH00931: initialized single connection worker in >> >> >> child 83188 for (127.0.0.1:3000) >> >> >> [Tue Jul 23 21:00:00.321607 2024] [proxy:debug] [pid 83189] >> >> >> proxy_util.c(2154): AH00925: initializing worker >> >> >> http://127.0.0.1:3000/ shared >> >> >> [Tue Jul 23 21:00:00.321690 2024] [proxy:debug] [pid 83189] >> >> >> proxy_util.c(2214): AH00927: initializing worker >> >> >> http://127.0.0.1:3000/ local >> >> >> [Tue Jul 23 21:00:00.321747 2024] [proxy:debug] [pid 83189] >> >> >> proxy_util.c(2262): AH00931: initialized single connection worker in >> >> >> child 83189 for (127.0.0.1:3000) >> >> >> [Tue Jul 23 21:00:00.329192 2024] [proxy:debug] [pid 83190] >> >> >> proxy_util.c(2154): AH00925: initializing worker >> >> >> http://127.0.0.1:3000/ shared >> >> >> [Tue Jul 23 21:00:00.329269 2024] [proxy:debug] [pid 83190] >> >> >> proxy_util.c(2214): AH00927: initializing worker >> >> >> http://127.0.0.1:3000/ local >> >> >> [Tue Jul 23 21:00:00.329320 2024] [proxy:debug] [pid 83190] >> >> >> proxy_util.c(2262): AH00931: initialized single connection worker in >> >> >> child 83190 for (127.0.0.1:3000) >> >> >> [Tue Jul 23 21:00:00.333077 2024] [mpm_prefork:notice] [pid 83186] >> >> >> AH00163: Apache/2.4.58 (Ubuntu) configured -- resuming normal >> >> >> operations >> >> >> [Tue Jul 23 21:00:00.333201 2024] [core:notice] [pid 83186] AH00094: >> >> >> Command line: '/usr/sbin/apache2' >> >> >> [Tue Jul 23 21:00:00.335050 2024] [proxy:debug] [pid 83191] >> >> >> proxy_util.c(2154): AH00925: initializing worker >> >> >> http://127.0.0.1:3000/ shared >> >> >> [Tue Jul 23 21:00:00.335132 2024] [proxy:debug] [pid 83191] >> >> >> proxy_util.c(2214): AH00927: initializing worker >> >> >> http://127.0.0.1:3000/ local >> >> >> [Tue Jul 23 21:00:00.335196 2024] [proxy:debug] [pid 83191] >> >> >> proxy_util.c(2262): AH00931: initialized single connection worker in >> >> >> child 83191 for (127.0.0.1:3000) >> >> >> [Tue Jul 23 21:00:00.339094 2024] [proxy:debug] [pid 83192] >> >> >> proxy_util.c(2154): AH00925: initializing worker >> >> >> http://127.0.0.1:3000/ shared >> >> >> [Tue Jul 23 21:00:00.339160 2024] [proxy:debug] [pid 83192] >> >> >> proxy_util.c(2214): AH00927: initializing worker >> >> >> http://127.0.0.1:3000/ local >> >> >> [Tue Jul 23 21:00:00.339205 2024] [proxy:debug] [pid 83192] >> >> >> proxy_util.c(2262): AH00931: initialized single connection worker in >> >> >> child 83192 for (127.0.0.1:3000) >> >> >> r >> >> >> >> >> >> my question is... >> >> >> why/what is causing this in the err system??? >> >> >> [Tue Jul 23 21:05:02.477373 2024] [proxy:debug] [pid 189806] >> >> >> proxy_util.c(2154): AH00925: initializing worker >> >> >> http://161.35.5.174/berat/publicfoo/ shared >> >> >> [Tue Jul 23 21:05:02.477377 2024] [proxy:debug] [pid 189806] >> >> >> proxy_util.c(2214): AH00927: initializing worker >> >> >> http://161.35.5.174/berat/publicfoo/ local >> >> >> >> >> >> >> >> >> On Tue, Jul 23, 2024 at 3:16 PM Frank Gingras <thumbs@xxxxxxxxxx> wrote: >> >> >> > >> >> >> > >> >> >> > >> >> >> > On Tue, Jul 23, 2024 at 2:40 PM bruce <badouglas@xxxxxxxxx> wrote: >> >> >> >> >> >> >> >> By vhosts, I'm assuming you mean the conf files in the >> >> >> >> /etc/apache/sites-available >> >> >> >> /etc/apache/sites-enabled >> >> >> >> dirs. >> >> >> >> >> >> >> >> I have a lot of these files. I had removed/copied then to a separate >> >> >> >> dir, and then did a global a2dissite * to test if this made a diff in >> >> >> >> that when I test the http://1.2.3.4/foo if I get an err.. instead of >> >> >> >> the app or the dir index. >> >> >> >> >> >> >> >> when I copy the files back to the dir.. and redo the a2ensite for all >> >> >> >> the test sites.. >> >> >> >> >> >> >> >> apachectl -S >> >> >> >> AH00112: Warning: DocumentRoot [/var/www/html/berat_1] does not exist >> >> >> >> AH00112: Warning: DocumentRoot [/var/www/html/chainsafe2] does not exist >> >> >> >> AH00558: apache2: Could not reliably determine the server's fully >> >> >> >> qualified domain name, using 10.10.0.9. Set the 'ServerName' directive >> >> >> >> globally to suppress this message >> >> >> >> VirtualHost configuration: >> >> >> >> *:80 is a NameVirtualHost >> >> >> >> default server temp22 (/etc/apache2/sites-enabled/ajparrah.conf:1) >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/ajparrah.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/amaitou.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 >> >> >> >> (/etc/apache2/sites-enabled/balazsotakomaiya.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/berat.conf:3) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 >> >> >> >> (/etc/apache2/sites-enabled/berat_used_to_work_now_idx.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/chainsafe.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/coralsio.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 >> >> >> >> (/etc/apache2/sites-enabled/dashdeipayan.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 >> >> >> >> (/etc/apache2/sites-enabled/davehawkins.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/dolibarr.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/domainmod.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/drougnov.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 >> >> >> >> (/etc/apache2/sites-enabled/eapenzacharias.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/filgeary.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/flatpress.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/freescout.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/gakz.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/glozzome.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/imminion.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 >> >> >> >> (/etc/apache2/sites-enabled/invoiceninja.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 >> >> >> >> (/etc/apache2/sites-enabled/invoiceplane.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 >> >> >> >> (/etc/apache2/sites-enabled/itsowaisnoor.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/jijunair.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/jonstavis.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/larap.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/mantisbt.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/matomo.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/minthcm.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/mloberg.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/muratcan.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 >> >> >> >> (/etc/apache2/sites-enabled/nabunyalilian.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/petronius.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/priyansh.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/quaninte.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 >> >> >> >> (/etc/apache2/sites-enabled/ricardobarantini.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/saasfly.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/sendnaw.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/sendportal.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 >> >> >> >> (/etc/apache2/sites-enabled/shahramshakiba.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 >> >> >> >> (/etc/apache2/sites-enabled/siddharthssb11.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/snipe.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 >> >> >> >> (/etc/apache2/sites-enabled/soufianeelc.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 >> >> >> >> (/etc/apache2/sites-enabled/terieyenike.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/uideck.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/userlp.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/wave.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/zaidajani.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/zentaopms.conf:1) >> >> >> >> alias temp >> >> >> >> ServerRoot: "/etc/apache2" >> >> >> >> Main DocumentRoot: "/var/www/html" >> >> >> >> Main ErrorLog: "/var/log/apache2/error.log" >> >> >> >> Mutex mpm-accept: using_defaults >> >> >> >> Mutex watchdog-callback: using_defaults >> >> >> >> Mutex rewrite-map: using_defaults >> >> >> >> Mutex proxy: using_defaults >> >> >> >> Mutex default: dir="/var/run/apache2/" mechanism=default >> >> >> >> PidFile: "/var/run/apache2/apache2.pid" >> >> >> >> Define: DUMP_VHOSTS >> >> >> >> Define: DUMP_RUN_CFG >> >> >> >> User: name="www-data" id=33 >> >> >> >> Group: name="www-data" id=33 >> >> >> >> >> >> >> >> and I get >> >> >> >> http://161.35.5.174/berat/ >> >> >> >> dir/ndx listing... >> >> >> >> >> >> >> >> for the working tst srvr.... >> >> >> >> http://198.211.116.12/berat >> >> >> >> The server is temporarily unable to service your request due to >> >> >> >> maintenance downtime or capacity problems. Please try again later. >> >> >> >> (is the expected return as the underlying node server isn't >> >> >> >> running..) proxy/reverse proxy (this all works) >> >> >> >> >> >> >> >> oh... on the working server... here's the data as well.. >> >> >> >> >> >> >> >> apachectl -S >> >> >> >> AH00558: apache2: Could not reliably determine the server's fully >> >> >> >> qualified domain name, using 127.0.1.1. Set the 'ServerName' directive >> >> >> >> globally to suppress this message >> >> >> >> VirtualHost configuration: >> >> >> >> *:80 is a NameVirtualHost >> >> >> >> default server temp22 (/etc/apache2/sites-enabled/berat.conf:1) >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/berat.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/dolibarr.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/domainmod.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/drougnov.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/filgeary.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/flatpress.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/freescout.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/glozzome.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 >> >> >> >> (/etc/apache2/sites-enabled/invoiceninja.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 >> >> >> >> (/etc/apache2/sites-enabled/invoiceplane.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/larap.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/mantisbt.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/matomo.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/minthcm.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/petronius.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/priyansh.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/sendportal.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/snipe.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/uideck.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/userlp.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/wave.conf:1) >> >> >> >> alias temp >> >> >> >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/zentaopms.conf:1) >> >> >> >> alias temp >> >> >> >> ServerRoot: "/etc/apache2" >> >> >> >> Main DocumentRoot: "/var/www/html" >> >> >> >> Main ErrorLog: "/var/log/apache2/error.log" >> >> >> >> Mutex watchdog-callback: using_defaults >> >> >> >> Mutex rewrite-map: using_defaults >> >> >> >> Mutex proxy: using_defaults >> >> >> >> Mutex default: dir="/var/run/apache2/" mechanism=default >> >> >> >> Mutex mpm-accept: using_defaults >> >> >> >> PidFile: "/var/run/apache2/apache2.pid" >> >> >> >> Define: DUMP_VHOSTS >> >> >> >> Define: DUMP_RUN_CFG >> >> >> >> User: name="www-data" id=33 >> >> >> >> Group: name="www-data" id=33 >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> On Tue, Jul 23, 2024 at 1:32 PM Frank Gingras <thumbs@xxxxxxxxxx> wrote: >> >> >> >> > >> >> >> >> > >> >> >> >> > >> >> >> >> > On Tue, Jul 23, 2024 at 1:29 PM bruce <badouglas@xxxxxxxxx> wrote: >> >> >> >> >> >> >> >> >> >> Hi Frank. >> >> >> >> >> >> >> >> >> >> Thanks for reply. >> >> >> >> >> >> >> >> >> >> apachectl -S >> >> >> >> >> AH00558: apache2: Could not reliably determine the server's fully >> >> >> >> >> qualified domain name, using 10.10.0.9. Set the 'ServerName' directive >> >> >> >> >> globally to suppress this message >> >> >> >> >> VirtualHost configuration: >> >> >> >> >> ServerRoot: "/etc/apache2" >> >> >> >> >> Main DocumentRoot: "/var/www/html" >> >> >> >> >> Main ErrorLog: "/var/log/apache2/error.log" >> >> >> >> >> Mutex default: dir="/var/run/apache2/" mechanism=default >> >> >> >> >> Mutex mpm-accept: using_defaults >> >> >> >> >> Mutex watchdog-callback: using_defaults >> >> >> >> >> Mutex rewrite-map: using_defaults >> >> >> >> >> Mutex proxy: using_defaults >> >> >> >> >> PidFile: "/var/run/apache2/apache2.pid" >> >> >> >> >> Define: DUMP_VHOSTS >> >> >> >> >> Define: DUMP_RUN_CFG >> >> >> >> >> User: name="www-data" id=33 >> >> >> >> >> Group: name="www-data" id=33 >> >> >> >> >> >> >> >> >> >> As a test, I did a complete "a2edissite * to disable "all" test sites >> >> >> >> >> on the srvr that's weird. >> >> >> >> >> >> >> >> >> >> I expected that a 1.2.3.4/foo in the browser would result in an err... >> >> >> >> >> >> >> >> >> >> Nope, it displayed the reg site. >> >> >> >> >> >> >> >> >> >> At the same time, the test site that displays the dir/ndx still >> >> >> >> >> displays the "dir/ndx" listing. >> >> >> >> >> >> >> >> >> >> Some research online shows that others have run into similar issues, >> >> >> >> >> but as of yet, I haven't figured out what I've done wrong. >> >> >> >> >> >> >> >> >> >> thanks >> >> >> >> >> >> >> >> >> >> On Tue, Jul 23, 2024 at 1:16 PM Frank Gingras <thumbs@xxxxxxxxxx> wrote: >> >> >> >> >> > >> >> >> >> >> > >> >> >> >> >> > >> >> >> >> >> > On Tue, Jul 23, 2024 at 12:07 PM bruce <badouglas@xxxxxxxxx> wrote: >> >> >> >> >> >> >> >> >> >> >> >> ok. >> >> >> >> >> >> >> >> >> >> >> >> I've screwed something up... >> >> >> >> >> >> >> >> >> >> >> >> on the "working" test system >> >> >> >> >> >> I took a "working" test site, copied it to /var/www/html/mmm >> >> >> >> >> >> >> >> >> >> >> >> did a 1.2.3.4/mmm in the browser -- 1.2.3.4 points to the working test srvr.. >> >> >> >> >> >> and I get the >> >> >> >> >> >> "The requested URL was not found on this server." >> >> >> >> >> >> (expected).. >> >> >> >> >> >> >> >> >> >> >> >> do the same thing on the "weird" test server... >> >> >> >> >> >> and i get the copy of the running test site.. not the "err" for the >> >> >> >> >> >> "mmm" site dir.. >> >> >> >> >> >> >> >> >> >> >> >> I'm missing something... >> >> >> >> >> >> there is no "mmm.conf" for the mmm dir.. >> >> >> >> >> >> there's nothing under the list of the available sites for "mmm" >> >> >> >> >> >> it's as if I've installed/enabled something that's screwing up >> >> >> >> >> >> Apache/setup/config. >> >> >> >> >> >> >> >> >> >> >> >> This could also explain why I'm getting the dir/index listing. >> >> >> >> >> >> >> >> >> >> >> >> thoughts? >> >> >> >> >> >> >> >> >> >> >> >> thanks >> >> >> >> >> >> >> >> >> >> >> >> ps. As a test, I copied/tested the "apache.conf" from the working srvr >> >> >> >> >> >> to the srvr that's screwing up... no change in action/behaviour. >> >> >> >> >> >> Also copied/tested the foo.conf from the working srvr to the test >> >> >> >> >> >> srvr, and re-enabled it and restarted apache.. >> >> >> >> >> >> >> >> >> >> >> >> no behavior difference.. >> >> >> >> >> >> >> >> >> >> >> >> --------------------------------------------------------------------- >> >> >> >> >> >> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx >> >> >> >> >> >> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx >> >> >> >> >> >> >> >> >> >> >> > >> >> >> >> >> > Start by providing the output from apachectl -S. >> >> >> >> >> > >> >> >> >> >> > As for the directory listing, if you alias a directory and have no directory index file in the target, you *will* get a directory listing if Options +Indexes is set. >> >> >> >> >> >> >> >> >> >> --------------------------------------------------------------------- >> >> >> >> >> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx >> >> >> >> >> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx >> >> >> >> >> >> >> >> >> > >> >> >> >> > Since you have no vhosts, the DocumentRoot, Alias and Directory directives in the server context will apply here. >> >> >> >> >> >> >> >> --------------------------------------------------------------------- >> >> >> >> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx >> >> >> >> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx >> >> >> >> >> >> >> > >> >> >> > You had no *included* or *defined* virtual host, as per the previous apachectl -S output. >> >> >> > In that case, everything happens in the server context. >> >> >> > >> >> >> > Once you define vhosts, you have to add the relevant configuration in that context. >> >> >> > >> >> >> > Every single included/defined vhost on a given port requires a distinct/unique ServerName set. >> >> >> >> >> >> --------------------------------------------------------------------- >> >> >> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx >> >> >> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx >> >> >> >> >> > >> >> > None of those are errors, to be clear. Perhaps it would help to take a step back and define your problem properly. >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx >> >> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx >> >> >> > >> > Show the relevant vhosts for those requests, and the relevant error log entries. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx >> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx >> > > Crickey - can you provide the uncommented lines from each vhost, and relevant error log entries as well? What you provided is far too lengthy and messy. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx