{"id":3716,"date":"2014-11-13T09:35:30","date_gmt":"2014-11-13T01:35:30","guid":{"rendered":"http:\/\/rmohan.com\/?p=3716"},"modified":"2014-11-13T11:13:05","modified_gmt":"2014-11-13T03:13:05","slug":"centos7-apache-http-server","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=3716","title":{"rendered":"Centos7 Apache HTTP SERVER"},"content":{"rendered":"<p><strong>Centos7 Apache HTTP SERVER<\/strong><\/p>\n<p>yum -y install httpd<\/p>\n<p>rpm -qi httpd <\/p>\n<p>systemctl enable httpd.service<\/p>\n<p>ln -s &#8216;\/usr\/lib\/systemd\/system\/httpd.service&#8217; &#8216;\/etc\/systemd\/system\/multi-user.target.wants\/httpd.service&#8217;<\/p>\n<p>chkconfig httpd on<\/p>\n<p>systemctl enable httpd<\/p>\n<p>mkdir \/wwwroot\/www<br \/>\necho &#8220;www.rmohan.com&#8221; > \/wwwroot\/www\/index.html<\/p>\n<p>mkdir \/wwwroot\/crm<br \/>\necho &#8220;rmohan.com&#8221; > \/wwwroot\/crm\/index.html<\/p>\n<p>cd \/etc\/httpd\/<br \/>\nmkdir vhost-conf.d<br \/>\necho &#8220;Include vhost-conf.d\/*.conf&#8221; >> conf\/httpd.conf<\/p>\n<p><VirtualHost *:80><br \/>\n  ServerName www.rmohan.com<br \/>\n  DocumentRoot \/wwwroot\/www\/<br \/>\n<\/VirtualHost><br \/>\n<Directory \/wwwroot\/www\/><br \/>\n    Requireall granted<br \/>\n<\/Directory><\/p>\n<p><VirtualHost *:80><br \/>\n  ServerName crm.linuxidc.local<br \/>\n  DocumentRoot \/wwwroot\/crm\/<br \/>\n<\/VirtualHost><br \/>\n<Directory \/wwwroot\/crm\/><br \/>\n  Require ip 192.168.188.0\/24<br \/>\n<\/Directory><\/p>\n<p>systemctl status httpd.service<\/p>\n<p>systemctl restart httpd.service<\/p>\n<p>journalctl -n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Centos7 Apache HTTP SERVER<\/p>\n<p>yum -y install httpd<\/p>\n<p>rpm -qi httpd <\/p>\n<p>systemctl enable httpd.service<\/p>\n<p>ln -s &#8216;\/usr\/lib\/systemd\/system\/httpd.service&#8217; &#8216;\/etc\/systemd\/system\/multi-user.target.wants\/httpd.service&#8217;<\/p>\n<p>chkconfig httpd on<\/p>\n<p>systemctl enable httpd<\/p>\n<p>mkdir \/wwwroot\/www echo &#8220;www.rmohan.com&#8221; > \/wwwroot\/www\/index.html<\/p>\n<p>mkdir \/wwwroot\/crm echo &#8220;rmohan.com&#8221; > \/wwwroot\/crm\/index.html<\/p>\n<p>cd \/etc\/httpd\/ mkdir vhost-conf.d echo &#8220;Include vhost-conf.d\/*.conf&#8221; >> conf\/httpd.conf<\/p>\n<p> ServerName www.rmohan.com DocumentRoot \/wwwroot\/www\/ Requireall granted <\/p>\n<p> [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/3716"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3716"}],"version-history":[{"count":2,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/3716\/revisions"}],"predecessor-version":[{"id":3718,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/3716\/revisions\/3718"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3716"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3716"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3716"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}