paksociety
Verified User
- Joined
- Jul 11, 2013
- Messages
- 89
Hi.
i want to add 4 subdoamins with same path, dont want to make it a default choice but wwant these subdoamins to use data put in same folder.
What i am using??
i used this approach
i got following error:-
AH00112: Warning: DocumentRoot [/home/users/domains/example.com/public_html/cdn/cdn1] does not exist
AS it clearly indicate that directadmin is trying to create new directory in cdn instead of using files from cdn.
Than i add a subdomain cdn2.example.com as main domain from main panel and add following:-
To Tell him to use this path.
Now when i open cdn2.example.com it shows main page of cdn.example.com means it is working, but if i try to get a file as cdn2.example.com/folder/another/some.jpg it shows 404 error but i can get file using cdn.example.com/folder/another/some.jpg it means it is not working with folder?
i want to know is there any other step i have to follow??? Please Help.
i dont want to use CNAMe as i want to minimse dns lookups, i dont want to use htaccess as i want to reduce time.
My Configuration is this:-
Centos 7
DA latest
Ngnx_Apahe Webserver
Php 5.6
Waiting for answers
Regards
i want to add 4 subdoamins with same path, dont want to make it a default choice but wwant these subdoamins to use data put in same folder.
What i am using??
i used this approach
Code:
|*if SUB="cdn1"|
|?DOCROOT=/home/users/domains/example.com/public_html/cdn|
|*endif|
AH00112: Warning: DocumentRoot [/home/users/domains/example.com/public_html/cdn/cdn1] does not exist
AS it clearly indicate that directadmin is trying to create new directory in cdn instead of using files from cdn.
Than i add a subdomain cdn2.example.com as main domain from main panel and add following:-
Code:
|*if !SUB|
|?DOCROOT=/home/users/domains/example.com/public_html/cdn|
|*endif|
To Tell him to use this path.
Now when i open cdn2.example.com it shows main page of cdn.example.com means it is working, but if i try to get a file as cdn2.example.com/folder/another/some.jpg it shows 404 error but i can get file using cdn.example.com/folder/another/some.jpg it means it is not working with folder?
i want to know is there any other step i have to follow??? Please Help.
i dont want to use CNAMe as i want to minimse dns lookups, i dont want to use htaccess as i want to reduce time.
My Configuration is this:-
Centos 7
DA latest
Ngnx_Apahe Webserver
Php 5.6
Waiting for answers
Regards