Hi @All,
I’m a total newbee to grav. I decided to use it, cause for me it seemed to be more practical having a flat-file cms instead of those who needing a database (e.g Joomla, Wordpress, etc…).
So I uploaded grav+admin (v1.7.48 / v1.10.48) to my webspace.
As I have different domains, the webspace for all of them is pointing to the same folder (ROOT/site/…).
First I got totally confused, cause for me it seemed, that something is going totally wrong. So i decided to make an backup of the site an reinstall grav. This I recognized, that grav has automatically created new subfolders for each domain.
- ROOT/site/user/www.domain1.tld1
- ROOT/site/user/www.domain2.tld2
- ROOT/site/user/www.domain3.tld3
- ROOT/site/user/domain1.tld1
- ROOT/site/user/domain2.tld2
- ROOT/site/user/domain3.tld3
After getting a bit deeper into grav I was totally happy about this, cause I was quite easy to set different welcome_pages for each domain.
But now I’m a bit stuck for this multisite setup for my local development platform (AMPPS with Apache & PHP).
Somehow, what is working online, does not work “offline”/locallly.
I created (corresponding to my domains) 4 local vHosts
- domain1.local
- domain2.local
- domain3.local
- domain4.local
I tried to do the setup (Multisite Setup) but this does not work for my local vHosts.
I placed all files under:
- …/user/env/domain1.local
- .
- .
- …/user/env/domain4.local
including the setup.php (> setup_subdirectory.php).
But It wont work. Grav seems only to access the folder …/user/localhost and ignoring everything else.
I also added in the Apache vhosts.conf for each local vHost:
SetEnv GRAV_ENVIRONMENT_PATH user://env/domain1.local
Last but not least, I now discovered, that for domain4.tld
the subdirectories are not created (It’s the only domain with a hyphen inbetween) this I’m missing
- ROOT/site/user/www.dom-ain4.tld4
- ROOT/site/user/dom-ain4.tld4
So I’ve quite a few questions.
- Is there a way to unify the folders only to e.g /user/domainX.tldX without the “www” subdomain?
- Is this maybe a bug, that there are no subdirectories created for the dom-ain4.tld4 with the hyphen?
- Why are the online folders created in ROOT/user/ and not ROOT/user/env (like stated in the documentation)?
- How to do the local setup?
I’d be thankful for every hint & tip…
ThX
LC