code:vxmppb:apache-setup [VFWiki]

User Tools

Site Tools


code:vxmppb:apache-setup

FIXME

vXMPPb API Apache Virtualhost

  1. Add a new virtualhost
nano /etc/apache2/sites-available/api.conf
  1. Copy/Pasta:

<VirtualHost *:80>
    ServerName {URL}
    DocumentRoot /var/www/api
    ServerAdmin {EMAIL}
    ErrorLog ${APACHE_LOG_DIR}/error/api.log
    CustomLog ${APACHE_LOG_DIR}/access/api.log combined
 <Directory "/var/www/api">
    AllowOverride All
    Order allow,deny
    Allow from all
    Satisfy all
 </Directory>
</VirtualHost>
  1. Activate Virtualhost

a2ensite api
  1. Reload apache

service apache2 reload
  1. Install SSL

certbot --webroot -w /var/www/api -d {URL}

    See also, Nginx

code/vxmppb/apache-setup.txt · Last modified: 2022/04/10 12:16 by stephen