Jump to content



Photo

Apache Server Internal Proxy


  • Please log in to reply
2 replies to this topic

#1 BradC87

BradC87

    Neowinian

  • Joined: 16-October 09

Posted 08 March 2013 - 19:33

Ok, What I have is an apache web server, serving a site at www.example.com

I have set up a subdomain with my dns provider that is sb.example.com

Using apache mod_proxy I am pointing sb.example.com at a second, internal webserver that is hosting a sickbeard client on 192.168.0.102:8081/home. It is accessible and visible on my home network.

The site loads, but without any images, and non working links.

I have tried to resolve this by googling.. but im getting stuck.

Here is my access log, where you can see the server looking locally for the images, but not finding them.
74.115.192.4 - - [08/Mar/2013:14:30:17 -0500] "GET /js/lib/jquery.selectboxes.min.js?1828 HTTP/1.1" 404 1222
74.115.192.4 - - [08/Mar/2013:14:30:17 -0500] "GET /js/lib/jquery.tablesorter-2.1.19.min.js?1828 HTTP/1.1" 404 1222
74.115.192.4 - - [08/Mar/2013:14:30:17 -0500] "GET /js/lib/jquery.tablesorter.widgets.min.js?1828 HTTP/1.1" 404 1222
74.115.192.4 - - [08/Mar/2013:14:30:17 -0500] "GET /js/lib/jquery.qtip-2012-04-26.min.js?1828 HTTP/1.1" 404 1222
74.115.192.4 - - [08/Mar/2013:14:30:17 -0500] "GET /js/lib/jquery.expand-1.3.8.js?1828 HTTP/1.1" 404 1222
74.115.192.4 - - [08/Mar/2013:14:30:17 -0500] "GET /js/lib/jquery.pnotify-1.2.0.min.js?1828 HTTP/1.1" 404 1222
74.115.192.4 - - [08/Mar/2013:14:30:17 -0500] "GET /js/lib/jquery.form-2.92.js?1828 HTTP/1.1" 404 1222
74.115.192.4 - - [08/Mar/2013:14:30:17 -0500] "GET /js/lib/jquery.scrolltopcontrol-1.1.js?1828 HTTP/1.1" 404 1222
74.115.192.4 - - [08/Mar/2013:14:30:17 -0500] "GET /js/browser.js?1828 HTTP/1.1" 404 1222
74.115.192.4 - - [08/Mar/2013:14:30:17 -0500] "GET /js/ajaxNotifications.js?1828 HTTP/1.1" 404 1222
74.115.192.4 - - [08/Mar/2013:14:30:17 -0500] "GET /js/tableClick.js?1828 HTTP/1.1" 404 1222
74.115.192.4 - - [08/Mar/2013:14:30:17 -0500] "GET /images/sickbeard.png HTTP/1.1" 404 1222
74.115.192.4 - - [08/Mar/2013:14:30:17 -0500] "GET /images/glyphicons-halflings.png HTTP/1.1" 404 1222
74.115.192.4 - - [08/Mar/2013:14:30:17 -0500] "GET /images/menu/system18.png HTTP/1.1" 404 1222
74.115.192.4 - - [08/Mar/2013:14:30:17 -0500] "GET /images/paypal/btn_donate_LG.gif HTTP/1.1" 404 1222
74.115.192.4 - - [08/Mar/2013:14:30:17 -0500] "GET /images/bg.png HTTP/1.1" 404 1222
74.115.192.4 - - [08/Mar/2013:14:30:17 -0500] "GET /images/yes16.png HTTP/1.1" 404 1222
74.115.192.4 - - [08/Mar/2013:14:30:17 -0500] "GET /images/no16.png HTTP/1.1" 404 1222
74.115.192.4 - - [08/Mar/2013:14:30:18 -0500] "GET /images/ico/favicon.ico HTTP/1.1" 404 1083
74.115.192.4 - - [08/Mar/2013:14:30:24 -0500] "GET /images/glyphicons-halflings-white.png HTTP/1.1" 404 1222

Here is my vhosts entry for the server... where Am I going wrong?

<VirtualHost *:80>
	    ServerName sb.anymity.com
	    ProxyPass /home http://192.168.0.102:8081/home
	    ProxyPassReverse /home http://192.168.0.102:8081/home
	    ProxyHTMLEnable On
	    #ReWriteEngine On
	    #RewriteRule ^(/home/.*) http://192.168.0.102:8081$1
	    ProxyHTMLURLMap http://192.168.0.102:8081/home /
	    #ProxyHTMLLogVerbose On
	    #LogLevel Info
</VirtualHost>



#2 vetStephen

Stephen

    Neowinian Senior

  • Joined: 17-July 05
  • Location: Manchester / Huddersfield, UK

Posted 08 March 2013 - 19:42

I'm no expert at apache, but I looks like you would need some kind of rewrite rule enabling. at the moment it looks like your only redirecting /home to your second webserver, really you want to redirect * to it.

#3 OP BradC87

BradC87

    Neowinian

  • Joined: 16-October 09

Posted 08 March 2013 - 19:46

Could you recommend syntax? I am pretty new to this