lamp docker apache2 supervisor monitor
sudo docker run -d -p 80:80 -p 3306:3306 -v /data/lampp/supervisormonitor:/app --name mylamp01 tutum/lamp
sudo docker exec -it mylamp01 /bin/bash
vi /etc/apache2/apache2.conf #(access denied)
vi /etc/apache2/sites-available/super.monitor.cn.conf
<VirtualHost *:80>
ServerAdmin nailwl86@gmail.com
DocumentRoot /app/public_html
#here is the url, you should synchronize it with the host configuration
ServerName super.monitor.cn
ErrorLog ${APACHE_LOG_DIR}/super.monitor.cn.net-error_log
CustomLog ${APACHE_LOG_DIR}/super.monitor.cn.net-access_log common
<Directory "/app/public_html">
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from All
</Directory>
</VirtualHost>
a2ensite super.monitor.cn.conf
service apache2 restart