You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
a2enmod rewrite
a2enmod ssl
a2enmod proxy
a2enmod headers
# optionally enable ssl on apache# however, ssl termination is intended to be done by jwilder/nginx-proxy instead# a2ensite default-ssl
raspberry pi run user
sed -i 's/APACHE_RUN_USER\s*=.*/APACHE_RUN_USER=pi/g' /etc/apache2/envvars
sed -i 's/APACHE_RUN_GROUP\s*=.*/APACHE_RUN_GROUP=pi/g' /etc/apache2/envvars
change folder permissions
sudo chown -R pi /mnt/ext1/apps/shop
sudo chgrp -R pi /mnt/ext1/apps/shop
sudo chmod 2775 /mnt/ext1/apps/shop
sudo find /mnt/ext1/apps/shop -type d -exec sudo chmod 2775 {} \;
sudo find /mnt/ext1/apps/shop -type f -exec sudo chmod 0664 {} \;
Change Apache website config
# disable default website
a2dissite 000-default.conf
# copy new one to the right place
cp ./000-default.conf /etc/apache2/sites-available/000-default.conf
# enable the new site
a2ensite 000-default.conf