XPost: uk.comp.os.linux   
   From: user@example.net   
      
   On 03/12/2024 23.54, Java Jive wrote:   
   > In previous versions of Ubuntu, I had the following working arrangement   
      
   It's age ago I used apache, but still I think your setup is a bit odd...   
   I'm assuming that all apache modules has been configured correctly and   
   they load without errors.   
      
   > 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   
      
   I would have done:   
      
   127.0.0.1 localhost local.localhost publish.localhost   
      
   they do not need their own ip, specially not for apache.   
      
      
   > 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   
   >    
      
   If I remember it right, all the domains should be virtualhost when using   
   virtual hosts, assign the ServerName to it too.   
      
      
    SeverName localhost   
    ...   
      
      
   > /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   
   >    
   >    
      
   I would use   
      
      
    SeverName local.localhost   
    ...   
      
      
   >   
   > /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   
   >    
   >    
      
      
    SeverName publish.localhost   
    ...   
      
      
      
   If you need to access the same virtual host with multiple names, you can   
   use the ServerAlias for example   
      
      
    SeverName test.localhost   
    ServerAlias stage.localhost   
    ...   
      
      
   this one would work for both test.localhost and stage.loclhost (of   
   course you need to add it to your hosts file, before it really would   
   work in your browser too).   
      
   --   
    //Aho   
      
   --- SoupGate-DOS v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|