filmov
tv
Create a virtual host on apache [linux]
Показать описание
In this video I show how to create a virtual website on a apache integrated web-server. I thought wise to share this video because I struggled with a 403 forbidden access for hours and the permissions were correct but I searching on the internet made me realized I was using a SELinux System meaning some access lists were fooling my understanding.
##########################
Here's the video script :
➔ Part 1
Create a new project in PhpStorm (php7)
Make a new directory /testwww for the virtual test website
➔ Part 2
Write the directives
Access your new website!
➔ Part 3
If you proceeded as I did but still have this 403 forbidden error
It means your system is SELinux (Security-Enhanced Linux).
There are some hidden ACL (Access List)
because if you check directories' and files' permissions they are fine.
Just transfert /var/www/ SELinux context to your new website directory
using the chcon command to resolve this issue.
####################################
##########################
Here's the video script :
➔ Part 1
Create a new project in PhpStorm (php7)
Make a new directory /testwww for the virtual test website
➔ Part 2
Write the directives
Access your new website!
➔ Part 3
If you proceeded as I did but still have this 403 forbidden error
It means your system is SELinux (Security-Enhanced Linux).
There are some hidden ACL (Access List)
because if you check directories' and files' permissions they are fine.
Just transfert /var/www/ SELinux context to your new website directory
using the chcon command to resolve this issue.
####################################