This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Hosting images on subdomain
#1
Hosting images on subdomain
Hi, I am using Opencart CMS on my domain. I want to host all the images in a subdomain to speed up the website. However, when I link the existing domain config with the subdomain, the open_basedir restriction comes into effect. Both, the domain and the subdomain, are in the public_html folder. 

I basically want Opencart which is installed in my domain to be able to read/write on my subdomain. 
Is there any way to bypass this restriction without compromising on security?
Reply
Thanks given by:
#2
RE: Hosting images on subdomain
easy set the subdomain root under the main domain instead of separate root. So when the main domain would to access any image it would be able to do so.

M B
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask

200$ free to start your VPS 60 days credit
Reply
Thanks given by:
#3
RE: Hosting images on subdomain
(01-08-2016, 09:07 PM)Me.B Wrote: easy set the subdomain root under the main domain instead of separate root. So when the main domain would to access any image it would be able to do so.

M B

Hi, Thanks for your reply. 

I want the subdomain to be cookieless, so it will need a new htaccess file. 

Is it possible to make a root of the subdomain inside the root of the domain?

For example- if the domain root is domain_tld, the subdomain root can domain_tld/images/
Reply
Thanks given by:
#4
RE: Hosting images on subdomain
yes as I said you set subdomain root inside a sub folder of root. If you use the same root for both .htaccess in root will trigger conflicts with main domain.

M B
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask

200$ free to start your VPS 60 days credit
Reply
Thanks given by:
#5
RE: Hosting images on subdomain
(01-14-2016, 11:53 PM)Me.B Wrote: yes as I said you set subdomain root inside a sub folder of root. If you use the same root for both .htaccess in root will trigger conflicts with main domain.

M B

When I create sub domain, in the use existing home directory option, only root and domain_tld options are there. 

How to select the root directory within domain_tld at this step?
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
Public_html Inside Domain/Subdomain zHostingSolutions 2 5 ,018 07-23-2021, 09:57 AM
Last Post: Nigel
redirect error after letsencrypt + subdomain mizerek 1 4 ,837 08-06-2020, 04:54 AM
Last Post: mizerek
I want to create a subdomain using XMWS phuong112 1 4 ,845 11-13-2019, 09:25 AM
Last Post: TGates

Forum Jump:


Users browsing this thread: 4 Guest(s)