Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "PackageDrone/HowTo/ReverseProxy"
(→pdrone.conf) |
|||
Line 44: | Line 44: | ||
DefaultType None | DefaultType None | ||
+ | <IfModule mod_filter.c> | ||
<IfModule mod_deflate.c> | <IfModule mod_deflate.c> | ||
FilterDeclare gzip CONTENT_SET | FilterDeclare gzip CONTENT_SET | ||
Line 49: | Line 50: | ||
FilterProtocol gzip change=yes;byteranges=no | FilterProtocol gzip change=yes;byteranges=no | ||
− | FilterProvider gzip DEFLATE | + | FilterProvider gzip DEFLATE "%{Content_Type} = 'text/html'" |
− | FilterProvider gzip DEFLATE | + | FilterProvider gzip DEFLATE "%{Content_Type} = 'text/plain'" |
− | FilterProvider gzip DEFLATE | + | FilterProvider gzip DEFLATE "%{Content_Type} = 'text/xml'" |
− | FilterProvider gzip DEFLATE | + | FilterProvider gzip DEFLATE "%{Content_Type} = 'text/css'" |
− | FilterProvider gzip DEFLATE | + | FilterProvider gzip DEFLATE "%{Content_Type} = 'text/javascript'" |
− | FilterProvider gzip DEFLATE | + | FilterProvider gzip DEFLATE "%{Content_Type} = 'application/javascript'" |
FilterChain gzip | FilterChain gzip | ||
+ | </IfModule> | ||
</IfModule> | </IfModule> | ||
</VirtualHost> | </VirtualHost> | ||
</pre> | </pre> |
Revision as of 07:30, 16 November 2015
This page describes a few ways on how to put a reverse proxy (like Apache, NGINX) in front of Package Drone so that the initial HTTP request is served by another HTTP server and then forwarded to Package Drone.
There are a few pros and cons for using a reverse proxy. If you want a reverse proxy, this is the page which describes how to do it.
OpenSUSE
OpenSuse 13 & Apache
SUSE has probably two ways of doing this. I am not a SUSE-guy, so there may be an easier way ;-)
- Install Apache 2 ->
zypper install apache2
- Start YAST and
* Enable Apache 2 * Enable modules:proxy
,mod_proxy_http
and optionallydeflate
andfilter
- Create a new file:
/etc/apache2/vhosts.d/pdrone.conf
(see below) - Add
ProxyRequests Off
to/etc/apache2/default-server.conf
Files
pdrone.conf
NameVirtualHost *:80 <VirtualHost *:80> ServerName thedrone.packagedrone.org ProxyRequests Off <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass / http://localhost:8080/ disablereuse=on ProxyPassReverse / http://localhost:8080/ ProxyTimeout 300 <Location /> Order allow,deny Allow from all </Location> DefaultType None <IfModule mod_filter.c> <IfModule mod_deflate.c> FilterDeclare gzip CONTENT_SET FilterProtocol gzip change=yes;byteranges=no FilterProvider gzip DEFLATE "%{Content_Type} = 'text/html'" FilterProvider gzip DEFLATE "%{Content_Type} = 'text/plain'" FilterProvider gzip DEFLATE "%{Content_Type} = 'text/xml'" FilterProvider gzip DEFLATE "%{Content_Type} = 'text/css'" FilterProvider gzip DEFLATE "%{Content_Type} = 'text/javascript'" FilterProvider gzip DEFLATE "%{Content_Type} = 'application/javascript'" FilterChain gzip </IfModule> </IfModule> </VirtualHost>