User Tools

Site Tools


technical:24.04_apache2_installation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
technical:24.04_apache2_installation [2024/10/12 21:27] wikiadmintechnical:24.04_apache2_installation [2025/11/11 15:59] (current) mark_scottworld.net
Line 9: Line 9:
  
 Remember to make the new root directory and change the permissions on the directory to 775 along with ownership for www-data Remember to make the new root directory and change the permissions on the directory to 775 along with ownership for www-data
- + 
 +<code> 
   mkdir /srv/data/www   mkdir /srv/data/www
   chown www-data:www-data /srv/data/www -R   chown www-data:www-data /srv/data/www -R
 +</code>
  
 Now copy the default config to a new one which we will make the new default. Now copy the default config to a new one which we will make the new default.
Line 56: Line 58:
  
 Now we enable this as the default apache site. Now we enable this as the default apache site.
-  
-  a2ensite solaris.conf 
- 
  
 +  a2ensite solaris.conf
 +  
 Now we enable SSL Now we enable SSL
  
   a2enmod ssl   a2enmod ssl
- 
  
 Restart the apache2 service Restart the apache2 service
Line 141: Line 141:
   systemctl restart apache2.service   systemctl restart apache2.service
  
 +There are some useful certificate provisioning commands
 + 
 +Expands out the main certificate with sub domains.
 +
 +  certbot certonly -d morgoth.scottworld.net -d new.domain.net -d new.domain.net
 +  
 +Show the current certificates
 +
 +  certbot certificates
 +  
 +
 +  
  
technical/24.04_apache2_installation.1728761223.txt.gz · Last modified: by wikiadmin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki