November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Categories

November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Centos7 Apache HTTP SERVER

Centos7 Apache HTTP SERVER

yum -y install httpd

rpm -qi httpd

systemctl enable httpd.service

ln -s ‘/usr/lib/systemd/system/httpd.service’ ‘/etc/systemd/system/multi-user.target.wants/httpd.service’

chkconfig httpd on

systemctl enable httpd

mkdir /wwwroot/www
echo “www.rmohan.com” > /wwwroot/www/index.html

mkdir /wwwroot/crm
echo “rmohan.com” > /wwwroot/crm/index.html

cd /etc/httpd/
mkdir vhost-conf.d
echo “Include vhost-conf.d/*.conf” >> conf/httpd.conf


ServerName www.rmohan.com
DocumentRoot /wwwroot/www/


Requireall granted


ServerName crm.linuxidc.local
DocumentRoot /wwwroot/crm/


Require ip 192.168.188.0/24

systemctl status httpd.service

systemctl restart httpd.service

journalctl -n

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>