Hi,
I have a friend that has a problem with his site on my server.
He doesn't have any problem on other servers so I guess there's something wrong in the config that I can change.
The site is in /html_doc and then he has a couple of other forlders for example, /api
In /api he tries to specify a file that's in the root of /html_doc like this:
Code:
require_once('inc/lang/'.$language.'/config.php');
I receive an error that the file can not be found but this fixes the problem:
Code:
require_once('../html_doc/inc/lang/'.$language.'/config.php');
Apparently it works on other servers so I'm wondering if I'm suppose to add something in his vhost that will fix this?
I think it can be fixed with settings in:
Code:
<Directory /var/www/domain
</Directory>
Right now I don't have one like that for him so I guess it uses the standard for /var/www/ which is:
Code:
<Directory /var/www/>
Options Indexes Includes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
If you see an obvious security-flaw or something you are more than welcome to criticize my configurtation, it's old and it just works so..
Thanks,
EDIT:
This is his vhost:
Code:
<VirtualHost *:80>
DocumentRoot /var/www/domain/html_doc
ServerName www.domain.com
ServerAlias domain.com
TransferLog /var/log/apache2/domain.log
</VirtualHost>