Is one site integrated with deployment solutions for multiple mature products?

Source: Internet
Author: User
I am preparing to create a website recently. This site will be used in malls, forums, and CMS, but similar products have mature products. These need to be integrated to form a site. Suppose they are all php products. The server uses nginx. Domain Name Pointing to: varwww without testing, I thought about... recently preparing to do a site. This site will be used in malls, forums, CMS, etc.
However, similar products have mature products. These need to be integrated to form a site.

Suppose they are all php products. The server uses nginx.
Domain Name Pointing to:/var/www
I thought about two solutions without testing.
Solution 1:
Under the www directory shop is the mall system, under bbs is discuz, and under the root directory is cms
Url rewriter is used for every project. In the past, when there was only one cms, I could
The request is sent to/var/www/index. php, but it seems a bit complicated now.
Domain name/bbs/* should all point to index. php under bbs

Solution 2:
I know that there is a second-level domain name, can it be deployed like this?
/Var/www put cms
/Var/bbs Project
/Var/shop mall project

Then the primary domain name points to www
The second-level domain name points to bbs and shop.

I don't know if any of you have made these things. Could you give me some advice?

Reply content:

I am preparing to create a website recently. This site will be used in malls, forums, CMS, etc.
However, similar products have mature products. These need to be integrated to form a site.

Suppose they are all php products. The server uses nginx.
Domain Name Pointing to:/var/www
I thought about two solutions without testing.
Solution 1:
Under the www directory shop is the mall system, under bbs is discuz, and under the root directory is cms
Url rewriter is used for every project. In the past, when there was only one cms, I could
The request is sent to/var/www/index. php, but it seems a bit complicated now.
Domain name/bbs/* should all point to index. php under bbs

Solution 2:
I know that there is a second-level domain name, can it be deployed like this?
/Var/www put cms
/Var/bbs Project
/Var/shop mall project

Then the primary domain name points to www
The second-level domain name points to bbs and shop.

I don't know if any of you have made these things. Could you give me some advice?

My deployment solution isPrimary Domain Name + secondary Domain Name

/home/www/cmsPut cms
/home/www/bbsBbs Project
/Home/www/shop mall project

Then the primary domain name points/home/www/cms
Second-level domain name pointing/home/www/bbsAnd/home/www/shop.

Reference: http://www.91toutiao.com/

vi /usr/local/nginx/conf/nginx.conf...http {    ...    include /usr/local/nginx/conf/conf.d/*.conf;}vi /usr/local/nginx/conf/conf.d/walden.confserver {    listen       80;    server_name  walden.huamanshu.com;    root /var/www/walden;    index index.php;    location / {        try_files $uri $uri/ /index.php$is_args$args;    }    location ~ \.php$ {        try_files $uri =404;        fastcgi_pass   127.0.0.1:9000;        fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;        include        fastcgi_params;    }}

Put multiple configurations in/usr/local/nginx/conf. d/, and deploy the power-on-line system using a deployment tool.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.