I am trying to set up WAMP on my old laptop (Windows2000). Everything seems to work until I try and create a subdomain under localhost.
I use the following in the httpd-vhosts.conf file:
NameVirtualHost *:80
DocumentRoot “C:/wamp/www/”
ServerName localhost
DirectoryIndex index.php index.html index.htm
DocumentRoot “C:/wamp/www/e2w/”
ServerName e2w.localhost
DirectoryIndex index.php index.html index.htm
And I have uncommented the following linein httpd.conf:
Include conf/extra/httpd-vhosts.conf
It all seems to work but I get the following error in my web browser:
Forbidden
You don't have permission to access / on this server.
When I have the include line commented I am able to see with index.php file that I have in both directories.
So my question is how do I set the permissions in Windows 2000 so that subdomains will work?
Thanks,
Pete







Permissions
What are the permissions on the files and folders C:/wamp/www/ and C:/wamp/www/e2w? What users have what permissions there? Your web server is not going to be running as the same system user as the account you are logged in with. Or, at least it shouldn't be.
Right click on the folders in question and go to properties. You can see the permissions there.
Matt Farina
Geeks and God Co-Host
www.innovatingtomorrow.net
www.mattfarina.com
No Security Tab
When I go into properties there is no security tab. That is what is stumping me.
Pete
Not Sure
Security tab? I was thinking of permissions like 'Read Only'. I don't remember what the options are for Windows 2000... It's been at least 5 years since I've used that OS.
Matt Farina
Geeks and God Co-Host
www.innovatingtomorrow.net
www.mattfarina.com
Oh
The following are all unchecked.
Read only
Hidden
Archive
Like I said old laptop (7yrs old)
I Got Nothing
I'm to unfamiliar with Windows 2k to know anymore. Sorry.
Matt Farina
Geeks and God Co-Host
www.innovatingtomorrow.net
www.mattfarina.com
ACL / WinNT
Pete,
In all Windows NT systems, the basic security idea is called "Access Control Lists".
I haven't setup a WAMP before, but what usually happens when hosting web software is that you have just added an additional layer of permissions on top of the file system. Where Matt is pointing you is on the right track. But I need to know something first...
Are you running Windows 2000 Pro or Home? This makes a big difference in terms of Networking / Security.
Peace,
-Brett(Veenstra.com)