Hugo site different from apache

I used hugo to compile the influxdb site. All went well and it’s lovely.
However, when I copied the public folder to my apache serverroot, the site is extremely ugly. The graphics are minimal and the fonts are bad.
Why is there a difference?
Also, how can I start the hugo server without recompiling the source each time. If I just want to open the site, why does it take forever when I’ve made no changes to any source?

thank you

Check the file permissions of all folders and css/js files.
Assuming you are using the standard user www-data for Apache:

cd /var/www/html   # or whatever your content root ist
chmod -R www-data:www-data .
find . -type d -exec chmod 0755 {} \;
find . -type f -exec chmod 0644 {} \;

This usually fixes it.

I just did what you suggested and there is no difference. In fact, on closer examination, I can’t even enter most of the links. For instance the link “InfluxDB OSS” brings a 404 page. Most of the links are 404 and the ones that aren’t are butt ugly.

But the hugo site is gorgeous.

Can you link the page?

unfortunately I can’t. It’s local.

I just compiles the Hugo docs and I get the same result. The hugo site is cool but the apache site is not.

Can you show the apache config? Maybe there is some permission mistake in the config.


There are a few questions that need an answer.

  1. Are you deploying to a subdomain?

  2. What is the baseURL value?

  3. How are you referencing the Stylesheet in the head element of your project’s template? (please paste the entire line that references the CSS in your reply)