> ## Content Index
> Fetch the complete content index at: https://www.bagz.fr/llms.txt
> Use this file to discover other available public pages before exploring further.

# Apache - Proxy some URLs to another server
- URL: https://www.bagz.fr/apache-proxy-some-urls-to-another-server/
- Published: 2015-09-30T16:07:52.000Z
- Updated: 2015-09-30T16:07:52.000Z
- Author: bgazui
- Tags: Linux, #Migrated-1790668826633, #wp, #wp-post, #Import 2026-09-29 08:00

In Apache, if you want to forward some requests matching a regex to another server, you can use the rule **ProxyPassMatch**.

Here is an example that is matching URL like:

- /admin/**anything**
- /list/**any number**/info
- /manage/**any number**

and redirect it to *https://my-hidden-domain.com:26000*ProxyPreserveHost On  
ProxyRequests Off  
ProxyPassMatch ^/(admin/.\*@.\*|list/\[0-9\]\*/info|manage/\[0-9\]\*)$ https://my-hidden-domain.com:26000/$1  
You can then define any rule you want with multiple rules matching different regex.ègles que vous voulez avec différentes expressions régulières.