Category: apache2

Apache2 server administration – Handy guide

1- To restrict access to a port from certain ip address root@docker-adb-01:~# cat /etc/apache2/sites-enabled/000-default.conf ServerAdmin webmaster@localhost DocumentRoot /var/www/html ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined < Directory /var/www/html/> Order Deny,Allow Deny from all Allow from your_ip_address_1 Allow from your_ip_address_2 < /Directory> < /VirtualHost> Then, you will only allow your ip addresses to access to your apache server …


Deploy angular app into server

1- You need to build your project using: ng build –prod If you see some problem while launching your website, maybe it is because your build is optimized and it misses some needed component. In this case, you would need to set: … “optimization”: false, … You can find this line inside: angular.json or .angular-cli.json …


nodejs – apache2 – digital ocean – setup server with port forwarding

Let’s assume that you have 2 nodejs applications which will run on 2 different ports 9900 and 8800. You would like to have your server forward request to those ports properly. Following steps will be useful: 1.Install apache on digital ocean server 2.Set ports.conf as follow vi /etc/apache2/ports.conf Listen 80 Listen 443 3. Create 2 …