Get the App
SLTechnology News&Howtos  ›  Network Security  › 

HTTP configuration

Shulou Source: shulou.com Published: 2022-06-01 04:29:59 10月05日 Update

1 start the httpd service

# service httpd restart

2 test the web page with another machine

Http://172.16.40.180

3 apache configuration file, server listens to port 80, document root: / var/www/html

/ etc/httpd/conf/httpd.conf

Key parameters:

DocumentRoot "/ var/www/html"

ServerName 172.16.40.180:80

Check the configuration file: # apachectl configtest

# httpd-t

4 copy another file as the test page:

# cp / usr/share/doc/HTML/zh-CN/index.html / var/www/html/

Tags: File configuration service test key parameter copy document server machine root port web page page check monitor Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information OPPO Reno Shulou Technology macOS Huawei