开发者

How to setup multiple subdomains on lampp?

开发者 https://www.devze.com 2023-01-14 00:48 出处:网络
I need to set up multiple projects on lampp. How can i create sub domains for these multiple projects.开发者_开发问答

I need to set up multiple projects on lampp. How can i create sub domains for these multiple projects.

开发者_开发问答

My projects are in cakePHP.

Can anyone help me?


I just add a folder for each project in document root (usually /var/www/ in Ubuntu) I think it's /var/www/html/ in CentOS.

Access is then http://localhost/projectname/, so a Cake project called blog with an articles controller, you would do something like http://localhost/blog/articles/view/23 to view article id=23.

0

精彩评论

暂无评论...
验证码 换一张
取 消