![]() |
setup sub domain on wamp?
|
In the http.conf, there will be VirtualHosts.
|
Step by step guide :-)
1. Browse to: C:\Windows\System32\drivers\etc and open the file called 'hosts' in any text editor. You should see 1 or more lines that have an ip address, then the hostname. Eg: Code:
127.0.0.1 localhostCode:
127.0.0.1 test.localhost2. Open up httpd.conf from the Wamp tray icon menu and scroll down until you find: Code:
#Include conf/extra/httpd-vhosts.conf3. Open up: C:\wamp\bin\apache\apache2.2.6\conf\extra\httpd-vhosts.conf. You should find 2 demo virtual hosts in there - dummy-host.localhost - and - dummy-host2.localhost - delete the second one (the entire block), then edit the first one to your needs. Just change "dummy-host.localhost" to "test.localhost" (or whatever you called it in the Hosts file, then adjust the www / log paths as needed. And finally, restart Apache and all should be fine. If you run into problems after the restart, check the Apache error log. You may also need to restart your PC for Windows to pickup the changes you made to the Hosts file. Alan |
Here is a really in depth, simple tutorial on setting up virtual hosts and subdomains publicly and locally on wamp: http://www.itutorblog.com/2011/06/ho...omain-on-wamp/
|
| All times are GMT. The time now is 01:58 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0