Skip to content

Instantly share code, notes, and snippets.

@rorens05
Last active February 15, 2023 04:44
Show Gist options
  • Save rorens05/8e5bbb87a5383588488bd7fba1ffe559 to your computer and use it in GitHub Desktop.
Save rorens05/8e5bbb87a5383588488bd7fba1ffe559 to your computer and use it in GitHub Desktop.
NGINX Setup and SSL Installation
# install nginx
sudo apt-get install -y nginx-extras
# install generator
sudo apt install certbot python3-certbot-nginx
@rorens05
Copy link
Author

rorens05 commented Feb 6, 2023

For apache
sudo apt install certbot python3-certbot-apache

Create config file
sudo nano /etc/apache2/sites-enabled/support.tekteach.com.conf

Initial Config

<VirtualHost *:80>
     ServerName support.tekteach.com
     ServerAlias support.tekteach.com
     ServerAdmin admin@example.com
     DocumentRoot /var/www/osTicket/upload

     <Directory /var/www/osTicket/>
          Options FollowSymlinks
          AllowOverride All
          Require all granted
     </Directory>

     ErrorLog ${APACHE_LOG_DIR}/osticket_error.log
     CustomLog ${APACHE_LOG_DIR}/osticket_access.log combined
</VirtualHost>

Generate SSL
sudo certbot --apache

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment