![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Industry Role:
Join Date: Jul 2001
Location: Utopia
Posts: 6,479
|
server question; how does file hierarchy work?
i mean like the way Magento is set up.
I want to run a project with many subdomains with custom fronts and images, using everything else the same as the root domain. Magento does this fantastic, is this easy with just the htaccess or a complete different filesystem? anybody? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Industry Role:
Join Date: May 2012
Location: With your mom
Posts: 5,189
|
Come again?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Industry Role:
Join Date: Jul 2001
Location: Utopia
Posts: 6,479
|
Ha!
I issume you dont know how magento works. besides me not being very clear ;-)
__________________
seks.ai for sale - ping me |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Industry Role:
Join Date: May 2012
Location: With your mom
Posts: 5,189
|
What does server question have to do with how magento works!? You suggesting using htaccess only tells me you would run apache web server. Subdomains are easy to setup depending on what access you have to this server, if it has a panel of some sort (cpanel, webmin, plesk, etc.), else use ssh and edit the webserver config to add virtual hosts.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
Confirmed User
Industry Role:
Join Date: Mar 2013
Posts: 116
|
Quote:
__________________
Need a VPS? I use Ramnode, great uptime, friendly support and only $62/year (after their lifelong coupon) for an openVZ VPS => [email protected], 512Mb ram, 512 Mb swap, 120 Gb SSD, 1Gbps port, 2 Tb bandwith, 1 IPv4, 16 IPv6, weekly backups |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Industry Role:
Join Date: May 2012
Location: With your mom
Posts: 5,189
|
If you use the same config file for each virtual host, you will end up serving the same thing in different subdomains. What's the point? it is your scirpt that would need to connect to a database, not your virtual host. That does not even make sense. Maybe you mean script config, not webserver config?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
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... |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Join Date: Aug 2002
Posts: 2,781
|
Magento handles this for you out the box... I can't be bothered to look it up but you just need the one Magento install and it will handle the rest. All the Vhosts will point to the same directory.
Refer to the Magento multishop configuration documentation for more information.
__________________
I don't endorse a god damn thing...... ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 | |
Confirmed User
Industry Role:
Join Date: Mar 2013
Posts: 116
|
Quote:
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
see you later, I'm gone
Industry Role:
Join Date: Oct 2002
Posts: 14,078
|
I think the OP is asking how to emulate what Magento does without actually installing Magento.
I think. .
__________________
All cookies cleared! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Confirmed User
Industry Role:
Join Date: May 2012
Location: With your mom
Posts: 5,189
|
I would not use cloudflare. Well, last time I used it, it totally sucked. I suggest you go with nginx instead of apache. Your plan seems like one that would get lots of traffic.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 | |
Confirmed User
Industry Role:
Join Date: Jul 2001
Location: Utopia
Posts: 6,479
|
Quote:
I have been working with Magento since day 1, i know how it works haha. I was asking how they did the multistore thing, with the fallback system on each skin/theme. We have a clubclothing website and we'd like the clubs to have their own subdomain under one script, using only different images/frontpages than default. Indeed emulating what Magento does. I asked "server" guys as this might be something technical, not scripting. By now i do know it is setup with htaccess/mod_rewrite routines together with other code. Thanks for all the - not needed - serverreplies;-). Some of those were answers to questions i would be ashamed to ask after so many years:-p I'll try to be more clear next time. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 |
Confirmed User
Join Date: Feb 2005
Location: Montreal
Posts: 3,018
|
This thread delivers! :p
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 | |
Confirmed User
Industry Role:
Join Date: Mar 2013
Posts: 116
|
Quote:
I've experimented with nginx a couple of times, worked really fast for static content... I reverse proxyd everything but requests to static pages to an apache server listening to another port... (some of my homemade scripts rely on htaccess rather intensively, i was not in the mood to rewrite all those linex to nginx conf-files) I stopped my approach after the server load became to high (i'm using two mid-level VPS's, and their load was close to 20 if i remember correctly... To bad my VPS's have 2 and 4 Vcpu cores... my host had to kill my instances a couple of times because the stability of his system was in jeopardy... So i decided to go to the classic LAMP again) |
|
![]() |
![]() ![]() ![]() ![]() ![]() |