I have configured Apache virtual host to run at port 8000 and in front of Apache I have Varnish on port 80. The problem is if I paste this in my browser:
example.com/a_directory
I am redirected to example.com:8000/a_directory
I get an unable to connect error. In the config file I have this:
<VirtualHost *:8000>
ServerAdmin xxx@xxx.org.au
DocumentRoot /var/www
DirectoryIndex index.php index.html index.htm
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www>
AllowOverride All
</Directory>
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
</VirtualHost>
DirectoryIndexsettings? That's likely what's throwing the redirect. – Shane Madden Nov 28 '11 at 15:51