课程: Building an Ubuntu Server

免费学习该课程!

今天就开通帐号,24,700 门业界名师课程任您挑!

Web hosting with Apache HTTP server

Web hosting with Apache HTTP server - Linux教程

课程: Building an Ubuntu Server

Web hosting with Apache HTTP server

- [Instructor] Hosting a web server is a common role for a server. And we can do that using the Apache HTTP Server which is often just called Apache. Here on Ubuntu Server, I can install that with apt install apache2. Out of the box Apache comes with a pretty basic setup serving a site on port 80 from the directory var www HTML in order to open up the site to be visible to other systems on the local network, we'll need to open up port 80 TCP with ufw allow 80/tcp. And now here in my browser I can see Apache's placeholder page if I visit my servers address. We can copy files into the var www HTML directory and Apache will serve them up. I have a small business site here that I'll copy over to my server using SEP I'll copy that into my home directory because my user doesn't have right privileges in the web root directory. And then on the server, I'll copy those files to the web root and set their permissions. Okay…

内容