简体   繁体   中英

Apache 2 + virtual hosts on different folders

I have a folder named www with my applications:
/www/app1_folder/
/www/app2_folder/
/www/app3_folder/

Also I have one external ip and domain name www.example.org* .

If I refer my apps without virtual host settings It looks:
http://www.example.org/app1_folder/
http://www.example.org/app2_folder/
http://www.example.org/app3_folder/

But problem is my apps share a session environment.

I would like to save the approach of my apps referring (ie http://www.example.org/app1_folder/ , ...) without sharing of environment.

I hope it's possible with virtual host setting of apache.

How can I make virtual hosts based on different names of folder (ie app1_folder, app2_folder, app2_folder)?

A virtual host is defined by a domain name (foo.mysite.com) and a port (:80, ...).

You cannot create several virtual hosts by using the same domain name/port.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM