You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by MOFLO - <mo...@hotmail.com> on 2012/02/14 01:19:28 UTC

[users@httpd] apache reverse proxy for youtube filtering

Hi All, 

Thanks for any help in advance.... 

I'm trying to use transparent reverse proxy through Apache only when going to YouTube.com.  The proxy request adjusts the header to include a filter string to see only education based videos.

Server is CentOS 5.7 with Apache 2.2.3.

httpd.conf vhost section:

<VirtualHost *:80>
    
    ServerName youtube.com
    ServerAlias *.youtube.com


    ErrorLog logs/YouTube.com-error_log
    CustomLog logs/YouTube.com-access_log common

    ProxyRequests Off

        <Proxy *>
      RequestHeader set X-YouTube-Edu-Filter "xuxuxxhxhxhxrxrxr"
       </Proxy>

    ProxyPass / http://www.youtube.com/
    ProxyPassReverse / http://www.youtube.com/

</VirtualHost>


The filter works properly except it doesn't play the video selected. Without going though the proxy, the same video loads and plays fine.

Nothing in the error or access logs indicate any problems. 

The image below shows the error "An error occured. Please try again later". Notice the rest of the page loaded including advertisements. The console window shows two red lines from the proxy server (10.10.20.70) not being able to retrieve parts of the page content.  


 


Any help to point in the right direction or solution would be greatly appreciate. Thanks!



 		 	   		  

FW: [users@httpd] apache reverse proxy for youtube filtering

Posted by MOFLO - <mo...@hotmail.com>.
Anyone have any suggestions please?

Thanks!

From: moflo1@hotmail.com
To: users@httpd.apache.org
Date: Mon, 13 Feb 2012 16:19:28 -0800
Subject: [users@httpd] apache reverse proxy for youtube filtering







Hi All, 

Thanks for any help in advance.... 

I'm trying to use transparent reverse proxy through Apache only when going to YouTube.com.  The proxy request adjusts the header to include a filter string to see only education based videos.

Server is CentOS 5.7 with Apache 2.2.3.

httpd.conf vhost section:

<VirtualHost *:80>
    
    ServerName youtube.com
    ServerAlias *.youtube.com


    ErrorLog logs/YouTube.com-error_log
    CustomLog logs/YouTube.com-access_log common

    ProxyRequests Off

        <Proxy *>
      RequestHeader set X-YouTube-Edu-Filter "xuxuxxhxhxhxrxrxr"
       </Proxy>

    ProxyPass / http://www.youtube.com/
    ProxyPassReverse / http://www.youtube.com/

</VirtualHost>


The filter works properly except it doesn't play the video selected. Without going though the proxy, the same video loads and plays fine.

Nothing in the error or access logs indicate any problems. 

The image below shows the error "An error occured. Please try again later". Notice the rest of the page loaded including advertisements. The console window shows two red lines from the proxy server (10.10.20.70) not being able to retrieve parts of the page content.  


 


Any help to point in the right direction or solution would be greatly appreciate. Thanks!



 		 	   		  

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See  for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org