Post by za miksica » Sun Dec 17, 2017 5:57 am

Hello All
I used Windows VPS hosting (with IIS 7.5) and creating of multistore was very simple:
1. creating shop in OC admin panel, for example testshop
2. executing this from command prompt: appcmd.exe add vdir /app.name:"mysite.com/" /path:/testshop /physicalPath:C:\inetpub\vhosts\mysite.com\httpdocs\shop It is called virtual directory (vdir).
My shop is on /shop/ subdirectory (full url is http://mysite.com/shop/ ) and above command worked perfect: when user navigate to url: http://mysite.com/testshop he actually pointed to physical Path C:\inetpub\vhosts\mysite.com\httpdocs\shop. There is no need to create any directory or something else, just above steps.

Now I moved to Linux/Ubuntu and Apache2 and I'm looking for such option, where I can create shop on OC admin panel side (this works OK) but how to point all created shops to same file directory?
What I need is this: I will create http://mysite.com/store1, http://mysite.com/store2 etc. on OC admin side and all of those stores need to points to /var/www/vhosts/mysite.com/httpdocs/shop/.
With other words, in the url is displayed http://mysite.com/store1 and products links use that domain but I have only one store on my disk and one directory.

P.S. I'm using Plesk (not cPanel) and OC version 1.5.6.4

New member

Posts

Joined
Tue Nov 24, 2015 5:20 am

Post by za miksica » Sun Dec 17, 2017 11:27 pm

za miksica wrote:
Sun Dec 17, 2017 5:57 am
Hello All
I used Windows VPS hosting (with IIS 7.5) and creating of multistore was very simple:
1. creating shop in OC admin panel, for example testshop
2. executing this from command prompt: appcmd.exe add vdir /app.name:"mysite.com/" /path:/testshop /physicalPath:C:\inetpub\vhosts\mysite.com\httpdocs\shop It is called virtual directory (vdir).
My shop is on /shop/ subdirectory (full url is http://mysite.com/shop/ ) and above command worked perfect: when user navigate to url: http://mysite.com/testshop he actually pointed to physical Path C:\inetpub\vhosts\mysite.com\httpdocs\shop. There is no need to create any directory or something else, just above steps.

Now I moved to Linux/Ubuntu and Apache2 and I'm looking for such option, where I can create shop on OC admin panel side (this works OK) but how to point all created shops to same file directory?
What I need is this: I will create http://mysite.com/store1, http://mysite.com/store2 etc. on OC admin side and all of those stores need to points to /var/www/vhosts/mysite.com/httpdocs/shop/.
With other words, in the url is displayed http://mysite.com/store1 and products links use that domain but I have only one store on my disk and one directory.

P.S. I'm using Plesk (not cPanel) and OC version 1.5.6.4
It works if adding this:

<IfModule mod_alias.c>
Alias /store1 "/var/www/vhosts/mysite.com/httpdocs/shop"
Alias /store2 "/var/www/vhosts/mysite.com/httpdocs/shop"
</IfModule>

inside vhost.conf
but is it possible to do the same using htaccess, please?
Thank you

New member

Posts

Joined
Tue Nov 24, 2015 5:20 am

Post by za miksica » Thu Dec 21, 2017 7:50 pm

I wanted to thanks to Deep Rajendra Vyas (deepvyas71@gmail.com) - he did amazing job and solved this using .htaccess, vQmod and few other changes (because I'm using custom theme).

New member

Posts

Joined
Tue Nov 24, 2015 5:20 am
Who is online

Users browsing this forum: ianradnor089, paulfeakins and 29 guests