Basic Apache Webserver Configuration & Virtual Hosts - Full PHP 8 Tutorial

Опубликовано: 04 Февраль 2021
на канале: Program With Gio
53,649
1.8k

In this PHP tutorial, you will learn the basics of apache configuration files & how to work with them. You will also learn how to rewrite URLs using .htaccess files & the difference between .htaccess & httpd.conf files and why you should not use .htaccess files.

NOTE
At 13:20 I copied htaccess content into vhosts config, if it does not work for you or you are setting rewrite rules globally then try the following instead:

RewriteCond %{LA-U:REQUEST_FILENAME} !-f
RewriteCond %{LA-U:REQUEST_FILENAME} !-d

The reason for it is because LA-U (look-ahead URL based) is needed for the proper value of REQUEST_FILENAME in some cases. More info on it can be read on https://httpd.apache.org/docs/current... (search for LA-U)

SOME OF THE WAYS YOU CAN SUPPORT THE CHANNEL
👍 Smash the like button
🤝 Subscribe to the channel & turn the notifications on
💬 Post comments, any feedback is greatly appreciated
⭐ Become a Patreon:   / programwithgio  
THANK YOU!

LESSON 1.29
Course Outline - https://github.com/ggelashvili/learnp...
Course Playlist -    • Learn PHP The Right Way - Full PHP Tu...  

RESOURCES
Default locations of the apache configuration file by OS - https://cwiki.apache.org/confluence/d...
Context where the directives are allowed - https://httpd.apache.org/docs/2.4/mod...
mod_rewrite - https://httpd.apache.org/docs/2.4/mod...
virtual hosts - https://httpd.apache.org/docs/2.4/vho...
virtual hosts examples - https://httpd.apache.org/docs/2.4/vho...

CHAPTERS
00:00 - Intro
00:38 - Apache configuration file - httpd.conf
05:12 - Virtual hosts
07:22 - .htaccess files


Смотрите видео Basic Apache Webserver Configuration & Virtual Hosts - Full PHP 8 Tutorial онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Program With Gio 04 Февраль 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 53,64 раз и оно понравилось 1.8 тысяч людям.