8
« Online: 27 de Agosto de 2008, 10:52 »
Galera, antes usava o debian como server, mas resolvi mudar para ubuntu por facilitar algumas coisa...
Mas não consigo configurar o apache.. ja to há tempos procurando..
/etc/apache2/sites-enabled/000-default
<VirtualHost *>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
david@servidor:/var/www$ ls -lha /var/www/
total 16K
drwxr-xr-x 2 david david 4,0K 2008-08-27 10:39 .
drwxr-xr-x 16 root root 4,0K 2008-08-27 06:58 ..
-rw-r--r-- 1 david david 36 2008-08-27 10:37 index.html
-rw-r--r-- 1 david david 13 2008-08-27 10:39 pagina1.html
lrwxrwxrwx 1 david david 12 2008-08-27 10:39 pagina2.html -> pagina1.html
lrwxrwxrwx 1 david david 24 2008-08-27 10:39 public_html -> /home/david/public_html/
Traduzindo:
index.html, pagina1.html, pagina2.html funcionam!!
mas o public_html não!
E seu eu trocar o documentRoot por /home/david/public_html/ também não funciona!! só da forbidden!
Alguma dica?