FireDrunk / ZFSmond

Tiny ZFS Web Interface written in AngularJS and Flask Restful
GNU General Public License v3.0
27 stars 12 forks source link

Many 404 errors when run through Proxy #16

Closed Erroneous1 closed 7 years ago

Erroneous1 commented 7 years ago

When used in an Apache proxy like in the following configuration:

#Module dependencies
# mod_rewrite
# mod_proxy
# mod_proxy_http
<Location /zfs>
    # New authorization commands for apache 2.4 and up
    # http://httpd.apache.org/docs/2.4/upgrading.html#access
    Require all granted
</Location>

ProxyPass "/zfs" "http://127.0.0.1:5000"
ProxyPassReverse "/zfs" "http://127.0.0.1:5000"

There are many 404 errors because the various scripts and css resources expect to be relative to /. It should be pretty easy to fix by removing the leading / from all of the href and src attributes.

Erroneous1 commented 7 years ago

Submitted PR 17. It includes a new apache sample config, but I can resubmit without that if preferred.