I am new to Docker and Apache and am trying to execute a very simple program that would display a web page on my localhost. However, I keep getting a 403 Forbidden error
saying that
"You don't have permission to access / on this server"
. I am using Apache/2.4.25 (Debian)
Server at localhost Port 5002
. The path to the directory is ~/tutorial/product
. I have read many solutions on here, and have tried all of them, but none of them have worked for me.
/etc/apache2/apache2.conf
<Directory /var/www/html>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
<Directory /usr/share>
AllowOverride None
Require all granted
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
/etc/apache2/sites-enabled/000-default.conf
ServerAdmin webmaster@localhost
DocumentRoot /var/www/signature
<Directory /var/www/signature/>
Allowoverride all
Order allow,deny
Allow from all
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
I have included the permissions at each directory in the path using ls -l
:
~/tutorial
|---------------------|------------------|
| -rwxr-xr-x |docker-compose.yml|
|---------------------|------------------|
| drwxr-xr-x | product |
|---------------------|------------------|
| drwxr-xr-x | website |
|---------------------|------------------|
~/tutorial/products
|---------------------|------------------|
| -rwxr-xr-x | api.py |
|---------------------|------------------|
| -rwxr-xr-x | Dockerfile |
|---------------------|------------------|
| -rwxr-xr-x | index.php |
|---------------------|------------------|
| -rwxr-xr-x | requirements.txt |
|---------------------|------------------|
invalid option --'r'
. ~/tutorial/product is in homesignature
? Because I don't have one