Server
a computer provides services or resources
Last updated
a computer provides services or resources
Last updated
# install apache
yum install httpd
# start apache web server service
service httpd start
service httpd status# view access & error logs
cat /var/log/httpd/access_log
cat /var/log/httpd/error_log# view configuration file
vim /etc/httpd/conf/httpd.confDocumentRoot "/var/www/html"# multiple domains point to the same IP address
127.0.0.1 localhost
127.0.0.1 www.example.com
127.0.0.1 www.oranges.com<VirutalHost *:80>
ServerName www.organces.com
DocumentRoot /var/www/oranges
</VirutalHost>Include conf/houses.conf# install Nginx
sudo apt-get install -y nginx
# confirm Nginx is running
ps auwx | grep nginx# check server timezone
# EST
date +%Z
timedatectl
# change timezone to America/New_York
sudo timedatectl set-timezone America/New_York
# update OS
sudo apt-get update