lincanbin / Carbon-Forum

A high performance open-source forum software written in PHP. Discussions Tags based with Quora/StackOverflow style.
https://www.94cb.com/
Apache License 2.0
1.84k stars 433 forks source link

How can i find api and mobile #281

Open tanzaniatech opened 6 years ago

tanzaniatech commented 6 years ago

Hi sorry am new here so, how can i find api.url and m.url because i cant find it.. i use this on subdomain like forum.mysite.com Please help.

lincanbin commented 6 years ago

Create a new domain name and set the A record, then set the listener on the server.

tanzaniatech commented 6 years ago

Thank you for quick reply, I dont know what you mean by create a new domain,.. you mean i should by new domain or i should create a new subdomain...? And about set a listener i dont know how to do that... or i dont know the full meaning.. can you clarify what is or how to set a listener on server..?

lincanbin commented 6 years ago

Create a new subdomain.

lincanbin commented 6 years ago

And add configuration to your Nginx like this:

server {
 ...
        server_name www.94cb.com 94cb.com m.94cb.com api.94cb.com;
...
 }
tanzaniatech commented 6 years ago

What if i use Apache

tanzaniatech commented 6 years ago

after creating a subdomain what should i add in the folder

lincanbin commented 6 years ago

Apache: add ServerAlias

<VirtualHost *:88>
DocumentRoot /www/web/carbon/public_html
ServerName 94cb.com
ServerAlias www.94cb.com m.94cb.com api.94cb.com

...

</VirtualHost>
<Directory /www/web/carbon>
    Options FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>
lincanbin commented 6 years ago
  1. Create a subdomain and set A record;
  2. Set your subdomain information in your carbon forum dashboard;
  3. Add ServerAlias to your apache and reload it.
tanzaniatech commented 6 years ago

so the subdomain will be empty... and is this going to work in shared host.

lincanbin commented 6 years ago

empty?

tanzaniatech commented 6 years ago

I ask you what should i add in subdomain and i think you didn't read that comment... So far i know this step

  1. I create a another subdomain in folder where i host carbon forum
  2. I get to DNS the i create a A record with subdomain i create and i point to the same ip address
  3. THIS STEP I DON'T UNDERSTAND, BECAUSE I SEE THE CODE YOU GIVE ME IS VPN NOT SHARED HOST ...?
tanzaniatech commented 6 years ago

Am Beginner, I found this forum so beautiful and i want to use it with our website. So i need step by step how to do this i know it will help other too so please help.

lincanbin commented 6 years ago

Shared host users should point your multiple subdomains to the same folder.

tanzaniatech commented 6 years ago

You mean, please am beginner can you please be specific PLEASE a little instruction for beginner will be very kind. PLEASE SIR

tanzaniatech commented 6 years ago

Please sir a little help.

lincanbin commented 6 years ago

I am not using a shared host at present, and I am not sure how to operate it on the shared host's user interface.

tanzaniatech commented 6 years ago

Can i give you credential in my shared host so that you can test it.