# Serve static file without extension

**URL:** <https://zola.discourse.group/t/serve-static-file-without-extension/518>\
**Category:** Support\
**Created:** [July 27, 2020, 9:44pm UTC](https://zola.discourse.group/t/serve-static-file-without-extension/518 "2020-07-27T21:44:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![itmecho](https://avatars.discourse-cdn.com/v4/letter/i/96bed5/32.png) [@itmecho](https://zola.discourse.group/u/itmecho)\
**Post date:** [July 27, 2020, 9:44pm UTC](https://zola.discourse.group/t/serve-static-file-without-extension/518/1 "2020-07-27T21:44:09Z")

</div>

I’m running a zola blog using Github pages and it works great! I’ve also been looking into running a matrix synapse server and part of that setup would require me to serve `/.well-known/matrix/server` from the top level domain I’m using for my blog. Is there a way to specify paths that should be considered as static assets and not posts/pages? Currently I have the file in the right place but I get a 404. Maybe I’ve misconfigured it or it’s just not possible?

Repo: [https://github.com/itmecho/itmecho.com](https://github.com/itmecho/itmecho.com)  
File in the repo: [https://github.com/itmecho/itmecho.com/blob/master/docs/.well-known/matrix/server](https://github.com/itmecho/itmecho.com/blob/master/docs/.well-known/matrix/server)

---

<div class="post-metadata">

**Author:** ![HugoTrentesaux](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/hugotrentesaux/32/105_2.png) [@HugoTrentesaux](https://zola.discourse.group/u/HugoTrentesaux)\
**Post date:** [July 28, 2020, 8:34am UTC](https://zola.discourse.group/t/serve-static-file-without-extension/518/2 "2020-07-28T08:34:21Z")

</div>

You mean the file in the static folder : [https://github.com/itmecho/itmecho.com/blob/master/static/.well-known/matrix/server](https://github.com/itmecho/itmecho.com/blob/master/static/.well-known/matrix/server) ?  
I tried to serve a file `/.test/abc.txt` located in the static folder and it works for me at least with Zola serve and looking into `http://127.0.0.1:1111/.test/abc.txt` it should work with you too.  
I tried to access `https://itmecho.com/.well-known/matrix/server` and it tells 404 but it might be due to your server configuration (github pages).  
You should check if Github pages serves files inside a hidden folder (`.well-known`). It serves well the images for example : `/assets/img/2020-06-17-datadog-log-1.png`

---

<div class="post-metadata">

**Author:** ![itmecho](https://avatars.discourse-cdn.com/v4/letter/i/96bed5/32.png) [@itmecho](https://zola.discourse.group/u/itmecho)\
**Post date:** [July 28, 2020, 9:26am UTC](https://zola.discourse.group/t/serve-static-file-without-extension/518/3 "2020-07-28T09:26:03Z")

</div>

Yea, I thought about this overnight and realised that it’s nothing to do with Zola, it’s more likely something to do with Github Pages. It could well be because they’re using letsencrypt with the HTTP verification so they have special handling for routes starting with `/.well-known`
