I have been following this guide to setting up a WAMP project using Virtual Hosts.
When I browse to "localhost/website", it loads my homepage but without the stylesheet or any images. Here is the file structure:
- wamp/www/website/index.php
- wamp/www/website/images/image.png
- wamp/www/website/styles/style.css
httpd-vhosts.conf:
<VirtualHost *:80>
DocumentRoot "c:/wamp/www"
ServerName localhost
ServerAlias localhost
<Directory "c:/wamp/www">
AllowOverride All
Require local
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "c:/wamp/www/website"
ServerName website
<Directory "c:/wamp/www/website">
AllowOverride All
Require local
</Directory>
</VirtualHost>
---
Also, as an aside, I can't get the "My Virtual Hosts" section to appear in the wampmanager menu; I have added the parameter from the guide and restarted wampserver but I still don't see it. Here is my [Menu.Left] section in wampmanager.tpl:
[Menu.Left]
;WAMPMENULEFTSTART
Type: separator; Caption: "Powered by Alter Way"
Type: item; Caption: "${w_localhost}"; Action: run; FileName: "${c_navigator}"; Parameters: "http://localhost/"; Glyph: 5
;WAMPPROJECTSUBMENU
;WAMPVHOSTSUBMENU
Aucun commentaire:
Enregistrer un commentaire