apache centos

[root@svn ~]# yum install httpd elinks

cd /var/www/html/
vi index.html
systemctl restart httpd
systemctl status httpd
elinks http://localhost

[root@svn html]# cd /etc/httpd/
[root@svn httpd]# ll
total 0
drwxr-xr-x. 2 root root  37 Apr 26 22:42 conf
drwxr-xr-x. 2 root root  82 Apr 26 22:42 conf.d
drwxr-xr-x. 2 root root 172 Apr 26 22:42 conf.modules.d
lrwxrwxrwx. 1 root root  19 Apr 26 22:42 logs -> ../../var/log/httpd
lrwxrwxrwx. 1 root root  29 Apr 26 22:42 modules -> ../../usr/lib64/httpd/modules
lrwxrwxrwx. 1 root root  10 Apr 26 22:42 run -> /run/httpd
[root@svn httpd]# cd conf
[root@svn conf]# ll
total 28
-rw-r--r--. 1 root root 11753 Apr 12 16:50 httpd.conf
-rw-r--r--. 1 root root 13077 Apr 13 00:04 magic
[root@svn conf]# less httpd.conf 
Listen 80
DocumentRoot "/var/www/html"



Comments

Popular posts from this blog

HAproxy logging

NFS mount add in fstab _netdev instead of default | firewall-cmd --list-all

teamcity Automatic Agent Start under Linux