apache2 vhosts subfolders.

Alles, was den Apache betrifft, kann hier besprochen werden.

apache2 vhosts subfolders.

Postby 007fred50 » 25. May 2020 10:09

Hello,

Can someone tell me how i can get sub-folder to work it just says (You don't have permission to access this resource.)

I have duel php 7.4 and 7.2 (but only 7.4 shows here.)

It works only 1 folder.. not 2 subfolders.
My questing is how can i get 2 sub-folders to work??

My apache2 config:
Code: Select all
<VirtualHost *:80>
    ServerName people8people.com
    DocumentRoot /media/disk8tb1/www
    RewriteEngine on
    <Directory /media/disk8tb1/www>
        Options -Indexes +FollowSymLinks +MultiViews
        #Options FollowSymLinks
        AllowOverride All
        Require all granted
        Order deny,allow
        Allow from all

    </Directory>
    <FilesMatch \.php$>
        SetHandler "proxy:unix:/var/run/php/php7.4-fpm.sock|fcgi://localhost"
    </FilesMatch>
</VirtualHost>


Thanks for your time.

Best Regards
Frederik Lundgaard Frandsen
007fred50
 
Posts: 2
Joined: 25. May 2020 10:01
XAMPP version: null
Operating System: ubuntu 16.04

Re: apache2 vhosts subfolders.

Postby 007fred50 » 25. May 2020 10:33

i found a solution

i added to vhosts config.

Code: Select all
Alias /maxbox /media/disk8tb1/www/maxbox
    <Directory /media/disk8tb1/www/maxbox>
            Options MultiViews Indexes Includes FollowSymLinks ExecCGI
            AllowOverride All
            Require all granted
            allow from all
    </Directory>


found this guide here.
007fred50
 
Posts: 2
Joined: 25. May 2020 10:01
XAMPP version: null
Operating System: ubuntu 16.04


Return to Apache

Who is online

Users browsing this forum: No registered users and 20 guests