Recently, I helped my colleagues read the apache configuration on RedHatLinux9.0 and hoped to use a Linux machine as a web server. I used to do it on debian. I haven't configured a server in about half a year, this time it was changed to redhat9.0. Fortunately, Linux machines are connected. Help him quickly. First, redhat9.0 comes with the httpd server. You do not need to download another software package. Vi/etc/httpd/conf/http. conf
Recently, I helped my colleagues read the apache configuration on RedHat Linux 9.0 and hoped to use a Linux machine as a web server. I used to do it on debian. I haven't configured a server in about half a year, this time I switched to redhat 9.0. Fortunately, Linux machines are connected. Help him quickly.
First, redhat 9.0 comes with the httpd server. You do not need to download another software package.
Vi/etc/httpd/conf/http. conf
# When using a browser, access the resources under this directory. This is the default directory and can be changed to any directory you need.
DocumentRoot =/var/www/html
# If you do not want to use a browser to access the linux web, You Need To comment out the following content if you do not want to display it in a specific file but the entire directory.
Options indexes