User Tools

Site Tools


code:vxmppb:apache-setup

vXMPPb API Apache Virtualhost

  • Add a new virtualhost
nano /etc/apache2/sites-available/api.conf
  • 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>
  • Activate Virtualhost
a2ensite api
  • Reload apache
service apache2 reload
  • Install SSL
certbot --webroot -w /var/www/api -d {URL}

See also, Nginx

code/vxmppb/apache-setup.txt · Last modified: 2023/12/14 17:15 by stephen