Ok I have now correctly configured my Virtual Hosts (well I think its correct, it might not be) on WAMP and now can access my silvers stripe site via:
http://mysilvestripe
I however can not access my subsites subdomain or access subsites at all on the front end. My subsite is called subsite1
when I go to
http://subsite1.mysilvestripe
I get
Oops! Google Chrome could not find subsite1
Now reading through the subsite docs, it says to edit mysite/config and add in a Subsite::set_allowed_domains(array( with the allowed domains. I do that but then I get Notice: Subsite::set_allowed_domains() is deprecated; it is no longer necessary because users can now enter any domain name in F:\wamp\www\silverstripe\silverstripe-v2.4.0-rc2\subsites\code\Subsite.php on line 79
Here is what I have done with my Virtual hosts (maybe I have done this incorrect??? I also tried giving subsite1.mysilverstripe its own <VirtualHost> code chunk, but it gives the same response as this one below which is when you request http://subsite1.mysilverstripe it simply goes to the orginal silverstripe site which I thought it would and does not go to the page I have created under the subsite. (I don't have to create a specific home or index page for it to pick up do it?)
Heres the Virtual Host setup
hosts file
127.0.0.1 mysilverstripe
127.0.0.1 localhost
::1 localhost
httpd-vhosts.conf file
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot "f:/wamp/www"
ServerName localhost
ErrorLog "logs/localhost-error.log"
CustomLog "logs/localhost-access.log" common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot "f:/wamp/www/silverstripe/silverstripe-v2.4.0-rc2"
ServerName mysilverstripe
ServerAlias subsite1.mysilverstripe
ErrorLog "logs/mysilverstripe.log"
CustomLog "logs/mysilverstripe.log" common
#<directory "f:/wamp/www/silverstripe/silverstripe-v2.4.0-rc2">
# Options Indexes FollowSymLinks
# AllowOverride all
# Order Deny,Allow
# Deny from all
# Allow from 127.0.0.1
#</directory>
</VirtualHost>
just hoping someone can please show me what I need to do to be able to access my subsite1!
PS. I notice also that the screenshots on the subsite doc page isn't the same as what I am getting.
http://doc.silverstripe.org/_detail/modules:subsites-module-adminscreenshot-new.png?id=modules:subsites
Heres my screen shot:
http://www.flickr.com/photos/42659897@N08/4577730109/sizes/l/
Notice there are no links to the subsites in the bottom left (I presume if you click on those they would take you to the front end subsite)