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