View Single Post
Old 06-26-2013, 11:51 AM  
paffie
Confirmed User
 
Industry Role:
Join Date: Mar 2013
Posts: 116
Zealotry, that was wat i meanth, duplicate the magneto-config, not the vhost (i think two identical vhosts would not work, since i think the Servername directive has to be unique... Never tried it tough).
I was using my ipad (with auto-correct), and it was pretty difficult for me (a non-native english speaker) to find the correct words to describe my sollution...

i've quickly turned on my laptop, it's a lot easyer to write a reply that way...

The way i understood the original question was: Is it possible to have exacty the same products in different magneto-shops. Each shop should be reachable as a different subdomain, everything should be hosted on the same server...

The way i would solve it:
1) i would use the cloudflare nameservers, and make an A-record for each subdomain, and point it to the ip of my server (in case one of the subdomains gets very popular, and needs his own host, it makes it a lot easyer to switch if you made a-records to begin with)
2) i would probably use a LAMP-stack (Linux, Apache, Mysql, Php), and make a vhost file for every single subdomain (place it in /etc/apache2/sites-available, softlink it in sites-enabled, restart apache2). Give every subdomain its own folder on your server (Use the ServerName directive in the vhost file)
3) install magneto once, copy it to every subdomain folder... Now you have exactly the same magneto shop in every subdomain....
4) i've never used magneto, but it probably works with templates, like most other scripts available on the web today... now, you can either edit the default template, so every subdomain gets its unique look-and-feel, or, if the choice of the template is not stored in the database, but in a config-file, you can even just change that said config-file for each subdomain, and use the basic features of the script to switch templates....

In the end, i'm not completely sure if i understand your question correctly, since i don't see any advantages to this approach... But on the other hand, if you question was just to setup different stores on different subdomains, it's exactly the same first and second step, but then install magneto on each subdomain, using his own database...

Last edited by paffie; 06-26-2013 at 11:53 AM..
paffie is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote