
Acabei de configurar um servidor Apache 2.2 em uma nova instalação do Linux Mint. Estou recriando uma configuração anterior que tive em uma máquina Ubuntu antiga.
No meu computador anterior, tive que ativar FollowSymLinks
o httpd.conf
./var/www
No meu novo servidor, não consigo encontrar nenhum httpd.conf
lugar, então não consigo definir a opção de seguir links simbólicos. Como resultado, estou recebendo um 403 Forbidden: You don't have permission to access / on this server
erro.
Além disso, no meu log de erros, diz:
[Sun May 05 02:12:17 2013] [error] [client 127.0.0.1] Symbolic link not allowed or link target not accessible: /var/www/Websites
Algo mudou na forma como se permite links simbólicos? Ou estou errado sobre a configuração estar em httpd.conf
? De qualquer forma, como faço para que meu novo Apache siga links simbólicos?
Atualizar:Com base na resposta abaixo, verifiquei os arquivos /etc/apache2/sites-enabled/000-default
e /etc/apache2/sites-available/default
e ambos têm a FollowSymLinks
opção. Existe algum outro motivo pelo qual eu possa estar recebendo o erro mencionado acima?
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>
Responder1
Você deve procurar /etc/apache2/sites-enabled/000-default
(que provavelmente é um link para /etc/apache2/sites-available/default
).