# Listing gitea in apache directory index

**URL:** <https://forum.gitea.com/t/listing-gitea-in-apache-directory-index/1294>\
**Category:** Install/Maintain/Configure\
**Created:** [July 12, 2019, 2:31am UTC](https://forum.gitea.com/t/listing-gitea-in-apache-directory-index/1294 "2019-07-12T02:31:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gooberpatrol66](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/gooberpatrol66/32/577_2.png) [@Gooberpatrol66](https://forum.gitea.com/u/Gooberpatrol66)\
**Post date:** [July 12, 2019, 2:31am UTC](https://forum.gitea.com/t/listing-gitea-in-apache-directory-index/1294/1 "2019-07-12T02:31:30Z")

</div>

I have a gitea instance at [url.com/gitea](http://url.com/gitea) with apache proxypass:

```
ProxyPass /gitea http://localhost:3000
ProxyPassReverse /gitea http://localhost:3000

```

I would like the /gitea directory to appear at [url.com](http://url.com) in the apache directory index. How can I do this?

---

<div class="post-metadata">

**Author:** ![tallship](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/tallship/32/4771_2.png) [@tallship](https://forum.gitea.com/u/tallship)\
**Post date:** [July 12, 2019, 8:21am UTC](https://forum.gitea.com/t/listing-gitea-in-apache-directory-index/1294/2 "2019-07-12T08:21:43Z")

</div>

Change

```
<VirtualHost *:80>
    ServerName url.com
    DocumentRoot "/var/www/url.com"
    ProxyPass /gitea http://localhost:3000
    ProxyPassReverse /gitea http://localhost:3000

    # Other directives here
</VirtualHost>

```

to

```
<VirtualHost *:80>
    ServerName git.url.com
    ProxyPass / http://localhost:3000
    ProxyPassReverse / http://localhost:3000

    # Other directives here
</VirtualHost>

```

Then add the following A RR in your DNS zone as follows:

`git.url.com. 14400 in a 1.2.3.4`

Where 1.2.3.4 is the IPv4 address of your box where apache is serving your gitea instance.

You’ll need to make adjustments for the hostname in your app.ini file as well so Gitea knows who she is.

Or you could just leave the ServerName as [url.com](http://url.com), but anything already there won’t be served, only Gitea will.

I hope that helps 🙂

---

<div class="post-metadata">

**Author:** ![Gooberpatrol66](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/gooberpatrol66/32/577_2.png) [@Gooberpatrol66](https://forum.gitea.com/u/Gooberpatrol66)\
**Post date:** [July 12, 2019, 8:22pm UTC](https://forum.gitea.com/t/listing-gitea-in-apache-directory-index/1294/3 "2019-07-12T20:22:54Z")

</div>

What I meant was, serve gitea at url. com/gitea, but have the /gitea directory appear in the directory index at [url.com](http://url.com).

For example, I have a nextcloud instance at url. com/nextcloud, and a /nextcloud folder appears in the apache index.

---

<div class="post-metadata">

**Author:** ![lunny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/lunny/32/4701_2.png) [@lunny](https://forum.gitea.com/u/lunny)\
**Post date:** [July 13, 2019, 2:59pm UTC](https://forum.gitea.com/t/listing-gitea-in-apache-directory-index/1294/4 "2019-07-13T14:59:51Z")

</div>

You should change app.ini to set ROOT\_URL has the `/gitea`
