icecoder / ICEcoder

Browser code editor awesomeness
http://icecoder.net
Other
1.41k stars 347 forks source link

Multi site/domain setup. #923

Open xa2099 opened 3 years ago

xa2099 commented 3 years ago

Not having a lot of luck setting up the coder to use all the sites/domains in the "/var/www/" directory. I have multiple websites under this directory. I would like to install the ICEcoder to access them all at once.

I tried setting the "root" in settings to "/var/www", but it would not show the sites.

mattpass commented 3 years ago

You should leave the "root" as the default blank setting, it's a different server setup you'll need. I haven't tried the suggestion below but should work...

If you have:

/var/www/site1
/var/www/site2
/var/www/icecoder

You need a way to show ICEcoder. You could buy a domain for this purpose, or could set up your server to recognize a fake domain, such as say icecoder.dev. Whatever you choose, you set your webserver to recognize the domain and the document root for it at /var/www ...that's the important bit as that's the "document root" you'd like.

If you go for the fake domain setup, you'll need an entry in your local hosts file where you add your IP and fake domain, eg: 1.2.3.4 icecoder.dev

Close all browser windows, reopen one and go to icecoder.dev/icecoder (or a yourrealdomain.com/icecoder if you bought a domain). Now when you log into ICEcoder you should see the file manager shows:

xa2099 commented 3 years ago

Thanks your for your reply. I may give it a try.

It looks a bit "hacky".

Have you considered what Codiad has? The ability to add projects, each having a project root directory.

xa2099 commented 3 years ago

It worked in showing all the site directories, but I can't create a file.

I get the message at the bottom and the file is not getting created.

Screenshot 2020-10-03 004100