Hello, I am new in cpanel world and need help to solve a problem.
I have the following scenario.
We sell a product to many customers.... this system was confiured in a standalone machine (no cpanel)... I need to configure it in cpanel.
the url for each customer is in the form http://customer1.mycompany.com http://customer2.mycompany.com etc.
in the filesystem, each customer has a specific subdirectory for example:
<app_configuration> \
\customer1
\customer2
.....
\customerN
I am trying to configure cpanel to handle this....
1) First I configure a wildcard subdomain *.mycompany.com and points to /<app_configuration> directory.
2) now I am trying to configure a special vhost configuration to be included that can do this apache command:
VirtualDocumentRoot /<app_configuration>/%1/
But a don´t have success...
I think that a .htaccess file can handle too, but I don´t have enough knowledge for this and don´t found any example in the web... some tutorials that I found are superficial.
Can anyone help me ?
Thank in advance.
Rodolfo
I have the following scenario.
We sell a product to many customers.... this system was confiured in a standalone machine (no cpanel)... I need to configure it in cpanel.
the url for each customer is in the form http://customer1.mycompany.com http://customer2.mycompany.com etc.
in the filesystem, each customer has a specific subdirectory for example:
<app_configuration> \
\customer1
\customer2
.....
\customerN
I am trying to configure cpanel to handle this....
1) First I configure a wildcard subdomain *.mycompany.com and points to /<app_configuration> directory.
2) now I am trying to configure a special vhost configuration to be included that can do this apache command:
VirtualDocumentRoot /<app_configuration>/%1/
But a don´t have success...
I think that a .htaccess file can handle too, but I don´t have enough knowledge for this and don´t found any example in the web... some tutorials that I found are superficial.
Can anyone help me ?
Thank in advance.
Rodolfo