Configure web server
Next step is to configure web server, so it will serve our website.
There are many possible options to use, but in this tutorial we will just cover the two most populars: 1) apache2 and 2) nginx.
Option 1: apache2
1. Install apache2 with php and all required extensions if you still didn't have.
2. Edit /etc/apache2/sites-enabled/default
/etc/apache2/sites-enabled/default
Set DocumentRoot
to path, where you previously downloaded MyAAC.
We did it in /var/www/myaac
, so lets point our server to it.
3. Add following directives between <VirtualHost>
block.
<VirtualHost>
block.With this we say that we allow all users to access our website, and that we allow customisations through .htaccess files.
4. Restart apache
Option 2: nginx
1. Install nginx with php and all required extensions if you still didn't have.
2. Edit /etc/nginx/sites-enabled/default
/etc/nginx/sites-enabled/default
Replace content of the file with
Replace server_name with your domain, and adjust fastcgi_pass to your PHP version.
3. Restart nginx
Last updated