Search Unity

Can't seem to get Apache to serve unityweb as gzip

Discussion in 'Web' started by forzabo, Apr 13, 2018.

  1. forzabo

    forzabo

    Joined:
    Aug 28, 2015
    Posts:
    64
    This is driving me nuts.

    I am trying to do something that should be simple -- namely, get Apache to serve .unityweb files compressed. My server (which I have root control of) is running Ubuntu 17.04, Apache has mod_mime & mod_deflate enabled. In fact regular html files are served gzipped just fine. But I can't seem to get unityweb files to serve gzipped.

    I've triple checked the .htaccess files, they are in the right place and everything is spelled right. I've restarted Apache. I've tried modifying the mod_mime.conf files instead and restarting. No matter what I still get:

    "You can reduce your startup time if you configure your web server to host .unityweb files using gzip compression."

    Anybody have any ideas?

    https://acmenerdgames.com/fyp/
     
  2. forzabo

    forzabo

    Joined:
    Aug 28, 2015
    Posts:
    64
    Ok, answering my own question in case it helps someone else.

    In my case Apache2 was not configured to read .htaccess files. (!). Easy fix by modifying apache2.conf:

    <Directory "/var/www/xyz">
    AllowOverride None

    to

    <Directory "/var/www/xyz">
    AllowOverride All
     
  3. scott_unity734

    scott_unity734

    Joined:
    Sep 27, 2018
    Posts:
    3