Installation Apache2:
apt-get install apache2Customization Apache2:
<VirtualHost *:80>
ServerName spacecore.pro # Specify the site domain
ServerAdmin admin@spacecore.pro # Your email address
DocumentRoot /var/www/html # The path to the site folder
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>a2ensite site.confConnecting PHP to Apache2:
Enabling rewrite:
Enabling SSL:
Check на nginx:
Removal Apache2
Last updated