Hi all,
Hoping someone might be able to help me out with setting up Virtualhost on WAMP I've ran through multiple tutorials but I always get Internal Server Error when I access the URL.
I have ran through this tutorial
http://www.infinitedesigns.org/archives/217
Basically it says to edit:
#1
C:\Windows\system32\drivers\etc\hosts
with
add this line (in my case url will be http://mysilverstripe)
127.0.0.1 mysilverstripe
#2
edit httpd.conf:
uncomment the line
#Include conf/extra/httpd-vhosts.conf
so that it includes the file
eg:
Include conf/extra/httpd-vhosts.conf
#3
edit conf/extra/httpd-vhosts.conf
add the following (f:/wamp/www/silverstripe/silverstripe-v2.4.0-rc2 is the root directory I am trying to point/map to, it says to only add the <directory> part if the site is outside of wamp/www, I have tried having it both in and out, but get the same error.)
<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
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>
I always get
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Hoping someone might be able to help me out with this, desperate to get subsites all up and functional.
Any help would be much appreciated.