Hey everyone,
I've been trying to figure this out but just can't seem to get it to work. I have a drupal installation sitting in my htdocs folders, and a subsite folder in the sites directory.
I can get the multisite configuration to work fine if I just use localhost for the main install and the subsite for the secondary site. However I'm trying to get the url structure different. I want to be able to go to localhost for my main install like I am now but for my secondary install go to localhost/subsite.
I've played around with various configurations but just can seem to get it done. My dev server is windows based using xampp just like my desktop so I want to be able to do it localy before I start to do things to my dev server. Thankfully my prod server is linux so I'm able to use php symlinks...
Any and all help is greatly appreciated,
M
Comments
multisite
Hi,
I'm using XAMPP for development also ;-)
I've set up a multisite environment like this:
- I made two directories: htdocs/drupal5 and htdocs/drupal6
- At the apache/conf/extra/vhosts I set up multiple domains ending with localhost.com, like: mysite.d5.localhost.com, yoursite.d6.localhost.com for the previous set directory depending which drupal I wanna have (restart of the apache needed)
- In c:\windows\system32\drivers\etc\hosts file I set up the previous domains/subdomains for 127.0.0.1
...so all I got to do is call the different urls set in the vhost and the hosts file, and windows knows that is is on my local machine...
I have around 10-10 sites working on my laptop this way.
Of course after makin this You have to install Drupal the 'normal' way: making a sites/mysite.d5.localhost.com with a settings file and the use the mysite.d5.localhost.com/install.php - But I think th eurl is self-explaining and easy to use.
Was this answer to Your question?
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
TeeCee, the One and Only
Thanks for the reply
Hey teecee thanks for the reply.
I know how to get drupal working with subdomains, what I'm trying to do is get it working with just one domain and multiple sub directories
localhost.com - main site
localhost.com/subsite1- a subsite
localhost.com/subsite2 - another subsite
localhost.com/subsite3 - another subsite
I seem to be able to get localhost.com.subiste to work but what I really want is localhost.com/subsite.
Thank you kindly,
|\/|