Får inte en subdomän att fungera (Apache)
Postat: 30 apr 2008, 15:20
Vet inte vad som är fel...
Tänkte sätta upp en liten subdomän att använda till skolarbeten.
Så långt bra...
cat /etc/apache2/sites-enabled/XXX
Efter ett besök så säger loggen:
[Wed Apr 30 15:18:15 2008] [error] [client 10.0.0.8] Directory index forbidden by Options directive: /home/server/httpdoc/skolan/
Vilken "Option"?
Följande finns, men jag vet inte vad som är fel...
Tänkte sätta upp en liten subdomän att använda till skolarbeten.
Kod: Markera allt
root@Sandnabba.se: /home/server/httpdoc/skolan #> ls -l
total 4
-rwxrwx--- 1 server www-data 28 2008-04-30 14:53 index.html
drwx------ 2 root root 112 2008-04-30 14:59 test
root@Sandnabba.se: /home/server/httpdoc/skolan #> cat index.html
<p>Inget här för dig!</p>
cat /etc/apache2/sites-enabled/XXX
Kod: Markera allt
.......
# Skolan.sandnabba.se:
<VirtualHost *:80>
ServerAdmin admin@sandnabba.se
ServerName skolan.sandnabba.se
DocumentRoot /home/server/httpdoc/skolan/
ErrorLog /var/log/apache2/skolan_error.log
CustomLog /var/log/apache2/skolan_access.log combined
</VirtualHost>
........
[Wed Apr 30 15:18:15 2008] [error] [client 10.0.0.8] Directory index forbidden by Options directive: /home/server/httpdoc/skolan/
Vilken "Option"?
Följande finns, men jag vet inte vad som är fel...
Kod: Markera allt
root@Sandnabba.se: /home/server/httpdoc/skolan #> grep "Options" -R /etc/apache2/
/etc/apache2/mods-available/mime.conf:# (You will also need to add "ExecCGI" to the "Options" directive.)
/etc/apache2/mods-available/mime.conf:# (You will also need to add "Includes" to the "Options" directive.)
/etc/apache2/mods-available/userdir.conf: Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
/etc/apache2/mods-available/alias.conf: Options Indexes MultiViews
/etc/apache2/mods-available/autoindex.conf:# IndexOptions: Controls the appearance of server-generated directory
/etc/apache2/mods-available/autoindex.conf:IndexOptions FancyIndexing VersionSort HTMLTable NameWidth=* DescriptionWidth=*
/etc/apache2/conf.d/pitchfork.conf: Options -Indexes
/etc/apache2/mods-enabled/mime.conf:# (You will also need to add "ExecCGI" to the "Options" directive.)
/etc/apache2/mods-enabled/mime.conf:# (You will also need to add "Includes" to the "Options" directive.)
/etc/apache2/mods-enabled/userdir.conf: Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
/etc/apache2/mods-enabled/alias.conf: Options Indexes MultiViews
/etc/apache2/mods-enabled/autoindex.conf:# IndexOptions: Controls the appearance of server-generated directory
/etc/apache2/mods-enabled/autoindex.conf:IndexOptions FancyIndexing VersionSort HTMLTable NameWidth=* DescriptionWidth=*
/etc/apache2/apache2.conf:# Options IncludesNoExec