-
Notifications
You must be signed in to change notification settings - Fork 0
WAMP Setup
When loading multiple applications off of the WAMP Virtual Server, the server assumes application directories are a branch off the main server. This is error-prone because relative linking will begin from the absolute root, in this case localhost rather than localhost/ApplicationNameGoesHere. In order to remedy this, WAMP Virtual Directories must be configured. Below you'll find the necessary configurations. If you have any questions, feel free to ask Brandon J.
Developers are expected to maintain all developed applications in the default WAMP directory.
C:/wamp/www/ApplicationNameGoesHere
In order for the applications to run as though they are at the server root, 3 documents need editing.
Add to file: C:\Windows\System32\drivers\etc\hosts
127.0.0.1 ApplicationNameGoesHere.local
C:\wamp\bin\apache\Apache2.2.21\conf\httpd.conf
Make sure that the Virtual Hosts Include Directive is uncommented. Only uncomment the line which states
Include conf/extra/httpd-vhosts.conf
Add to file: C:\wamp\bin\apache\Apache2.2.21\conf\extra\httpd-vhosts.conf
NameVirtualHost 127.0.0.1
<VirtualHost 127.0.0.1>
ServerName ApplicationNameGoesHere.local
DocumentRoot "C:/wamp/www/ApplicationNameGoesHere"
<Directory "C:/wamp/www/ApplicationNameGoesHere">
allow from all
order allow,deny
AllowOverride All
</Directory>
DirectoryIndex index.html index.php
</VirtualHost>
Once the configurations are set, you'll ensre all documents are saved and restart your WAMP server services. Once this is done correctly, you should be able to enter ApplicationNameGoesHere.local into your browser and have the application load smoothly. Now all you have to worry about are troublesome bugs and zealous clients ;) Hopefully you've replaced ApplicationNameGoesHere with the appropriate Application title, if not, let us know! We'll be sure to help you find a more suitable career path! :P
-Brandon J.
AtomicFlow Tech+Design
References: http://v3.thewatchmakerproject.com/journal/378/virtual-hosts-and-the-proper-way-to-work-offline