Apache 403 after configuring varnish
Posted
by
w0rldart
on Server Fault
See other posts from Server Fault
or by w0rldart
Published on 2012-12-01T20:45:39Z
Indexed on
2012/12/01
23:06 UTC
Read the original article
Hit count: 465
I just don't know where else to look and what else to do. I keep getting a 403 error on all my vhosts after setting varnish 3.0
Apacher log:
[error] [client 127.0.0.1] client denied by server configuration: /etc/apache2/htdocs
Headers:
http://domain.com/
GET / HTTP/1.1
Host: domain.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20100101 Firefox/16.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
DNT: 1
Connection: keep-alive
Cookie: __utma=106762181.277908140.1348005089.1354040972.1354058508.6; __utmz=106762181.1348005089.1.1.utmcsr=OTHERDOMAIN.com|utmccn=(referral)|utmcmd=referral|utmcct=/galerias/cocinas
Cache-Control: max-age=0
HTTP/1.1 403 Forbidden
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Type: text/html; charset=iso-8859-1
X-Cacheable: YES
Content-Length: 223
Accept-Ranges: bytes
Date: Sat, 01 Dec 2012 20:35:14 GMT
X-Varnish: 1030961813 1030961811
Age: 26
Via: 1.1 varnish
Connection: keep-alive
X-Cache: HIT
----------------------------------------------------------
/etc/default/varnish
:
DAEMON_OPTS="-a ip.ip.ip.ip:80 \
-T localhost:6082 \
-f /etc/varnish/main.domain.vcl \
-S /etc/varnish/secret \
-s file,/var/lib/varnish/$INSTANCE/varnish_storage.bin,1G"
#-s malloc,256m"
My vcl file: http://pastebin.com/axJ57kD8
So, any ideas what I could be missing?
Update
Just so you know, ports:
NameVirtualHost *:8000
Listen 8000
and <VirtualHost 205.13.12.12:8000>
© Server Fault or respective owner