Drupal on two domains ?!

V I R U S - July 24, 2009 - 08:24

Hi everybody!

I've gotta question about how to let the Drupal to run on two different domains?!
I've my own server, so i would like to rund main domain like mysite.com for dynamic content like the page self and second domain like mystatic.com for content like cache, uploads, avatars and the rest.

Thats Debian machine, so the first domain is in: /var/www/mysite.com/
and the second domain is in: /var/www/mystatic.com/

In Drupal self, in Admin Config, i've changed the path to upload directory to ../mystatic.com/ and ../mystatic.com/tmp/
The uploading works good, the files appears in the directory, but compressed CSS and the rest like JS are not loaded because of path of /mysite.com/../mystatic.com/fh437zr783r....css

How is it possible to change not only the path to that files, but the whole domain!? Like to bring it to download this files from different server/domain ?! So that if someone will look at HTML source, he will see overall not the /mysite.com/../mystatic.com/fh437zr783r....css but http:///mystatic.com/fh437zr783r....css as a path. Is it possible?!

Thanx!

initial suggestion

rafiqcmnet - July 24, 2009 - 08:44

Have you taken a peek look at the Domain Access module? In the said module there is a module called Domain Theme. Pardon me if my suggestion does not solve your requirement. I have used DA but mostly for easy member easy over sub-domains only. rgds.

That's something different of

V I R U S - July 24, 2009 - 11:03

That's something different of what i'm looking for... =((

/* XTreme-CStrike */

That's only for Cache as i

V I R U S - July 24, 2009 - 11:42

That's only for Cache as i understand, what about other files the user will upload?

/* XTreme-CStrike */

Mby it's simplier to change

V I R U S - July 24, 2009 - 11:43

Mby it's simplier to change the the download path in Drupal Code instead of using such Modules?!

/* XTreme-CStrike */

why don't you use virtual

raj47i - July 24, 2009 - 12:09

why don't you use virtual folders ?
or use mount command in linux ?

And how should i bind the

V I R U S - July 24, 2009 - 12:21

And how should i bind the files to load not from folder, but from http host?!

/* XTreme-CStrike */

 
 

Drupal is a registered trademark of Dries Buytaert.