Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Canonical issue

Started by Muut Archive 11 years ago · 2 replies · 447 views
11 years ago

Hi all,

I have an issue with my server setup and canonical.

I have varnish on port 80 and nginx on port 8080 and the system runs smoothly.

Only thing bothering me is that gravs canonical function includes the server port in the url. Any quick and easy way to remove it?

My canonical is always as follows: <link rel="canonical" href="http://mydomain.com:8080/some/sub/path" />

11 years ago

Try enabling the reverse_proxy_setup option in system.yaml.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 2606 9 years ago
Archive · by Muut Archive, 9 years ago
2 1711 9 years ago
Archive · by Muut Archive, 9 years ago
2 5008 9 years ago
Archive · by Muut Archive, 9 years ago
1 3837 9 years ago
Archive · by Muut Archive, 9 years ago
3 1819 9 years ago