We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

server images from another domain | Forum

Topic location: Forum home » Support » General Questions
tammy harris
tammy harris Jul 26 '15
i am trying to server images from another domain to speed up page load times 
i managed a long time ago to get it to server images from a subdomain 

do anyone know what i need to change in the user files part of config file 
to serve images from another domain

define('OW_DIR_USERFILES', OW_DIR_ROOT.'ow_userfiles'.DS);

define('OW_DIR_STATIC', OW_DIR_ROOT.'ow_static'.DS);

define('OW_URL_STATIC', OW_URL_HOME.'ow_static/');

define('OW_URL_USERFILES', OW_URL_HOME.'ow_userfiles/');

define('OW_DIR_PLUGINFILES', OW_DIR_ROOT.'ow_pluginfiles/');

The Forum post is edited by tammy harris Jul 26 '15
ross Team
ross Jul 27 '15
Do you want to take the userfiles from another domain only or save new ones there as well?
The Forum post is edited by ross Jul 27 '15
tammy harris
tammy harris Jul 27 '15
i want move the complete ow_pluginfiles/ folder to another domain 

so take and save 

it should give me a huge speed increase 
ross Team
ross Jul 27 '15
This is considered as a very complicated code modification of the software. Why don't you use cloud services, we provide, like Amazon?
tammy harris
tammy harris Jul 27 '15
2 years ago i played with these 2 lines

define('OW_URL_USERFILES', OW_URL_HOME.'ow_userfiles/');
define('OW_DIR_USERFILES', OW_DIR_ROOT.'ow_userfiles'.DS);

and got images to be served from a subdomain and it worked fine  to 
take and save 
images and every thing from the 
ow_userfile folder 
the site load times was cut in half 
but when i went to ssl  i did not have a wildcard ssl cert so subdomains are not covered by the ssl cert
and i reverted back to original config
its so dam long ago i can not remember how i done it and have spent hours trying to do it again 

i have tryed cloud flare and tested it for a week with out use it index page load times
average 2 seconds

enable cloudflare set all the bells and whistles  let it run for a week so it cache everything 
then run test for a week on load times on index and rest site load times increased by average 2,5 times

so index load times 5 seconds 


ketkew
ketkew Jul 28 '15
Why not using symbolic links between 2 servers? (I suppose that your subdomain is on another server).. than you don't need to use SSL because the images are served via the protocol between the 2 servers (NFS for example..wich can also be secured)
tammy harris
tammy harris Jul 28 '15

Quote from undefined undefined
lol that went over my head 

i have one dedicated server with 2 domains both have ssl 
so i am try serve images to each domain from the other domain
tammy harris
tammy harris Jul 28 '15
ross another quote problem 
ketkew
ketkew Jul 28 '15
That you still can use symbolic links between 2 domains on the same server (without the SSL issue). Than no custom config have to be done in OW so far as I see..
The Forum post is edited by ketkew Jul 28 '15
tammy harris
tammy harris Jul 28 '15
il try google this
symbolic links between 2 domains on the same server
and see what i can work out 
Taissa Team
Taissa Jul 28 '15
Tammy, we are aware of this issue. This has been discussed here: http://www.oxwall.org/forum/topic/39452?page=1.
tammy harris
tammy harris Jul 28 '15
cool
taisa can you help whit my problem of server images from another domain 
ketkew
ketkew Jul 28 '15
Here are some examples of the "ln" command (I suppose you use linux or bsd for hosting).
(go to point 2, en view:Create a symbolic link for a Directory)

The symbolic links on linux/bsd are like the same as "shortcuts" in windows..
The Forum post is edited by ketkew Jul 28 '15
tammy harris
tammy harris Jul 28 '15
ohhhhhh that needs be done in the black screen of death 


ketkew
ketkew Jul 28 '15
If you don't know how to handle, than death could be the right word :P (but you can't kill anything with the ln command..)
tammy harris
tammy harris Jul 28 '15
im shore all i done before was like this 
define('OW_URL_USERFILES', 'subdomain.siteurl.com/ow_userfiles/');
and moved 
ow_userfiles to the subdomain 
tammy harris
tammy harris Jul 28 '15
trust me i can kill it with hello command 
ketkew
ketkew Jul 28 '15
LOL, and your are sure that you use the full path to your subdomain.siteurl.com/ow_userfiles/ ? (not using http nor https?)

so correct: /full/path/to/your/wwwdir/ow_userfiles ?


tammy harris
tammy harris Jul 28 '15
yes i tryed all version 
the only thing i can think of is try do it on subdomain again 
as it maybe the server not letting between domains 
Taissa Team
Taissa Jul 29 '15
Tammy, the best solution is to work with Amazon S3 Storage Service. Please use this instruction for configuration: https://docs.oxwall.org/install:cloud_hosting:amazons3.

Pages: 1 2 »