TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 02-01-2008, 10:45 PM   #1 (permalink)
The Addict
 
sarmenhb's Avatar
 
Join Date: Jan 2008
Location: los angeles
Posts: 309
Thanks: 44
sarmenhb is on a distinguished road
Default setup sub domain on wamp?

how do i setup a subdomain on wamp?

something like http://test.localhost

im using windows xp

thnx
__________________
no signature set
sarmenhb is offline  
Reply With Quote
Old 02-01-2008, 11:07 PM   #2 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
Orc is on a distinguished road
Default

In the http.conf, there will be VirtualHosts.
__________________
VillageIdiot can have my babbies ;d
Orc is offline  
Reply With Quote
Old 02-01-2008, 11:21 PM   #3 (permalink)
Alan @ CIT
Member of the Month
The Frequenter
Member of the Month Top Contributor 
 
Alan @ CIT's Avatar
 
Join Date: Apr 2005
Location: South UK
Posts: 483
Thanks: 51
Alan @ CIT is on a distinguished road
Default

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      localhost
Add a new line to it with something like:

Code:
127.0.0.1      test.localhost
Then save and close the file.

2. Open up httpd.conf from the Wamp tray icon menu and scroll down until you find:

Code:
#Include conf/extra/httpd-vhosts.conf
And un-comment it by removing the '#' from the start of the line.

3. 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
Send a message via MSN to Alan @ CIT
Alan @ CIT is offline  
Reply With Quote
Old 06-25-2011, 04:09 AM   #4 (permalink)
The Visitor
 
Join Date: Jun 2011
Posts: 1
Thanks: 0
paullstanley is on a distinguished road
Default

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/
paullstanley is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 12:50 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design