Static files not loaded in a Bottle application when the trailing slash is omitted

前端 未结 3 1544
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-06 19:13

I am serving a test file through apache using Bottle.

Following are my apache config:

WSGIDaemonProcess temp user=www-data group=www-data processes=1 thr         


        
3条回答
  •  暖寄归人
    2021-02-06 19:49

    Another workaround is to add this redirection in your Apache configuration file :

    RedirectMatch 301 ^/(temp)$ /$1/
    

    This will add a / at the end of your index page, so you don't have to modify your code.

提交回复
热议问题