Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

How do I install a second independent website on the same Grav Server?

Started by Muut Archive 10 years ago · 3 replies · 393 views
10 years ago

I have an Amazon AWS micro instance running Grav installed via ServerPilot. Everything works fine.

QUESTION:
Is it possible to RUN A DIFFERENT WEBSITE (i.e. entirely different domain) on the same Grav Installation?
If yes how?

I read the multi-site installation notes in the Grav Manual but this only seems to refer to subdomain sites not entirely different sites.

10 years ago

I've never tried to do it, but the subdomain code should work as well fine for completely different domains. Try and let us know :)

10 years ago

Hi, what @flaviocopes suggests should work. I use a variant of that file on my production server. In your case mydomain.com will then be mapped to user/sites/mydomain.com.

10 years ago

As the above suggest, a subdomain is virtually a domain in its own right - it's all about how the server interprets the domain for retrieving files from the server. I use grav.dev and test.grav.dev in local development, but the same setup would just as easily allow server.dev, server.com, server.net to be server from different (or the same) folders within sites - both locally and on my live webserver.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1366 9 years ago
Archive · by Muut Archive, 9 years ago
2 940 9 years ago
Archive · by Muut Archive, 9 years ago
2 4069 9 years ago
Archive · by Muut Archive, 9 years ago
1 2960 9 years ago
Archive · by Muut Archive, 9 years ago
3 1125 9 years ago