# Apache config - ProxyPass and Alias

**URL:** <https://talk.getindico.io/t/apache-config-proxypass-and-alias/4598>\
**Category:** General Discussion\
**Created:** [October 21, 2026, 8:19pm UTC](https://talk.getindico.io/t/apache-config-proxypass-and-alias/4598 "2026-10-21T20:19:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![salnikov](https://talk.getindico.io/letter_avatar_proxy/v4/letter/s/ed8c4c/32.png) [@salnikov](https://talk.getindico.io/u/salnikov)\
**Post date:** [October 21, 2026, 8:19pm UTC](https://talk.getindico.io/t/apache-config-proxypass-and-alias/4598/1 "2026-10-21T20:19:19Z")

</div>

Indico docs suggest this set of directives to put into Apache config file:

```auto
    AliasMatch "^/(images|fonts)(.*)/(.+?)(__v[0-9a-f]+)?\.([^.]+)$" "/opt/indico/web/static/$1$2/$3.$5"
    AliasMatch "^/(css|dist|images|fonts)/(.*)$" "/opt/indico/web/static/$1/$2"
    Alias /robots.txt /opt/indico/web/static/robots.txt

    SetEnv UWSGI_SCHEME https
    ProxyPass / unix:/opt/indico/web/uwsgi.sock|uwsgi://localhost/

```

The problem with this is that `ProxyPass` overrides any `Alias` directives and in reality everything goes to uwsgi.

I wanted to override `/robots.txt` alias but it did not work, this is how I discovered that ProxyPass takes precedence. To fix that issue for `robots.txt` I had to add line:

```auto
    ProxyPass /robots.txt !

```

before the `ProxyPass / ...`.

Naturally all AliasMatch directives are ignored too, so all static files are served by uwsgi.

Just to let you know in case someone else encounters this issue.

Andy

---

<div class="post-metadata">

**Author:** ![ThiefMaster](https://talk.getindico.io/user_avatar/talk.getindico.io/thiefmaster/32/509_2.png) [@ThiefMaster](https://talk.getindico.io/u/ThiefMaster)\
**Post date:** [October 21, 2026, 8:21pm UTC](https://talk.getindico.io/t/apache-config-proxypass-and-alias/4598/2 "2026-10-21T20:21:15Z")

</div>

PR to the docs appreciated 🙂 We don’t use Apache ourselves…

Based on a quick google it seems like `ProxyPass <anything from aliasmatch> !` disables it, but not sure if it supports the regexps.
