Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-21-2012, 09:54 PM   #1
Registered: May 2012
Posts: 60

Rep: Reputation: Disabled
Images won't load in reverse proxy!

I'm having trouble getting images to load in my reverse proxy setup. I'm using Ubuntu Server with LAMP (Apache2 2.2.17).

I'm not sure what modules I have enabled or how to check what one are.

Can I do this without modules? What steps should I take? Anyone know of a straignt forward tutorial?

This is the 000-default file:

<VirtualHost *:80>

ProxyRequests Off

ProxyPass /site1
ProxyPassReverse /site1

ProxyPass /site2
ProxyPassReverse /site2

ServerAdmin webmaster@localhost

DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all

ErrorLog ${APACHE_LOG_DIR}/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog ${APACHE_LOG_DIR}/access.log combined

Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from ::1/128

Old 05-21-2012, 11:23 PM   #2
Registered: May 2012
Posts: 60

Original Poster
Rep: Reputation: Disabled
It works now! All I had to do was put a / after the site names on ProxyPass and ProxyPassReverse in the 000-default file:

<VirtualHost *:80>

ProxyRequests Off

ProxyPass /site1/
ProxyPassReverse /site1/

ProxyPass /site2/
ProxyPassReverse /site2/

The problem I am now having is how to make it so that you can enter in the url as without the final /. will not load the page but works perfectly when entered in a web browser to reach the site.

How can I make this work?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Reverse Proxy Volcano Linux - Newbie 4 05-03-2012 01:02 PM
Ajax framework failed to load + Reverse Proxy kumartnj SUSE / openSUSE 0 07-22-2011 02:15 AM
Reverse Proxy??? jantman Linux - Server 2 12-07-2007 06:01 PM
Squid as Reverse Proxy and LAN proxy? zivota Linux - Security 2 02-26-2007 05:00 PM
still trying to reverse proxy wildbob Linux - Networking 6 10-28-2003 09:12 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:02 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration