← Back to team overview

sslug-teknik team mailing list archive

Re: HJÆLP!!!! Apache

 

Anders Thorsby wrote:
> <VirtualHost [klip]
> ServerAdmin [klip]
> DocumentRoot [klip]
[...]

Når jeg ikke kan se DocumentRoot kan jeg ikke hjælpe specifikt.

Men hvis dine virtual hosts' DocumentRoot's ligger under
/home/httpd/html burde der være adgang til includes i dine virtual
hosts.
- Jvf. følgende klump i din access.conf (renset for kommentarer):

<Directory /home/httpd/html>
Options Indexes Includes FollowSymLinks
AllowOverride None
order allow,deny
allow from all
</Directory>

Bemærk i øvrigt, at dine virtual hosts ikke kan benytte .htaccess filer,
idet du har 
"AllowOverride None".

Hvis dine DocumentRoot's ikke er under /home/httpd/html, har du to
muligheder:

1) Flyt dem dértil
2) Opret flere linjer i access.conf

Ad 2:
Lad os sige, at din virtual host "www.virtual.dk" har følgende
httpd.conf entries:

<VirtualHost www.virtual.dk>
ServerAdmin webmaster@xxxxxxxxxx
DocumentRoot /home/virtual/www
ServerName www.virtual.dk
ServerAlias virtual.dk
ErrorLog /var/log/httpd/www.virtual.dk-error_log
CustomLog /var/log/httpd/www.virtual.dk-access_log combined
</VirtualHost>

Du kunne da sørge for, at have følgende i din access.conf:

<Directory "/home/virtual/www">
Options All
AllowOverride All
</Directory>

-- 
Greetings from Troels Arvin, Copenhagen, Denmark
http://www.mdb.ku.dk/tarvin/


Follow ups

References