I am too new in server technology. I have some problem with configuration of multi projects with each different framework in single domain.
The scenario is, i have a folder structure like below
1 if user access domain.com then need to run project-angular/dist/index.html
2 if user access domain.com/blog/(*) then need to run project-wordpress/index.php
3 if user access domain.com/(*) then need to run project-aurelia/index.html
I found a solution for this problem. And now sharing with you all which I did. Please check and let me know if you have any Queries. Create Alias.
1 Set domain.com with Aurelia project directory. Because apart from / and /blog we need all other URL from Aurelia. (Solution of Point 3)
2 Create an Alias for Blog section as /blog. And set the domain.com/blog/(*) with WordPress project directory. (Solution of Point 2).
3 For URL / create the other Alias for example /home and set the domain.com/home with Angular project directory. And keep the Angular project in Aurelia Root directory.
Redirect the user to Angular base URL whenever user will access domain.com
Add below code in the httpd-vhosts.conf file.
<Directory "path-to-aurelia/project-aurelia/"> DirectoryIndex project-angular/dist/index.html Options Indexes FollowSymLinks MultiViews AllowOverride all Require all granted </Directory>
Now All the Angular links will run on domain.com/home/(*). (Solution of Point 1)