Set Up Your First Website with Apache VirtualHosts
A quick guide on setting up your first websites with Linux + Apache. I'll walk you through two methods:
1. Ultra Simple
# Simple website in the existing /var/www/html directory
Just add files to /var/www/html
2. Apache virtualhosts (more professional, easier to manage, allows for multitenancy)
# Comment out everything in the 'welcome' config file
vim /etc/httpd/conf.d/welcome.conf
# Create directories
mkdir -p /var/www/test.tutorialinux.com/public_html
# Copy website files to the newly created directory above
# Put your virtualhost definition in the main apache config file (fine for a few sites, painful for true multitenancy)
vim /etc/httpd/conf/httpd.conf
# If you don't have DNS pointing to the domain listed in your ServerName, edit /etc/hosts on the machine you want to VISIT the site from:
vim /etc/hosts
# The site won't be live for other people on the web, but you'll be able to see it.
In this video, I'm using Centos (RedHat) Linux, although you can use whichever Linux distribution you like.
## More Tech Courses ##
###################
Step-by-step project-based Linux course for beginners: https://www.udemy.com/course/hands-on-linux-self-hosted-wordpress-for-linux-beginners/?referralCode=19C0A7DEE2FD53C9C09D
Free Linux Sysadmin Course Playlist: https://www.youtube.com/playlist?list=PLtK75qxsQaMLZSo7KL-PmiRarU7hrpnwK
DigitalOcean referral link: https://m.do.co/c/0380a1db56a6
Patreon: https://www.patreon.com/tutorialinux
Official Site & e-mail list: https://tutorialinux.com/
Twitter: https://twitter.com/tutorialinux
Facebook: https://www.facebook.com/tutorialinux
Podcast: http://kernelpanicpodcast.com
Видео Set Up Your First Website with Apache VirtualHosts канала tutoriaLinux
1. Ultra Simple
# Simple website in the existing /var/www/html directory
Just add files to /var/www/html
2. Apache virtualhosts (more professional, easier to manage, allows for multitenancy)
# Comment out everything in the 'welcome' config file
vim /etc/httpd/conf.d/welcome.conf
# Create directories
mkdir -p /var/www/test.tutorialinux.com/public_html
# Copy website files to the newly created directory above
# Put your virtualhost definition in the main apache config file (fine for a few sites, painful for true multitenancy)
vim /etc/httpd/conf/httpd.conf
# If you don't have DNS pointing to the domain listed in your ServerName, edit /etc/hosts on the machine you want to VISIT the site from:
vim /etc/hosts
# The site won't be live for other people on the web, but you'll be able to see it.
In this video, I'm using Centos (RedHat) Linux, although you can use whichever Linux distribution you like.
## More Tech Courses ##
###################
Step-by-step project-based Linux course for beginners: https://www.udemy.com/course/hands-on-linux-self-hosted-wordpress-for-linux-beginners/?referralCode=19C0A7DEE2FD53C9C09D
Free Linux Sysadmin Course Playlist: https://www.youtube.com/playlist?list=PLtK75qxsQaMLZSo7KL-PmiRarU7hrpnwK
DigitalOcean referral link: https://m.do.co/c/0380a1db56a6
Patreon: https://www.patreon.com/tutorialinux
Official Site & e-mail list: https://tutorialinux.com/
Twitter: https://twitter.com/tutorialinux
Facebook: https://www.facebook.com/tutorialinux
Podcast: http://kernelpanicpodcast.com
Видео Set Up Your First Website with Apache VirtualHosts канала tutoriaLinux
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![Basics of Apache Webserver](https://i.ytimg.com/vi/rCr3-YlL5S8/default.jpg)
![Learn CentOS 22 - Hosting a Simple Web Page with Apache](https://i.ytimg.com/vi/0Yy65JKVSfM/default.jpg)
![](https://i.ytimg.com/vi/_I4TLKg-c_4/default.jpg)
![AWS VPC Public and Private Subnets](https://i.ytimg.com/vi/4T9G9nv0GIk/default.jpg)
![UNIX: Making Computers Easier To Use -- AT&T Archives film from 1982, Bell Laboratories](https://i.ytimg.com/vi/XvDZLjaCJuw/default.jpg)
![Configure Apache Virtual Host](https://i.ytimg.com/vi/R0WHr_MCzsU/default.jpg)
![How to Setup a Website | Domain Registration, DNS, and VPS](https://i.ytimg.com/vi/1JBCKNIT2Ys/default.jpg)
![Building a Home Server with an old PC](https://i.ytimg.com/vi/a9o6Ju8a8SA/default.jpg)
![systemd Dependencies & Ordering | systemd on Linux 4](https://i.ytimg.com/vi/nh7r9w4ACNU/default.jpg)
![How to host Multiple Websites on one linux server in CentOS 7 / Redhat 7 / Fedora](https://i.ytimg.com/vi/6IXykVP60UA/default.jpg)
![How to Make a WordPress Website for FREE - Build Your Website Locally on PC or MAC!](https://i.ytimg.com/vi/MFgZ5Vm-LU8/default.jpg)
![How to install and run Apache web server in Ubuntu Linux](https://i.ytimg.com/vi/-q8Jj4aAWYw/default.jpg)
![systemd on Linux 1: Intro and Unit Files](https://i.ytimg.com/vi/N1vgvhiyq0E/default.jpg)
![Como crear un Servidor Web en Ubuntu 18.04 con Apache + Mysql + PHP + phpMyAdmin](https://i.ytimg.com/vi/LlFCII--kQ8/default.jpg)
![Creating a simple web page on apache](https://i.ytimg.com/vi/p90yWh26j94/default.jpg)
![Farsi un sito (come il mio) a zero spese mensili](https://i.ytimg.com/vi/O_IViNjCApU/default.jpg)
![Setting Up Virtual Hosts for the Apache Web Server - Tutorial](https://i.ytimg.com/vi/gBfZdJFxjew/default.jpg)
![JavaScript Tutorial for Beginners: Learn JavaScript in 1 Hour](https://i.ytimg.com/vi/W6NZfCO5SIk/default.jpg)
![How to Host a Minecraft Server on an Ubuntu Virtual Private Server (VPS)](https://i.ytimg.com/vi/LLS4xgwMTQQ/default.jpg)
![Install & Set Up Apache Web Server on Windows 10 - Quickly!](https://i.ytimg.com/vi/oJnCEqeAsUk/default.jpg)