6be709c0
6be709c0

Reputation: 8441

.htaccess access parent folder

I just installed Apaxy for a better and customizable folders views.

It works perfectly, but not in my virtualhost.

Folder (localhost) :

enter image description here

Virtualhost (local.dev.conf, access with local.dev):

<VirtualHost *:80> 
  ServerName local.dev
  DocumentRoot /var/www/local.dev
</VirtualHost>

Unfortunately, in the virtualhost (local.dev) apaxy doesn't work.

I assume it's normal because the server try to find files in local.dev/themes/...

Or my 'themes' folder is in the parent folder, so it is possible to resolve this ?

Here is the .htaccess : https://justpaste.it/t8yp

Upvotes: 0

Views: 743

Answers (1)

Auzias
Auzias

Reputation: 3798

 Problem

Apache serves file from the directory /var/www/local.dev.

Solution

Moving the directory /var/www/theme into /var/www/local.dev would work. Nevertheless if, for any reason, you do not want to move theme you can link it using the command ln -s /path/to/theme /path/to/local.dev/theme.

IMHO

Moving the directory would be a better solution as linking it, would force the configuration to enable follow-symlink, as it can be considered as a security issue.

Upvotes: 1

Related Questions