home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.os.linux      Getting to be as bloated as Windows!      107,822 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 106,693 of 107,822   
   Java Jive to All   
   Running Apache On Ubuntu 22   
   03 Dec 24 22:54:39   
   
   XPost: uk.comp.os.linux   
   From: java@evij.com.invalid   
      
   In previous versions of Ubuntu, I had the following working arrangement   
   for defining localhost subdomains as follows ...   
      
      
   /etc/hosts:   
      
   127.0.0.1	localhost   
   127.0.0.2	local.localhost   
   127.0.0.3	publish.localhost   
      
      
   Note: In what follows, the files given below are links to files actually   
   in the sister directory sites-available, as per Apache standard   
   practice.  Further, I've removed all the comments and blank lines to   
   save space.   
      
      
   /etc/apache2/sites-enabled/001-localhost.conf   
      
      
        AllowOverride All   
        Require all granted   
      
      
      
   /etc/apache2/sites-enabled/002-local.conf   
      
      
   	ServerName local.localhost   
   	DocumentRoot "/home/www/Local"   
   	   
   	    Options +Includes +Indexes +FollowSymLinks   
   	    AllowOverride All   
   	    Order allow,deny   
   	    Allow from all   
   	   
   	   
   	    Options +ExecCGI   
   	   
   	   
   	    Options +ExecCGI   
   	   
      
      
      
   /etc/apache2/sites-enabled/003-publish.conf   
      
      
   	ServerName publish.localhost   
   	DocumentRoot "/home/www/Publish"   
   	   
   	    Options +Includes +Indexes +FollowSymLinks   
   	    AllowOverride All   
   	    Order allow,deny   
   	    Allow from all   
   	   
   	   
   	    Options +ExecCGI   
   	   
   	   
   	    Options +ExecCGI   
   	   
      
      
      
   ... however since upgrading from Ubuntu 18 to 22, the subdomains don't   
   load, giving a 404, and the following sorts of entries are found in ...   
      
   /var/log/apache2/other_vhosts_access.log   
      
   publish.localhost:80 127.0.0.1 - - [03/Dec/2024:19:15:19 +0000] "GET /   
   HTTP/1.1" 301 568 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:129.0)   
   Gecko/20100101 Firefox/129.0"   
   local.localhost:80 127.0.0.1 - - [03/Dec/2024:19:22:21 +0000] "GET /   
   HTTP/1.1" 301 574 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:129.0)   
   Gecko/20100101 Firefox/129.0"   
   [etc]   
      
   ... showing I think that the translation of, for example, ...   
      
   	local.localhost -> 127.0.0.2   
      
   ... is no longer occurring.  Indeed, when I attempt to load the pages by   
   specifying the IP address directly, they all load.  I suspect that this   
   has something to do with IP6, but do not know how to prove this or make   
   further progress.  Can anyone give me some pointers?   
      
   --   
      
   Fake news kills!   
      
   I may be contacted via the contact address given on my website:   
   www.macfh.co.uk   
      
   --- SoupGate-DOS v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca